SNAP Library 6.0, User Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
TOLx Class Reference

#include <lx.h>

Public Member Functions

 TOLx (const PSOut &_SOut, const TFSet &OptSet, const TLxChDefTy &ChDefTy=lcdtUsAscii)
 
TOLxoperator= (const TOLx &)
 
void SetOpt (const int &Opt, const bool &Val)
 
TLxSym AddRw (const TStr &Str)
 
PSOut GetSOut (const char &SepCh)
 
void PutSym (const TLxSym &Sym)
 
void PutBool (const TBool &Bool)
 
void PutInt (const TInt &Int)
 
void PutFlt (const TFlt &Flt, const int &Width=-1, const int &Prec=-1)
 
void PutStr (const TStr &Str)
 
void PutIdStr (const TStr &Str, const bool &CheckIdStr=true)
 
void PutQStr (const TStr &Str)
 
void PutQStr (const TChA &ChA)
 
void PutUQStr (const TStr &Str)
 
void PutLnCmt (const TStr &Str, const int &IndentLev=0)
 
void PutParCmt (const TStr &Str)
 
void PutIndent (const int &IndentLev)
 
void PutTab () const
 
void PutLn (const int &IndentLev=0)
 
void PutDosLn (const int &IndentLev=0)
 
void PutVar (const TStr &VarNm, const bool &LBracket=false, const bool &NewLn=false, const bool &CheckIdStr=true)
 
void PutVarEnd (const bool &RBracket=false, const bool &NewLn=false)
 
void PutVarBool (const TStr &VarNm, const bool &Bool, const bool &NewLn=true, const bool &CheckIdStr=true)
 
void PutVarInt (const TStr &VarNm, const int &Int, const bool &NewLn=true, const bool &CheckIdStr=true)
 
void PutVarFlt (const TStr &VarNm, const double &Flt, const bool &NewLn=true, const bool &CheckIdStr=true)
 
void PutVarStr (const TStr &VarNm, const TStr &Str, const bool &NewLn=true, const bool &CheckIdStr=true)
 
void PutVarSecTm (const TStr &VarNm, const TSecTm &SecTm, const bool &NewLn=true, const bool &CheckIdStr=true)
 
void PutVarBoolV (const TStr &VarNm, const TBoolV &BoolV, const bool &NewLn=true, const bool &CheckIdStr=true)
 
void PutVarIntV (const TStr &VarNm, const TIntV &IntV, const bool &NewLn=true, const bool &CheckIdStr=true)
 
void PutVarFltV (const TStr &VarNm, const TFltV &FltV, const bool &NewLn=true, const bool &CheckIdStr=true)
 
void PutVarStrV (const TStr &VarNm, const TStrV &StrV, const bool &NewLn=true, const bool &CheckIdStr=true)
 
void PutVarStrPrV (const TStr &VarNm, const TStrPrV &StrPrV, const bool &NewLn=true, const bool &CheckIdStr=true)
 
void PutVarStrVV (const TStr &VarNm, const TVec< TStrV > &StrVV, const bool &NewLn=true, const bool &CheckIdStr=true)
 

Private Member Functions

void PutSep (const TLxSym &Sym)
 

Private Attributes

PLxChDef ChDef
 
PSOut SOut
 
TSOutRSOut
 
bool IsCmtAlw
 
bool IsFrcEoln
 
bool IsSigNum
 
bool IsUniStr
 
bool IsCsSens
 
bool IsTabSep
 
bool IsVarIndent
 
int VarIndentLev
 
TStrIntH RwStrH
 
TIntStrH RwSymH
 
TLxSym PrevSym
 

Detailed Description

Definition at line 251 of file lx.h.

Constructor & Destructor Documentation

TOLx::TOLx ( const PSOut _SOut,
const TFSet OptSet,
const TLxChDefTy ChDefTy = lcdtUsAscii 
)

Definition at line 718 of file lx.cpp.

