SNAP Library 6.0, Developer Reference
2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <lx.h>
Public Member Functions | |
TOLx (const PSOut &_SOut, const TFSet &OptSet, const TLxChDefTy &ChDefTy=lcdtUsAscii) | |
TOLx & | operator= (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 |
TSOut & | RSOut |
bool | IsCmtAlw |
bool | IsFrcEoln |
bool | IsSigNum |
bool | IsUniStr |
bool | IsCsSens |
bool | IsTabSep |
bool | IsVarIndent |
int | VarIndentLev |
TStrIntH | RwStrH |
TIntStrH | RwSymH |
TLxSym | PrevSym |
TOLx::TOLx | ( | const PSOut & | _SOut, |
const TFSet & | OptSet, | ||
const TLxChDefTy & | ChDefTy = lcdtUsAscii |
||
) |
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.
|
inline |
Definition at line 271 of file lx.h.
References TSOut::PutCh(), and SOut.
|
inline |
Definition at line 275 of file lx.h.
References TBool::GetStr(), PutSep(), TSOut::PutStr(), and syIdStr.
Referenced by PutVarBool(), and PutVarBoolV().
|
inline |
Definition at line 305 of file lx.h.
References Assert, TSOut::PutCh(), TSOut::PutDosLn(), PutSep(), and syEoln.
|
inline |
Definition at line 280 of file lx.h.
References Assert, TFlt::GetStr(), PutSep(), TSOut::PutStr(), and syFlt.
Referenced by PutVarFlt(), and PutVarFltV().
|
inline |
Definition at line 286 of file lx.h.
References Assert, TLxChDef::IsNmStr(), PutSep(), TSOut::PutStr(), and syIdStr.
Referenced by PutVar(), PutVarBool(), PutVarFlt(), PutVarInt(), PutVarSecTm(), and PutVarStr().
|
inline |
Definition at line 299 of file lx.h.
References TSOut::PutCh().
Referenced by PutVar(), PutVarBool(), PutVarBoolV(), PutVarEnd(), PutVarFlt(), PutVarFltV(), PutVarInt(), PutVarIntV(), PutVarSecTm(), PutVarStr(), PutVarStrPrV(), PutVarStrV(), and PutVarStrVV().
|
inline |
Definition at line 277 of file lx.h.
References Assert, TInt::GetStr(), PutSep(), TSOut::PutStr(), and syInt.
Referenced by PutVarInt(), PutVarIntV(), TRnd::SaveTxt(), and TSecTm::SaveTxt().
|
inline |
Definition at line 302 of file lx.h.
References Assert, TSOut::PutCh(), TSOut::PutLn(), PutSep(), and syEoln.
Referenced by PutLnCmt(), PutVar(), PutVarBool(), PutVarBoolV(), PutVarEnd(), PutVarFlt(), PutVarFltV(), PutVarInt(), PutVarIntV(), PutVarSecTm(), PutVarStr(), PutVarStrPrV(), PutVarStrV(), and PutVarStrVV().
|
inline |
|
inline |
|
inline |
Definition at line 289 of file lx.h.
References TSOut::PutCh(), PutSep(), TSOut::PutStr(), and syQStr.
Referenced by PutVarStr(), PutVarStrPrV(), PutVarStrV(), and PutVarStrVV().
|
inline |
Definition at line 291 of file lx.h.
References TSOut::PutCh(), PutSep(), TSOut::PutStr(), and syQStr.
|
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().
|
inline |
Definition at line 283 of file lx.h.
References TLxChDef::IsNmStr(), TSOut::PutCh(), PutSep(), TSOut::PutStr(), syIdStr, and syStr.
Referenced by PutLnCmt(), and PutParCmt().
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().
|
inline |
Definition at line 301 of file lx.h.
References TSOut::PutCh(), and TCh::TabCh.
|
inline |
Definition at line 293 of file lx.h.
References PutSep(), TSOut::PutStr(), and syIdStr.
|
inline |
Definition at line 309 of file lx.h.
References PutIdStr(), PutIndent(), PutLn(), PutSym(), syColon, and syLBracket.
Referenced by PutVarBoolV(), PutVarFltV(), PutVarIntV(), PutVarStrPrV(), PutVarStrV(), and PutVarStrVV().
|
inline |
Definition at line 319 of file lx.h.
References PutBool(), PutIdStr(), PutIndent(), PutLn(), PutSym(), and syColon.
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.
|
inline |
Definition at line 315 of file lx.h.
References PutIndent(), PutLn(), PutSym(), and syRBracket.
Referenced by PutVarBoolV(), PutVarFltV(), PutVarIntV(), PutVarStrPrV(), PutVarStrV(), and PutVarStrVV().
|
inline |
Definition at line 329 of file lx.h.
References PutFlt(), PutIdStr(), PutIndent(), PutLn(), PutSym(), and syColon.
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.
|
inline |
Definition at line 324 of file lx.h.
References PutIdStr(), PutIndent(), PutInt(), PutLn(), PutSym(), and syColon.
Referenced by TMBlobBs::SaveMain().
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.
|
inline |
Definition at line 339 of file lx.h.
References PutIdStr(), PutIndent(), PutLn(), PutSym(), TSecTm::SaveTxt(), and syColon.
|
inline |
Definition at line 334 of file lx.h.
References PutIdStr(), PutIndent(), PutLn(), PutQStr(), PutSym(), and syColon.
Referenced by TMBlobBs::SaveMain().
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.
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.
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.
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().
|
private |
|
private |
Definition at line 257 of file lx.h.
Referenced by PutVarBoolV(), PutVarFltV(), PutVarIntV(), PutVarStrPrV(), PutVarStrV(), PutVarStrVV(), and SetOpt().
|
private |
|
private |
|
private |
Definition at line 258 of file lx.h.
Referenced by PutVarBoolV(), PutVarFltV(), PutVarIntV(), PutVarStrPrV(), PutVarStrV(), and PutVarStrVV().