|
SNAP Library 2.1, User Reference
2013-09-25 10:47:25
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 718 of file lx.cpp.
: ChDef(TLxChDef::GetChDef(ChDefTy)), SOut(_SOut), RSOut(*SOut), IsCmtAlw(false), IsFrcEoln(false), IsSigNum(false), IsUniStr(false), IsCsSens(false), IsTabSep(false), IsVarIndent(false), VarIndentLev(0), RwStrH(50), RwSymH(50), PrevSym(syUndef){ for (int Opt=0; Opt<oloMx; Opt++){ if (OptSet.In(Opt)){SetOpt(Opt, true);}} }
| TLxSym TOLx::AddRw | ( | const TStr & | Str | ) |
| PSOut TOLx::GetSOut | ( | const char & | SepCh | ) | [inline] |
| void TOLx::PutBool | ( | const TBool & | Bool | ) | [inline] |
| void TOLx::PutDosLn | ( | const int & | IndentLev = 0 | ) | [inline] |
| void TOLx::PutFlt | ( | const TFlt & | Flt, |
| const int & | Width = -1, |
||
| const int & | Prec = -1 |
||
| ) | [inline] |
| void TOLx::PutIdStr | ( | const TStr & | Str, |
| const bool & | CheckIdStr = true |
||
| ) | [inline] |
| void TOLx::PutIndent | ( | const int & | IndentLev | ) | [inline] |
| void TOLx::PutInt | ( | const TInt & | Int | ) | [inline] |
| void TOLx::PutLn | ( | const int & | IndentLev = 0 | ) | [inline] |
| void TOLx::PutLnCmt | ( | const TStr & | Str, |
| const int & | IndentLev = 0 |
||
| ) | [inline] |
| void TOLx::PutParCmt | ( | const TStr & | Str | ) | [inline] |
| void TOLx::PutQStr | ( | const TStr & | Str | ) | [inline] |
| void TOLx::PutQStr | ( | const TChA & | ChA | ) | [inline] |
| void TOLx::PutSep | ( | const TLxSym & | Sym | ) | [private] |
| void TOLx::PutStr | ( | const TStr & | Str | ) | [inline] |
| void TOLx::PutSym | ( | const TLxSym & | Sym | ) |
| void TOLx::PutTab | ( | ) | const [inline] |
Definition at line 301 of file lx.h.
{RSOut.PutCh(TCh::TabCh);}
| void TOLx::PutUQStr | ( | const TStr & | Str | ) | [inline] |
| 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.
{
if (IsVarIndent){PutIndent(VarIndentLev);}
PutIdStr(VarNm, CheckIdStr); PutSym(syColon);
if (LBracket){PutSym(syLBracket);}
if (NewLn){PutLn(); VarIndentLev++;}}
| 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.
{
if (IsVarIndent){PutIndent(VarIndentLev);}
PutIdStr(VarNm, CheckIdStr); PutSym(syColon); PutBool(Bool);
if (NewLn){PutLn();}}
| 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.
{
PutVar(VarNm, true, NewLn, CheckIdStr);
for (int BoolN=0; BoolN<BoolV.Len(); BoolN++){
if (IsVarIndent){PutIndent(VarIndentLev);}
PutBool(BoolV[BoolN]);
if (NewLn){PutLn();}
}
PutVarEnd(true, NewLn);
}
| void TOLx::PutVarEnd | ( | const bool & | RBracket = false, |
| const bool & | NewLn = false |
||
| ) | [inline] |
Definition at line 315 of file lx.h.
{
if (IsVarIndent){PutIndent(VarIndentLev-1);}
if (RBracket){PutSym(syRBracket);}
if (NewLn){PutLn(); VarIndentLev--;}}
| 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.
{
if (IsVarIndent){PutIndent(VarIndentLev);}
PutIdStr(VarNm, CheckIdStr); PutSym(syColon); PutFlt(Flt);
if (NewLn){PutLn();}}
| 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.
{
PutVar(VarNm, true, NewLn, CheckIdStr);
for (int FltN=0; FltN<FltV.Len(); FltN++){
if (IsVarIndent){PutIndent(VarIndentLev);}
PutFlt(FltV[FltN]);
if (NewLn){PutLn();}
}
PutVarEnd(true, NewLn);
}
| 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.
{
if (IsVarIndent){PutIndent(VarIndentLev);}
PutIdStr(VarNm, CheckIdStr); PutSym(syColon); PutInt(Int);
if (NewLn){PutLn();}}
| 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.
{
PutVar(VarNm, true, NewLn, CheckIdStr);
for (int IntN=0; IntN<IntV.Len(); IntN++){
if (IsVarIndent){PutIndent(VarIndentLev);}
PutInt(IntV[IntN]);
if (NewLn){PutLn();}
}
PutVarEnd(true, NewLn);
}
| 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.
{
if (IsVarIndent){PutIndent(VarIndentLev);}
PutIdStr(VarNm, CheckIdStr); PutSym(syColon); SecTm.SaveTxt(*this);
if (NewLn){PutLn();}}
| 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.
{
if (IsVarIndent){PutIndent(VarIndentLev);}
PutIdStr(VarNm, CheckIdStr); PutSym(syColon); PutQStr(Str);
if (NewLn){PutLn();}}
| 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.
{
PutVar(VarNm, true, NewLn, CheckIdStr);
for (int StrPrN=0; StrPrN<StrPrV.Len(); StrPrN++){
if (IsVarIndent){PutIndent(VarIndentLev);}
PutSym(syLBracket);
PutQStr(StrPrV[StrPrN].Val1); PutQStr(StrPrV[StrPrN].Val2);
PutSym(syRBracket);
if (NewLn){PutLn();}
}
PutVarEnd(true, NewLn);
}
| 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.
{
PutVar(VarNm, true, NewLn, CheckIdStr);
for (int StrN=0; StrN<StrV.Len(); StrN++){
if (IsVarIndent){PutIndent(VarIndentLev);}
PutQStr(StrV[StrN]);
if (NewLn){PutLn();}
}
PutVarEnd(true, NewLn);
}
| 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.
{
PutVar(VarNm, true, NewLn, CheckIdStr);
for (int StrVN=0; StrVN<StrVV.Len(); StrVN++){
if (IsVarIndent){PutIndent(VarIndentLev);}
PutSym(syLBracket);
for (int StrN=0; StrN<StrVV[StrVN].Len(); StrN++){
PutQStr(StrVV[StrVN][StrN]);}
PutSym(syRBracket);
if (NewLn){PutLn();}
}
PutVarEnd(true, NewLn);
}
| void TOLx::SetOpt | ( | const int & | Opt, |
| const bool & | Val | ||
| ) |
Definition at line 728 of file lx.cpp.
{
switch (Opt){
case oloCmtAlw: IsCmtAlw=Val; break;
case oloFrcEoln: IsFrcEoln=Val; break;
case oloSigNum: IsSigNum=Val; break;
case oloUniStr: IsUniStr=Val; break;
case oloCsSens: IsCsSens=Val; break;
case oloTabSep: IsTabSep=Val; break;
case oloVarIndent: IsVarIndent=Val; break;
default: Fail;
}
}
PLxChDef TOLx::ChDef [private] |
bool TOLx::IsCmtAlw [private] |
bool TOLx::IsCsSens [private] |
bool TOLx::IsFrcEoln [private] |
bool TOLx::IsSigNum [private] |
bool TOLx::IsTabSep [private] |
bool TOLx::IsUniStr [private] |
bool TOLx::IsVarIndent [private] |
TLxSym TOLx::PrevSym [private] |
TSOut& TOLx::RSOut [private] |
TStrIntH TOLx::RwStrH [private] |
TIntStrH TOLx::RwSymH [private] |
PSOut TOLx::SOut [private] |
int TOLx::VarIndentLev [private] |