718  :
719  ChDef(TLxChDef::GetChDef(ChDefTy)), SOut(_SOut), RSOut(*SOut),
720  IsCmtAlw(false), IsFrcEoln(false), IsSigNum(false),
721  IsUniStr(false), IsCsSens(false), IsTabSep(false), IsVarIndent(false),
722  VarIndentLev(0),
723  RwStrH(50), RwSymH(50), PrevSym(syUndef){
724  for (int Opt=0; Opt<oloMx; Opt++){
725  if (OptSet.In(Opt)){SetOpt(Opt, true);}}
726 }
bool IsTabSep
Definition: lx.h:257
bool IsUniStr
Definition: lx.h:256
int VarIndentLev
Definition: lx.h:258
PLxChDef ChDef
Definition: lx.h:253
bool IsFrcEoln
Definition: lx.h:256
TSOut & RSOut
Definition: lx.h:255
void SetOpt(const int &Opt, const bool &Val)
Definition: lx.cpp:728
Definition: lx.h:45
bool IsVarIndent
Definition: lx.h:257
bool IsSigNum
Definition: lx.h:256
bool IsCmtAlw
Definition: lx.h:256
Definition: lx.h:249
PSOut SOut
Definition: lx.h:254
TLxSym PrevSym
Definition: lx.h:261
TIntStrH RwSymH
Definition: lx.h:260
bool IsCsSens
Definition: lx.h:257
static PLxChDef GetChDef(const TLxChDefTy &ChDefTy=lcdtUsAscii)
Definition: lx.cpp:79
TStrIntH RwStrH
Definition: lx.h:259
bool In(const int &FlagN) const
Definition: bits.h:156

Member Function Documentation

TLxSym TOLx::AddRw ( const TStr Str)

Definition at line 741 of file lx.cpp.

741  {
743  TStr UcStr=ChDef->GetUcStr(Str);
744  IAssert(!RwStrH.IsKey(UcStr));
745  TLxSym RwSym=TLxSym(syMnRw+RwStrH.Len());
746  RwStrH.AddDat(Str, TInt(int(RwSym)));
747  RwSymH.AddDat(TInt(int(RwSym)), Str);
748  return RwSym;
749 }
#define IAssert(Cond)
Definition: bd.h:262
Definition: lx.h:53
TLxSym
Definition: lx.h:44
Definition: lx.h:52
PLxChDef ChDef
Definition: lx.h:253
Definition: dt.h:1137
Definition: dt.h:412
TIntStrH RwSymH
Definition: lx.h:260
TStr GetUcStr(const TStr &Str) const
Definition: lx.cpp:71
bool IsKey(const TKey &Key) const
Definition: hash.h:258
int Len() const
Definition: hash.h:228
TDat & AddDat(const TKey &Key)
Definition: hash.h:238
TStrIntH RwStrH
Definition: lx.h:259
PSOut TOLx::GetSOut ( const char &  SepCh)
inline

Definition at line 271 of file lx.h.

271  {
272  RSOut.PutCh(SepCh); return SOut;}
virtual int PutCh(const char &Ch)=0
TSOut & RSOut
Definition: lx.h:255
PSOut SOut
Definition: lx.h:254
TOLx& TOLx::operator= ( const TOLx )
inline

Definition at line 267 of file lx.h.

267 {Fail; return *this;}
#define Fail
Definition: bd.h:238
void TOLx::PutBool ( const TBool Bool)
inline

Definition at line 275 of file lx.h.

