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 <xml.h>
Public Member Functions | |
TXmlTok () | |
TXmlTok (const TXmlLxSym &_Sym) | |
TXmlTok (const TXmlLxSym &_Sym, const TStr &_Str) | |
TXmlTok (const TXmlLxSym &_Sym, const TStr &_Str, const TStrKdV &_ArgNmValV) | |
TXmlTok (TSIn &) | |
void | Save (TSOut &) |
TXmlTok & | operator= (const TXmlTok &) |
TXmlLxSym | GetSym () const |
TStr | GetSymStr () const |
void | PutStr (const TStr &_Str) |
TStr | GetStr () const |
bool | IsTag () const |
bool | IsTag (const TStr &TagNm) const |
TStr | GetTagNm () const |
void | AddArg (const TStr &ArgNm, const bool &ArgVal) |
void | AddArg (const TStr &ArgNm, const int &ArgVal) |
void | AddArg (const TStr &ArgNm, const uint64 &ArgVal) |
void | AddArg (const TStr &ArgNm, const double &ArgVal) |
void | AddArg (const TStr &ArgNm, const TStr &ArgVal) |
int | GetArgs () const |
void | GetArg (const int &ArgN, TStr &ArgNm, TStr &ArgVal) const |
bool | IsArg (const TStr &ArgNm) const |
bool | IsArg (const TStr &ArgNm, TStr &ArgVal) const |
void | PutArgVal (const TStr &ArgNm, const TStr &ArgVal) |
TStr | GetArgVal (const TStr &ArgNm) const |
TStr | GetArgVal (const TStr &ArgNm, const TStr &DfArgVal) const |
bool | GetBoolArgVal (const TStr &ArgNm, const bool &DfVal=false) const |
bool | GetBoolArgVal (const TStr &ArgNm, const TStr &TrueVal, const bool &DfVal=false) const |
bool | GetBoolArgVal (const TStr &ArgNm, const TStr &TrueVal, const TStr &FalseVal, const bool &DfVal=false) const |
int | GetIntArgVal (const TStr &ArgNm, const int &DfVal=0) const |
double | GetFltArgVal (const TStr &ArgNm, const double &DfVal=0) const |
TStr | GetStrArgVal (const TStr &ArgNm, const TStr &DfVal=TStr()) const |
bool | IsSubTag (const TStr &TagNm) const |
bool | IsSubTag (const TStr &TagNm, PXmlTok &Tok) const |
void | AddSubTok (const PXmlTok &Tok) |
int | GetSubToks () const |
PXmlTok | GetSubTok (const int &SubTokN) const |
void | ClrSubTok () |
void | PutSubTok (const PXmlTok &Tok, const int &SubTokN=-1) |
bool | IsTagTok (const TStr &TagPath, PXmlTok &TagTok) const |
bool | IsTagTok (const TStr &TagPath) const |
PXmlTok | GetTagTok (const TStr &TagPath) const |
void | GetTagTokV (const TStr &TagPath, TXmlTokV &XmlTokV) const |
void | GetTagValV (const TStr &TagNm, const bool &XmlP, TStrV &ValV) const |
TStr | GetTagVal (const TStr &TagNm, const bool &XmlP) const |
TStr | GetTagTokStr (const TStr &TagPath) const |
TStr | GetTagTokStrOrDf (const TStr &TagPath, const TStr &DfVal=TStr()) const |
void | AddTokToChA (const bool &XmlP, TChA &ChA) const |
TStr | GetTokStr (const bool &XmlP=true) const |
Static Public Member Functions | |
static PXmlTok | New () |
static PXmlTok | New (const TXmlLxSym &Sym) |
static PXmlTok | New (const TXmlLxSym &Sym, const TStr &Str) |
static PXmlTok | New (const TXmlLxSym &Sym, const TStr &Str, const TStrKdV &ArgNmValV) |
static PXmlTok | New (const TStr &TagNm, const TStrKdV &ArgNmValV) |
static PXmlTok | New (const TStr &TagNm) |
static PXmlTok | New (const TStr &TagNm, const TStr &ValStr) |
static PXmlTok | New (const TStr &TagNm, const PXmlTok &XmlTok1, const PXmlTok &XmlTok2=NULL) |
static PXmlTok | Load (TSIn &) |
static TStr | GetTokVStr (const TXmlTokV &TokV, const bool &XmlP=true) |
static PXmlTok | GetTok (TXmlLx &Lx) |
Private Attributes | |
TCRef | CRef |
TXmlLxSym | Sym |
TStr | Str |
TStrKdV | ArgNmValV |
TXmlTokV | SubTokV |
Friends | |
class | TPt< TXmlTok > |
|
inline |
|
inline |
Definition at line 252 of file xml.h.
References TBool::GetStr().
Referenced by TSecTm::GetXmlTok().
|
inline |
Definition at line 254 of file xml.h.
References TInt::GetStr().
Definition at line 256 of file xml.h.
References TUInt64::GetStr().
|
inline |
Definition at line 258 of file xml.h.
References TFlt::GetStr().
|
inline |
Definition at line 292 of file xml.h.
Referenced by TXmlDoc::LoadTxtElement(), New(), PutSubTok(), and TXmlDoc::PutTagTokStr().
void TXmlTok::AddTokToChA | ( | const bool & | XmlP, |
TChA & | ChA | ||
) | const |
Definition at line 1185 of file xml.cpp.
References AddTokToChA(), Fail, GetArg(), GetArgs(), TXmlLx::GetArgValQCh(), GetSubTok(), GetSubToks(), TXmlLx::GetXmlStrFromPlainStr(), Str, Sym, xsyQStr, xsyStr, xsyTag, and xsyWs.
Referenced by AddTokToChA().
|
inline |
Definition at line 295 of file xml.h.
Referenced by PutSubTok(), and TXmlDoc::PutTagTokStr().
Definition at line 263 of file xml.h.
Referenced by AddTokToChA().
|
inline |
Definition at line 262 of file xml.h.
Referenced by AddTokToChA().
Definition at line 273 of file xml.h.
Referenced by TPreproc::TPreproc().
bool TXmlTok::GetBoolArgVal | ( | const TStr & | ArgNm, |
const bool & | DfVal = false |
||
) | const |
Definition at line 1089 of file xml.cpp.
References ArgNmValV, TVec< TVal, TSizeTy >::SearchForw(), and TBool::TrueStr.
Referenced by TXmlDoc::GetTagTokBoolArgVal().
bool TXmlTok::GetBoolArgVal | ( | const TStr & | ArgNm, |
const TStr & | TrueVal, | ||
const bool & | DfVal = false |
||
) | const |
Definition at line 1094 of file xml.cpp.
References ArgNmValV, and TVec< TVal, TSizeTy >::SearchForw().
bool TXmlTok::GetBoolArgVal | ( | const TStr & | ArgNm, |
const TStr & | TrueVal, | ||
const TStr & | FalseVal, | ||
const bool & | DfVal = false |
||
) | const |
double TXmlTok::GetFltArgVal | ( | const TStr & | ArgNm, |
const double & | DfVal = 0 |
||
) | const |
Definition at line 1119 of file xml.cpp.
References ArgNmValV, and TVec< TVal, TSizeTy >::SearchForw().
Referenced by TXmlDoc::GetTagTokFltArgVal().
int TXmlTok::GetIntArgVal | ( | const TStr & | ArgNm, |
const int & | DfVal = 0 |
||
) | const |
Definition at line 1109 of file xml.cpp.
References ArgNmValV, and TVec< TVal, TSizeTy >::SearchForw().
Referenced by TXmlDoc::GetTagTokIntArgVal(), and TSecTm::TSecTm().
|
inline |
Definition at line 244 of file xml.h.
Referenced by TXmlObjSer::AssertXmlHd(), GetTagTok(), TXmlDoc::GetTagTok(), GetTagTokV(), TXmlDoc::GetTagTokV(), and TXmlDoc::LoadTxtElement().
Definition at line 1129 of file xml.cpp.
References ArgNmValV, and TVec< TVal, TSizeTy >::SearchForw().
Referenced by TXmlObjSer::AssertXmlHd(), and TXmlDoc::GetTagTokStrArgVal().
|
inline |
Definition at line 294 of file xml.h.
Referenced by AddTokToChA(), GetTagTokV(), TXmlDoc::GetTagTokV(), GetTagValV(), and TVec< TVal, TSizeTy >::LoadXml().
|
inline |
Definition at line 293 of file xml.h.
Referenced by AddTokToChA(), GetTagTokV(), TXmlDoc::GetTagTokV(), GetTagValV(), and TVec< TVal, TSizeTy >::LoadXml().
|
inline |
Definition at line 241 of file xml.h.
Referenced by GetTagTok(), TXmlDoc::GetTagTok(), GetTagTokV(), and TXmlDoc::GetTagTokV().
|
inline |
Definition at line 242 of file xml.h.
References TXmlLx::GetXmlLxSymStr().
Referenced by TXmlObjSer::AssertXmlHd().
|
inline |
Definition at line 1142 of file xml.cpp.
References TStr::Empty(), TPt< TRec >::Empty(), GetStr(), GetSym(), GetTagTok(), TVec< TVal, TSizeTy >::Len(), TStr::SplitOnCh(), SubTokV, and xsyTag.
Referenced by GetTagTok(), TXmlDoc::GetTagTok(), and GetTagTokV().
Definition at line 309 of file xml.h.
References GetTokStr().
Definition at line 1158 of file xml.cpp.
References TVec< TVal, TSizeTy >::Add(), TVec< TVal, TSizeTy >::Clr(), TPt< TRec >::Empty(), GetStr(), GetSubTok(), GetSubToks(), GetSym(), GetTagTok(), TStr::SplitOnLastCh(), and xsyTag.
Referenced by TPreproc::TPreproc().
Definition at line 1180 of file xml.cpp.
References GetTagValV(), and TVec< TVal, TSizeTy >::Len().
Definition at line 1171 of file xml.cpp.
References TVec< TVal, TSizeTy >::Add(), GetSubTok(), GetSubToks(), GetTagValV(), GetTokStr(), Str, Sym, and xsyTag.
Referenced by GetTagVal(), and GetTagValV().
Definition at line 1228 of file xml.cpp.
References TXmlLx::ArgNmValKdV, Fail, New(), TXmlLx::Sym, TXmlLx::TagNm, TXmlLx::TxtChA, xsyQStr, xsySETag, xsySTag, xsyStr, xsyTag, and xsyWs.
Referenced by TXmlDoc::LoadTxtElement().
|
inline |
Definition at line 316 of file xml.h.
Referenced by GetTagTokStrOrDf(), GetTagValV(), TStr::LoadXml(), and TPreproc::TPreproc().
Definition at line 1219 of file xml.cpp.
References TVec< TVal, TSizeTy >::Len().
|
inline |
Definition at line 265 of file xml.h.
Referenced by TXmlObjSer::GetBoolArg(), TXmlObjSer::GetFltArg(), TXmlObjSer::GetInt64Arg(), and TXmlObjSer::GetIntArg().
Definition at line 290 of file xml.h.
References TPt< TRec >::Empty().
|
inline |
Definition at line 247 of file xml.h.
References xsyTag.
Referenced by TXmlObjSer::AssertXmlHd().
|
inline |
Definition at line 299 of file xml.h.
References TPt< TRec >::Empty().
|
inline |
|
inlinestatic |
Definition at line 212 of file xml.h.
Referenced by GetTok(), TSecTm::GetXmlTok(), and TXmlDoc::PutTagTokStr().
Definition at line 224 of file xml.h.
References AddSubTok(), xsyStr, and xsyTag.
|
inlinestatic |
Definition at line 228 of file xml.h.
References AddSubTok(), TPt< TRec >::Empty(), and xsyTag.
void TXmlTok::PutSubTok | ( | const PXmlTok & | Tok, |
const int & | SubTokN = -1 |
||
) |
Definition at line 1134 of file xml.cpp.
References AddSubTok(), ClrSubTok(), and SubTokV.
|
inline |
|
private |
Definition at line 202 of file xml.h.
Referenced by GetBoolArgVal(), GetFltArgVal(), GetIntArgVal(), and GetStrArgVal().
|
private |
Definition at line 201 of file xml.h.
Referenced by AddTokToChA(), and GetTagValV().
|
private |
Definition at line 203 of file xml.h.
Referenced by GetTagTok(), and PutSubTok().
|
private |
Definition at line 200 of file xml.h.
Referenced by AddTokToChA(), and GetTagValV().