SNAP Library 4.0, Developer Reference  2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TOLx Class Reference

#include <lx.h>

Collaboration diagram for TOLx:

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.

References TFSet::In(), oloMx, and SetOpt().

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

Here is the call graph for this function:

Member Function Documentation

TLxSym TOLx::AddRw ( const TStr Str)

Definition at line 741 of file lx.cpp.

References THash< TKey, TDat, THashFunc >::AddDat(), ChDef, TLxChDef::GetUcStr(), IAssert, THash< TKey, TDat, THashFunc >::IsKey(), THash< TKey, TDat, THashFunc >::Len(), RwStrH, RwSymH, syMnRw, and syMxRw.

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:1134
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

Here is the call graph for this function:

PSOut TOLx::GetSOut ( const char &  SepCh)
inline

Definition at line 271 of file lx.h.

References TSOut::PutCh(), RSOut, and SOut.

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

Here is the call graph for this function:

TOLx& TOLx::operator= ( const TOLx )
inline

Definition at line 267 of file lx.h.

References Fail.

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.

References TBool::GetStr(), PutSep(), TSOut::PutStr(), RSOut, and syIdStr.

Referenced by PutVarBool(), and PutVarBoolV().

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:1008

Here is the call graph for this function:

Here is the caller graph for this function:

void TOLx::PutDosLn ( const int &  IndentLev = 0)
inline

Definition at line 305 of file lx.h.

References Assert, IsFrcEoln, TSOut::PutCh(), TSOut::PutDosLn(), PutSep(), RSOut, and syEoln.

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

Here is the call graph for this function:

void TOLx::PutFlt ( const TFlt Flt,
const int &  Width = -1,
const int &  Prec = -1 
)
inline

Definition at line 280 of file lx.h.

References Assert, TFlt::GetStr(), IsSigNum, PutSep(), TSOut::PutStr(), RSOut, and syFlt.

Referenced by PutVarFlt(), and PutVarFltV().

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:1459

Here is the call graph for this function:

Here is the caller graph for this function:

void TOLx::PutIdStr ( const TStr Str,
const bool &  CheckIdStr = true 
)
inline

Definition at line 286 of file lx.h.

References Assert, ChDef, TLxChDef::IsNmStr(), PutSep(), TSOut::PutStr(), RSOut, and syIdStr.

Referenced by PutVar(), PutVarBool(), PutVarFlt(), PutVarInt(), PutVarSecTm(), and PutVarStr().

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

Here is the call graph for this function:

Here is the caller graph for this function:

void TOLx::PutIndent ( const int &  IndentLev)
inline

Definition at line 299 of file lx.h.

References TSOut::PutCh(), and RSOut.

Referenced by PutVar(), PutVarBool(), PutVarBoolV(), PutVarEnd(), PutVarFlt(), PutVarFltV(), PutVarInt(), PutVarIntV(), PutVarSecTm(), PutVarStr(), PutVarStrPrV(), PutVarStrV(), and PutVarStrVV().

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

Here is the call graph for this function:

Here is the caller graph for this function:

void TOLx::PutInt ( const TInt Int)
inline

Definition at line 277 of file lx.h.

References Assert, TInt::GetStr(), IsSigNum, PutSep(), TSOut::PutStr(), RSOut, and syInt.

Referenced by PutVarInt(), PutVarIntV(), TRnd::SaveTxt(), and TSecTm::SaveTxt().

277  {
278  if (!IsSigNum){Assert(int(Int)>=0);}
TStr GetStr() const
Definition: dt.h:1197
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

Here is the call graph for this function:

Here is the caller graph for this function:

void TOLx::PutLn ( const int &  IndentLev = 0)
inline

Definition at line 302 of file lx.h.

References Assert, IsFrcEoln, TSOut::PutCh(), TSOut::PutLn(), PutSep(), RSOut, and syEoln.

Referenced by PutLnCmt(), PutVar(), PutVarBool(), PutVarBoolV(), PutVarEnd(), PutVarFlt(), PutVarFltV(), PutVarInt(), PutVarIntV(), PutVarSecTm(), PutVarStr(), PutVarStrPrV(), PutVarStrV(), and PutVarStrVV().

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

Here is the call graph for this function:

Here is the caller graph for this function:

void TOLx::PutLnCmt ( const TStr Str,
const int &  IndentLev = 0 
)
inline

Definition at line 295 of file lx.h.

References Assert, IsCmtAlw, PutLn(), and PutStr().

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

Here is the call graph for this function:

void TOLx::PutParCmt ( const TStr Str)
inline

Definition at line 297 of file lx.h.

References Assert, IsCmtAlw, and PutStr().

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

Here is the call graph for this function:

void TOLx::PutQStr ( const TStr Str)
inline

Definition at line 289 of file lx.h.

References TSOut::PutCh(), PutSep(), TSOut::PutStr(), RSOut, and syQStr.

Referenced by PutVarStr(), PutVarStrPrV(), PutVarStrV(), and PutVarStrVV().

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

Here is the call graph for this function:

Here is the caller graph for this function:

void TOLx::PutQStr ( const TChA ChA)
inline

Definition at line 291 of file lx.h.

References TSOut::PutCh(), PutSep(), TSOut::PutStr(), RSOut, and syQStr.

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

Here is the call graph for this function:

void TOLx::PutSep ( const TLxSym Sym)
private

Definition at line 712 of file lx.cpp.

References TLxSymStr::IsSep(), IsTabSep, PrevSym, TSOut::PutCh(), RSOut, and TCh::TabCh.

Referenced by PutBool(), PutDosLn(), PutFlt(), PutIdStr(), PutInt(), PutLn(), PutQStr(), PutStr(), PutSym(), and PutUQStr().

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:1034
TLxSym PrevSym
Definition: lx.h:261

Here is the call graph for this function:

Here is the caller graph for this function:

void TOLx::PutStr ( const TStr Str)
inline

Definition at line 283 of file lx.h.

References ChDef, TLxChDef::IsNmStr(), IsUniStr, TSOut::PutCh(), PutSep(), TSOut::PutStr(), RSOut, syIdStr, and syStr.

Referenced by PutLnCmt(), and PutParCmt().

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

Here is the call graph for this function:

Here is the caller graph for this function:

void TOLx::PutSym ( const TLxSym Sym)

Definition at line 751 of file lx.cpp.

References TLxSymStr::GetSymStr(), PutSep(), TSOut::PutStr(), RSOut, RwSymH, syMnRw, and syMxRw.

Referenced by PutVar(), PutVarBool(), PutVarEnd(), PutVarFlt(), PutVarInt(), PutVarSecTm(), PutVarStr(), PutVarStrPrV(), and PutVarStrVV().

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

Here is the call graph for this function:

Here is the caller graph for this function:

void TOLx::PutTab ( ) const
inline

Definition at line 301 of file lx.h.

References TSOut::PutCh(), RSOut, and TCh::TabCh.

virtual int PutCh(const char &Ch)=0
TSOut & RSOut
Definition: lx.h:255
static const char TabCh
Definition: dt.h:1034

Here is the call graph for this function:

void TOLx::PutUQStr ( const TStr Str)
inline

Definition at line 293 of file lx.h.

References PutSep(), TSOut::PutStr(), RSOut, and syIdStr.

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

Here is the call graph for this function:

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.

References IsVarIndent, PutIdStr(), PutIndent(), PutLn(), PutSym(), syColon, syLBracket, and VarIndentLev.

Referenced by PutVarBoolV(), PutVarFltV(), PutVarIntV(), PutVarStrPrV(), PutVarStrV(), and PutVarStrVV().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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.

References IsVarIndent, PutBool(), PutIdStr(), PutIndent(), PutLn(), PutSym(), syColon, and VarIndentLev.

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

Here is the call graph for this function:

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.

References IsVarIndent, TVec< TVal, TSizeTy >::Len(), PutBool(), PutIndent(), PutLn(), PutVar(), PutVarEnd(), and VarIndentLev.

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

Here is the call graph for this function:

void TOLx::PutVarEnd ( const bool &  RBracket = false,
const bool &  NewLn = false 
)
inline

Definition at line 315 of file lx.h.

References IsVarIndent, PutIndent(), PutLn(), PutSym(), syRBracket, and VarIndentLev.

Referenced by PutVarBoolV(), PutVarFltV(), PutVarIntV(), PutVarStrPrV(), PutVarStrV(), and PutVarStrVV().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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.

References IsVarIndent, PutFlt(), PutIdStr(), PutIndent(), PutLn(), PutSym(), syColon, and VarIndentLev.

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

Here is the call graph for this function:

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.

References IsVarIndent, TVec< TVal, TSizeTy >::Len(), PutFlt(), PutIndent(), PutLn(), PutVar(), PutVarEnd(), and VarIndentLev.

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

Here is the call graph for this function:

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.

References IsVarIndent, PutIdStr(), PutIndent(), PutInt(), PutLn(), PutSym(), syColon, and VarIndentLev.

Referenced by TMBlobBs::SaveMain().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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.

References IsVarIndent, TVec< TVal, TSizeTy >::Len(), PutIndent(), PutInt(), PutLn(), PutVar(), PutVarEnd(), and VarIndentLev.

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

Here is the call graph for this function:

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.

References IsVarIndent, PutIdStr(), PutIndent(), PutLn(), PutSym(), TSecTm::SaveTxt(), syColon, and VarIndentLev.

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

Here is the call graph for this function:

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.

References IsVarIndent, PutIdStr(), PutIndent(), PutLn(), PutQStr(), PutSym(), syColon, and VarIndentLev.

Referenced by TMBlobBs::SaveMain().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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.

References IsVarIndent, TVec< TVal, TSizeTy >::Len(), PutIndent(), PutLn(), PutQStr(), PutSym(), PutVar(), PutVarEnd(), syLBracket, syRBracket, and VarIndentLev.

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

Here is the call graph for this function:

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.

References IsVarIndent, TVec< TVal, TSizeTy >::Len(), PutIndent(), PutLn(), PutQStr(), PutVar(), PutVarEnd(), and VarIndentLev.

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

Here is the call graph for this function:

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.

References IsVarIndent, TVec< TVal, TSizeTy >::Len(), PutIndent(), PutLn(), PutQStr(), PutSym(), PutVar(), PutVarEnd(), syLBracket, syRBracket, and VarIndentLev.

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

Here is the call graph for this function:

void TOLx::SetOpt ( const int &  Opt,
const bool &  Val 
)

Definition at line 728 of file lx.cpp.

References Fail, IsCmtAlw, IsCsSens, IsFrcEoln, IsSigNum, IsTabSep, IsUniStr, IsVarIndent, oloCmtAlw, oloCsSens, oloFrcEoln, oloSigNum, oloTabSep, oloUniStr, and oloVarIndent.

Referenced by TOLx().

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

Here is the caller graph for this function:

Member Data Documentation

PLxChDef TOLx::ChDef
private

Definition at line 253 of file lx.h.

Referenced by AddRw(), PutIdStr(), and PutStr().

bool TOLx::IsCmtAlw
private

Definition at line 256 of file lx.h.

Referenced by PutLnCmt(), PutParCmt(), and SetOpt().

bool TOLx::IsCsSens
private

Definition at line 257 of file lx.h.

Referenced by SetOpt().

bool TOLx::IsFrcEoln
private

Definition at line 256 of file lx.h.

Referenced by PutDosLn(), PutLn(), and SetOpt().

bool TOLx::IsSigNum
private

Definition at line 256 of file lx.h.

Referenced by PutFlt(), PutInt(), and SetOpt().

bool TOLx::IsTabSep
private

Definition at line 257 of file lx.h.

Referenced by PutSep(), and SetOpt().

bool TOLx::IsUniStr
private

Definition at line 256 of file lx.h.

Referenced by PutStr(), and SetOpt().

TLxSym TOLx::PrevSym
private

Definition at line 261 of file lx.h.

Referenced by PutSep().

TSOut& TOLx::RSOut
private
TStrIntH TOLx::RwStrH
private

Definition at line 259 of file lx.h.

Referenced by AddRw().

TIntStrH TOLx::RwSymH
private

Definition at line 260 of file lx.h.

Referenced by AddRw(), and PutSym().

PSOut TOLx::SOut
private

Definition at line 254 of file lx.h.

Referenced by GetSOut().


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