275  {
Definition: lx.h:45
void PutSep(const TLxSym &Sym)
Definition: lx.cpp:712
TSOut & RSOut
Definition: lx.h:255
int PutStr(const char *CStr)
Definition: fl.cpp:117
static TStr GetStr(const bool &Val)
Definition: dt.h:1011
void TOLx::PutDosLn ( const int &  IndentLev = 0)
inline

Definition at line 305 of file lx.h.

305  {
306  Assert(IsFrcEoln);
307  PutSep(syEoln); RSOut.PutDosLn(); RSOut.PutCh(' ', IndentLev*2);}
virtual int PutCh(const char &Ch)=0
Definition: lx.h:51
void PutSep(const TLxSym &Sym)
Definition: lx.cpp:712
bool IsFrcEoln
Definition: lx.h:256
TSOut & RSOut
Definition: lx.h:255
#define Assert(Cond)
Definition: bd.h:251
int PutDosLn(const int &Lns=1)
Definition: fl.cpp:164
void TOLx::PutFlt ( const TFlt Flt,
const int &  Width = -1,
const int &  Prec = -1 
)
inline

Definition at line 280 of file lx.h.

280  {
281  if (!IsSigNum){Assert(Flt>=0);}
282  PutSep(syFlt); RSOut.PutStr(TFlt::GetStr(Flt, Width, Prec));}
void PutSep(const TLxSym &Sym)
Definition: lx.cpp:712
TSOut & RSOut
Definition: lx.h:255
#define Assert(Cond)
Definition: bd.h:251
bool IsSigNum
Definition: lx.h:256
Definition: lx.h:45
int PutStr(const char *CStr)
Definition: fl.cpp:117
TStr GetStr() const
Definition: dt.h:1462
void TOLx::PutIdStr ( const TStr Str,
const bool &  CheckIdStr = true 
)
inline

Definition at line 286 of file lx.h.

286  {
287  if (CheckIdStr){Assert(ChDef->IsNmStr(Str));}
288  PutSep(syIdStr); RSOut.PutStr(Str);}
Definition: lx.h:45
PLxChDef ChDef
Definition: lx.h:253
void PutSep(const TLxSym &Sym)
Definition: lx.cpp:712
TSOut & RSOut
Definition: lx.h:255
#define Assert(Cond)
Definition: bd.h:251
int PutStr(const char *CStr)
Definition: fl.cpp:117
bool IsNmStr(const TStr &Str) const
Definition: lx.cpp:63
void TOLx::PutIndent ( const int &  IndentLev)
inline

Definition at line 299 of file lx.h.

299  {
300  RSOut.PutCh(' ', IndentLev*2);}
virtual int PutCh(const char &Ch)=0
TSOut & RSOut
Definition: lx.h:255
void TOLx::PutInt ( const TInt Int)
inline

Definition at line 277 of file lx.h.

277  {
278  if (!IsSigNum){Assert(int(Int)>=0);}
TStr GetStr() const
Definition: dt.h:1200
Definition: lx.h:45
void PutSep(const TLxSym &Sym)
Definition: lx.cpp:712
TSOut & RSOut
Definition: lx.h:255
#define Assert(Cond)
Definition: bd.h:251
bool IsSigNum
Definition: lx.h:256
int PutStr(const char *CStr)
Definition: fl.cpp:117
void TOLx::PutLn ( const int &  IndentLev = 0)
inline

Definition at line 302 of file lx.h.

302  {
303  Assert(IsFrcEoln);
304  PutSep(syEoln); RSOut.PutLn(); RSOut.PutCh(' ', IndentLev*2);}
virtual int PutCh(const char &Ch)=0
Definition: lx.h:51
void PutSep(const TLxSym &Sym)
Definition: lx.cpp:712
int PutLn(const int &Lns=1)
Definition: fl.cpp:158
bool IsFrcEoln
Definition: lx.h:256
TSOut & RSOut
Definition: lx.h:255
#define Assert(Cond)
Definition: bd.h:251
void TOLx::PutLnCmt ( const TStr Str,
const int &  IndentLev = 0 
)
inline

Definition at line 295 of file lx.h.

295  {
296  Assert(IsCmtAlw); PutStr(" // "); PutStr(Str); PutLn(IndentLev);}
void PutLn(const int &IndentLev=0)
Definition: lx.h:302
#define Assert(Cond)
Definition: bd.h:251
bool IsCmtAlw
Definition: lx.h:256
void PutStr(const TStr &Str)
Definition: lx.h:283
void TOLx::PutParCmt ( const TStr Str)
inline

Definition at line 297 of file lx.h.

297  {
298  Assert(IsCmtAlw); PutStr(" /* "); PutStr(Str); PutStr(" */ ");}
#define Assert(Cond)
Definition: bd.h:251
bool IsCmtAlw
Definition: lx.h:256
void PutStr(const TStr &Str)
Definition: lx.h:283
void TOLx::PutQStr ( const TStr Str)
inline

Definition at line 289 of file lx.h.

289  {
290  PutSep(syQStr); RSOut.PutCh('"'); RSOut.PutStr(Str); RSOut.PutCh('"');}
virtual int PutCh(const char &Ch)=0
Definition: lx.h:45
void PutSep(const TLxSym &Sym)
Definition: lx.cpp:712
TSOut & RSOut
Definition: lx.h:255
int PutStr(const char *CStr)
Definition: fl.cpp:117
void TOLx::PutQStr ( const TChA ChA)
inline

Definition at line 291 of file lx.h.

291  {
292  PutSep(syQStr); RSOut.PutCh('"'); RSOut.PutStr(ChA); RSOut.PutCh('"');}
virtual int PutCh(const char &Ch)=0
Definition: lx.h:45
void PutSep(const TLxSym &Sym)
Definition: lx.cpp:712
TSOut & RSOut
Definition: lx.h:255
int PutStr(const char *CStr)
Definition: fl.cpp:117
void TOLx::PutSep ( const TLxSym Sym)
private

Definition at line 712 of file lx.cpp.

712  {
713  if (TLxSymStr::IsSep(PrevSym, Sym)){
714  if (IsTabSep){RSOut.PutCh(TCh::TabCh);} else {RSOut.PutCh(' ');}}
715  PrevSym=Sym;
716 }
bool IsTabSep
Definition: lx.h:257
virtual int PutCh(const char &Ch)=0
static bool IsSep(const TLxSym &PrevSym, const TLxSym &Sym)
Definition: lx.cpp:226
TSOut & RSOut
Definition: lx.h:255
static const char TabCh
Definition: dt.h:1037
TLxSym PrevSym
Definition: lx.h:261
void TOLx::PutStr ( const TStr Str)
inline

Definition at line 283 of file lx.h.

283  {
284  if ((IsUniStr)&&(ChDef->IsNmStr(Str))){PutSep(syIdStr); RSOut.PutStr(Str);}
285  else {PutSep(syStr); RSOut.PutCh('"'); RSOut.PutStr(Str); RSOut.PutCh('"');}}
virtual int PutCh(const char &Ch)=0
bool IsUniStr
Definition: lx.h:256
Definition: lx.h:45
PLxChDef ChDef
Definition: lx.h:253
void PutSep(const TLxSym &Sym)
Definition: lx.cpp:712
TSOut & RSOut
Definition: lx.h:255
int PutStr(const char *CStr)
Definition: fl.cpp:117
Definition: lx.h:45
bool IsNmStr(const TStr &Str) const
Definition: lx.cpp:63
void TOLx::PutSym ( const TLxSym Sym)

Definition at line 751 of file lx.cpp.

751  {
752  TStr Str;
753  if ((syMnRw<=Sym)&&(Sym<=syMxRw)){
754  Str=Str=RwSymH[Sym];
755  } else {
756  Str=TLxSymStr::GetSymStr(Sym);
757  }
758  PutSep(Sym); RSOut.PutStr(Str);
759 }
Definition: lx.h:53
Definition: lx.h:52
void PutSep(const TLxSym &Sym)
Definition: lx.cpp:712
TSOut & RSOut
Definition: lx.h:255
Definition: dt.h:412
int PutStr(const char *CStr)
Definition: fl.cpp:117
TIntStrH RwSymH
Definition: lx.h:260
static TStr GetSymStr(const TLxSym &Sym)
Definition: lx.cpp:142
void TOLx::PutTab ( ) const
inline

Definition at line 301 of file lx.h.

virtual int PutCh(const char &Ch)=0
TSOut & RSOut
Definition: lx.h:255
static const char TabCh
Definition: dt.h:1037
void TOLx::PutUQStr ( const TStr Str)
inline

Definition at line 293 of file lx.h.

293  {
294  PutSep(syIdStr); RSOut.PutStr(Str);}
Definition: lx.h:45
void PutSep(const TLxSym &Sym)
Definition: lx.cpp:712
TSOut & RSOut
Definition: lx.h:255
int PutStr(const char *CStr)
Definition: fl.cpp:117
void TOLx::PutVar ( const TStr VarNm,
const bool &  LBracket = false,
const bool &  NewLn = false,
const bool &  CheckIdStr = true 
)
inline

Definition at line 309 of file lx.h.

310  {
312  PutIdStr(VarNm, CheckIdStr); PutSym(syColon);
313  if (LBracket){PutSym(syLBracket);}
314  if (NewLn){PutLn(); VarIndentLev++;}}
void PutLn(const int &IndentLev=0)
Definition: lx.h:302
int VarIndentLev
Definition: lx.h:258
void PutSym(const TLxSym &Sym)
Definition: lx.cpp:751
void PutIndent(const int &IndentLev)
Definition: lx.h:299
bool IsVarIndent
Definition: lx.h:257
Definition: lx.h:50
Definition: lx.h:46
void PutIdStr(const TStr &Str, const bool &CheckIdStr=true)
Definition: lx.h:286
void TOLx::PutVarBool ( const TStr VarNm,
const bool &  Bool,
const bool &  NewLn = true,
const bool &  CheckIdStr = true 
)
inline

Definition at line 319 of file lx.h.

320  {
322  PutIdStr(VarNm, CheckIdStr); PutSym(syColon); PutBool(Bool);
323  if (NewLn){PutLn();}}
void PutLn(const int &IndentLev=0)
Definition: lx.h:302
void PutBool(const TBool &Bool)
Definition: lx.h:275
int VarIndentLev
Definition: lx.h:258
void PutSym(const TLxSym &Sym)
Definition: lx.cpp:751
void PutIndent(const int &IndentLev)
Definition: lx.h:299
bool IsVarIndent
Definition: lx.h:257
Definition: lx.h:46
void PutIdStr(const TStr &Str, const bool &CheckIdStr=true)
Definition: lx.h:286
void TOLx::PutVarBoolV ( const TStr VarNm,
const TBoolV BoolV,
const bool &  NewLn = true,
const bool &  CheckIdStr = true 
)

Definition at line 761 of file lx.cpp.

762  {
763  PutVar(VarNm, true, NewLn, CheckIdStr);
764  for (int BoolN=0; BoolN<BoolV.Len(); BoolN++){
766  PutBool(BoolV[BoolN]);
767  if (NewLn){PutLn();}
768  }
769  PutVarEnd(true, NewLn);
770 }
void PutLn(const int &IndentLev=0)
Definition: lx.h:302
void PutVar(const TStr &VarNm, const bool &LBracket=false, const bool &NewLn=false, const bool &CheckIdStr=true)
Definition: lx.h:309
void PutBool(const TBool &Bool)
Definition: lx.h:275
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:575
int VarIndentLev
Definition: lx.h:258
void PutIndent(const int &IndentLev)
Definition: lx.h:299
bool IsVarIndent
Definition: lx.h:257
void PutVarEnd(const bool &RBracket=false, const bool &NewLn=false)
Definition: lx.h:315
void TOLx::PutVarEnd ( const bool &  RBracket = false,
const bool &  NewLn = false 
)
inline

Definition at line 315 of file lx.h.

315  {
317  if (RBracket){PutSym(syRBracket);}
318  if (NewLn){PutLn(); VarIndentLev--;}}
void PutLn(const int &IndentLev=0)
Definition: lx.h:302
int VarIndentLev
Definition: lx.h:258
void PutSym(const TLxSym &Sym)
Definition: lx.cpp:751
void PutIndent(const int &IndentLev)
Definition: lx.h:299
Definition: lx.h:50
bool IsVarIndent
Definition: lx.h:257
void TOLx::PutVarFlt ( const TStr VarNm,
const double &  Flt,
const bool &  NewLn = true,
const bool &  CheckIdStr = true 
)
inline

Definition at line 329 of file lx.h.

330  {
332  PutIdStr(VarNm, CheckIdStr); PutSym(syColon); PutFlt(Flt);
333  if (NewLn){PutLn();}}
void PutLn(const int &IndentLev=0)
Definition: lx.h:302
int VarIndentLev
Definition: lx.h:258
void PutSym(const TLxSym &Sym)
Definition: lx.cpp:751
void PutIndent(const int &IndentLev)
Definition: lx.h:299
bool IsVarIndent
Definition: lx.h:257
void PutFlt(const TFlt &Flt, const int &Width=-1, const int &Prec=-1)
Definition: lx.h:280
Definition: lx.h:46
void PutIdStr(const TStr &Str, const bool &CheckIdStr=true)
Definition: lx.h:286
void TOLx::PutVarFltV ( const TStr VarNm,
const TFltV FltV,
const bool &  NewLn = true,
const bool &  CheckIdStr = true 
)

Definition at line 783 of file lx.cpp.

784  {
785  PutVar(VarNm, true, NewLn, CheckIdStr);
786  for (int FltN=0; FltN<FltV.Len(); FltN++){
788  PutFlt(FltV[FltN]);
789  if (NewLn){PutLn();}
790  }
791  PutVarEnd(true, NewLn);
792 }
void PutLn(const int &IndentLev=0)
Definition: lx.h:302
void PutVar(const TStr &VarNm, const bool &LBracket=false, const bool &NewLn=false, const bool &CheckIdStr=true)
Definition: lx.h:309
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:575
int VarIndentLev
Definition: lx.h:258
void PutIndent(const int &IndentLev)
Definition: lx.h:299
bool IsVarIndent
Definition: lx.h:257
void PutFlt(const TFlt &Flt, const int &Width=-1, const int &Prec=-1)
Definition: lx.h:280
void PutVarEnd(const bool &RBracket=false, const bool &NewLn=false)
Definition: lx.h:315
void TOLx::PutVarInt ( const TStr VarNm,
const int &  Int,
const bool &  NewLn = true,
const bool &  CheckIdStr = true 
)
inline

Definition at line 324 of file lx.h.

325  {
327  PutIdStr(VarNm, CheckIdStr); PutSym(syColon); PutInt(Int);
328  if (NewLn){PutLn();}}
void PutLn(const int &IndentLev=0)
Definition: lx.h:302
int VarIndentLev
Definition: lx.h:258
void PutInt(const TInt &Int)
Definition: lx.h:277
void PutSym(const TLxSym &Sym)
Definition: lx.cpp:751
void PutIndent(const int &IndentLev)
Definition: lx.h:299
bool IsVarIndent
Definition: lx.h:257
Definition: lx.h:46
void PutIdStr(const TStr &Str, const bool &CheckIdStr=true)
Definition: lx.h:286
void TOLx::PutVarIntV ( const TStr VarNm,
const TIntV IntV,
const bool &  NewLn = true,
const bool &  CheckIdStr = true 
)

Definition at line 772 of file lx.cpp.

773  {
774  PutVar(VarNm, true, NewLn, CheckIdStr);
775  for (int IntN=0; IntN<IntV.Len(); IntN++){
777  PutInt(IntV[IntN]);
778  if (NewLn){PutLn();}
779  }
780  PutVarEnd(true, NewLn);
781 }
void PutLn(const int &IndentLev=0)
Definition: lx.h:302
void PutVar(const TStr &VarNm, const bool &LBracket=false, const bool &NewLn=false, const bool &CheckIdStr=true)
Definition: lx.h:309
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:575
int VarIndentLev
Definition: lx.h:258
void PutInt(const TInt &Int)
Definition: lx.h:277
void PutIndent(const int &IndentLev)
Definition: lx.h:299
bool IsVarIndent
Definition: lx.h:257
void PutVarEnd(const bool &RBracket=false, const bool &NewLn=false)
Definition: lx.h:315
void TOLx::PutVarSecTm ( const TStr VarNm,
const TSecTm SecTm,
const bool &  NewLn = true,
const bool &  CheckIdStr = true 
)
inline

Definition at line 339 of file lx.h.

340  {
342  PutIdStr(VarNm, CheckIdStr); PutSym(syColon); SecTm.SaveTxt(*this);
343  if (NewLn){PutLn();}}
void PutLn(const int &IndentLev=0)
Definition: lx.h:302
int VarIndentLev
Definition: lx.h:258
void SaveTxt(TOLx &Lx) const
Definition: tm.cpp:954
void PutSym(const TLxSym &Sym)
Definition: lx.cpp:751
void PutIndent(const int &IndentLev)
Definition: lx.h:299
bool IsVarIndent
Definition: lx.h:257
Definition: lx.h:46
void PutIdStr(const TStr &Str, const bool &CheckIdStr=true)
Definition: lx.h:286
void TOLx::PutVarStr ( const TStr VarNm,
const TStr Str,
const bool &  NewLn = true,
const bool &  CheckIdStr = true 
)
inline

Definition at line 334 of file lx.h.

335  {
337  PutIdStr(VarNm, CheckIdStr); PutSym(syColon); PutQStr(Str);
338  if (NewLn){PutLn();}}
void PutLn(const int &IndentLev=0)
Definition: lx.h:302
int VarIndentLev
Definition: lx.h:258
void PutSym(const TLxSym &Sym)
Definition: lx.cpp:751
void PutQStr(const TStr &Str)
Definition: lx.h:289
void PutIndent(const int &IndentLev)
Definition: lx.h:299
bool IsVarIndent
Definition: lx.h:257
Definition: lx.h:46
void PutIdStr(const TStr &Str, const bool &CheckIdStr=true)
Definition: lx.h:286
void TOLx::PutVarStrPrV ( const TStr VarNm,
const TStrPrV StrPrV,
const bool &  NewLn = true,
const bool &  CheckIdStr = true 
)

Definition at line 805 of file lx.cpp.

806  {
807  PutVar(VarNm, true, NewLn, CheckIdStr);
808  for (int StrPrN=0; StrPrN<StrPrV.Len(); StrPrN++){
811  PutQStr(StrPrV[StrPrN].Val1); PutQStr(StrPrV[StrPrN].Val2);
813  if (NewLn){PutLn();}
814  }
815  PutVarEnd(true, NewLn);
816 }
void PutLn(const int &IndentLev=0)
Definition: lx.h:302
void PutVar(const TStr &VarNm, const bool &LBracket=false, const bool &NewLn=false, const bool &CheckIdStr=true)
Definition: lx.h:309
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:575
int VarIndentLev
Definition: lx.h:258
void PutSym(const TLxSym &Sym)
Definition: lx.cpp:751
void PutQStr(const TStr &Str)
Definition: lx.h:289
void PutIndent(const int &IndentLev)
Definition: lx.h:299
Definition: lx.h:50
bool IsVarIndent
Definition: lx.h:257
Definition: lx.h:50
void PutVarEnd(const bool &RBracket=false, const bool &NewLn=false)
Definition: lx.h:315
void TOLx::PutVarStrV ( const TStr VarNm,
const TStrV StrV,
const bool &  NewLn = true,
const bool &  CheckIdStr = true 
)

Definition at line 794 of file lx.cpp.

795  {
796  PutVar(VarNm, true, NewLn, CheckIdStr);
797  for (int StrN=0; StrN<StrV.Len(); StrN++){
799  PutQStr(StrV[StrN]);
800  if (NewLn){PutLn();}
801  }
802  PutVarEnd(true, NewLn);
803 }
void PutLn(const int &IndentLev=0)
Definition: lx.h:302
void PutVar(const TStr &VarNm, const bool &LBracket=false, const bool &NewLn=false, const bool &CheckIdStr=true)
Definition: lx.h:309
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:575
int VarIndentLev
Definition: lx.h:258
void PutQStr(const TStr &Str)
Definition: lx.h:289
void PutIndent(const int &IndentLev)
Definition: lx.h:299
bool IsVarIndent
Definition: lx.h:257
void PutVarEnd(const bool &RBracket=false, const bool &NewLn=false)
Definition: lx.h:315
void TOLx::PutVarStrVV ( const TStr VarNm,
const TVec< TStrV > &  StrVV,
const bool &  NewLn = true,
const bool &  CheckIdStr = true 
)

Definition at line 818 of file lx.cpp.

819  {
820  PutVar(VarNm, true, NewLn, CheckIdStr);
821  for (int StrVN=0; StrVN<StrVV.Len(); StrVN++){
824  for (int StrN=0; StrN<StrVV[StrVN].Len(); StrN++){
825  PutQStr(StrVV[StrVN][StrN]);}
827  if (NewLn){PutLn();}
828  }
829  PutVarEnd(true, NewLn);
830 }
void PutLn(const int &IndentLev=0)
Definition: lx.h:302
void PutVar(const TStr &VarNm, const bool &LBracket=false, const bool &NewLn=false, const bool &CheckIdStr=true)
Definition: lx.h:309
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:575
int VarIndentLev
Definition: lx.h:258
void PutSym(const TLxSym &Sym)
Definition: lx.cpp:751
void PutQStr(const TStr &Str)
Definition: lx.h:289
void PutIndent(const int &IndentLev)
Definition: lx.h:299
Definition: lx.h:50
bool IsVarIndent
Definition: lx.h:257
Definition: lx.h:50
void PutVarEnd(const bool &RBracket=false, const bool &NewLn=false)
Definition: lx.h:315
void TOLx::SetOpt ( const int &  Opt,
const bool &  Val 
)

Definition at line 728 of file lx.cpp.

728  {
729  switch (Opt){
730  case oloCmtAlw: IsCmtAlw=Val; break;
731  case oloFrcEoln: IsFrcEoln=Val; break;
732  case oloSigNum: IsSigNum=Val; break;
733  case oloUniStr: IsUniStr=Val; break;
734  case oloCsSens: IsCsSens=Val; break;
735  case oloTabSep: IsTabSep=Val; break;
736  case oloVarIndent: IsVarIndent=Val; break;
737  default: Fail;
738  }
739 }
Definition: lx.h:248
bool IsTabSep
Definition: lx.h:257
bool IsUniStr
Definition: lx.h:256
#define Fail
Definition: bd.h:238
bool IsFrcEoln
Definition: lx.h:256
bool IsVarIndent
Definition: lx.h:257
bool IsSigNum
Definition: lx.h:256
bool IsCmtAlw
Definition: lx.h:256
Definition: lx.h:248
Definition: lx.h:249
bool IsCsSens
Definition: lx.h:257
Definition: lx.h:248
Definition: lx.h:248
Definition: lx.h:249

Member Data Documentation

PLxChDef TOLx::ChDef
private

Definition at line 253 of file lx.h.

bool TOLx::IsCmtAlw
private

Definition at line 256 of file lx.h.

bool TOLx::IsCsSens
private

Definition at line 257 of file lx.h.

bool TOLx::IsFrcEoln
private

Definition at line 256 of file lx.h.

bool TOLx::IsSigNum
private

Definition at line 256 of file lx.h.

bool TOLx::IsTabSep
private

Definition at line 257 of file lx.h.

bool TOLx::IsUniStr
private

Definition at line 256 of file lx.h.

bool TOLx::IsVarIndent
private

Definition at line 257 of file lx.h.

TLxSym TOLx::PrevSym
private

Definition at line 261 of file lx.h.

TSOut& TOLx::RSOut
private

Definition at line 255 of file lx.h.

TStrIntH TOLx::RwStrH
private

Definition at line 259 of file lx.h.

TIntStrH TOLx::RwSymH
private

Definition at line 260 of file lx.h.

PSOut TOLx::SOut
private

Definition at line 254 of file lx.h.

int TOLx::VarIndentLev
private

Definition at line 258 of file lx.h.


The documentation for this class was generated from the following files: