SNAP Library 2.3, Developer Reference
2014-06-16 11:58:46
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <xml.h>
Public Member Functions | |
TXmlDoc () | |
TXmlDoc (const PXmlTok &_Tok) | |
TXmlDoc (TSIn &) | |
void | Save (TSOut &) |
TXmlDoc & | operator= (const TXmlDoc &) |
bool | IsOk () const |
TStr | GetMsgStr () const |
PXmlTok | GetTok () const |
bool | IsTagTok (const TStr &TagPath, PXmlTok &TagTok) const |
bool | IsTagTok (const TStr &TagPath) const |
PXmlTok | GetTagTok (const TStr &TagPath) const |
void | PutTagTokStr (const TStr &TagPath, const TStr &TokStr) const |
TStr | GetTagTokStr (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 |
bool | GetTagTokBoolArgVal (const TStr &TagPath, const TStr &ArgNm, const bool &DfVal=false) const |
int | GetTagTokIntArgVal (const TStr &TagPath, const TStr &ArgNm, const int &DfVal=0) const |
double | GetTagTokFltArgVal (const TStr &TagPath, const TStr &ArgNm, const double &DfVal=0) const |
TStr | GetTagTokStrArgVal (const TStr &TagPath, const TStr &ArgNm, const TStr &DfVal=TStr()) const |
void | SaveTxt (const PSOut &SOut) |
void | SaveTxt (const TStr &FNm, const bool &Append=false) |
void | SaveStr (TStr &Str) |
Static Public Member Functions | |
static PXmlDoc | New () |
static PXmlDoc | New (const PXmlTok &Tok) |
static PXmlDoc | Load (TSIn &SIn) |
static TStr | GetXmlStr (const TStr &Str) |
static bool | SkipTopTag (const PSIn &SIn) |
static PXmlDoc | LoadTxt (TXmlLx &Lx) |
static PXmlDoc | LoadTxt (const PSIn &SIn, const TXmlSpacing &Spacing=xspIntact) |
static PXmlDoc | LoadTxt (const TStr &FNm, const TXmlSpacing &Spacing=xspIntact) |
static void | LoadTxt (const TStr &FNm, TXmlDocV &XmlDocV, const TXmlSpacing &Spacing=xspIntact) |
static PXmlDoc | LoadStr (const TStr &Str) |
Static Private Member Functions | |
static void | LoadTxtMiscStar (TXmlLx &Lx) |
static PXmlTok | LoadTxtElement (TXmlLx &Lx) |
Private Attributes | |
TCRef | CRef |
bool | Ok |
TStr | MsgStr |
PXmlTok | Tok |
Friends | |
class | TPt< TXmlDoc > |
|
inline |
Definition at line 1298 of file xml.cpp.
References TStr::Empty(), TXmlTok::GetStr(), TXmlTok::GetSym(), TXmlTok::GetTagTok(), TStr::SplitOnCh(), Tok, and xsyTag.
Referenced by GetTagTokV(), and PutTagTokStr().
bool TXmlDoc::GetTagTokBoolArgVal | ( | const TStr & | TagPath, |
const TStr & | ArgNm, | ||
const bool & | DfVal = false |
||
) | const |
Definition at line 1332 of file xml.cpp.
References TXmlTok::GetBoolArgVal(), and IsTagTok().
double TXmlDoc::GetTagTokFltArgVal | ( | const TStr & | TagPath, |
const TStr & | ArgNm, | ||
const double & | DfVal = 0 |
||
) | const |
Definition at line 1348 of file xml.cpp.
References TXmlTok::GetFltArgVal(), and IsTagTok().
int TXmlDoc::GetTagTokIntArgVal | ( | const TStr & | TagPath, |
const TStr & | ArgNm, | ||
const int & | DfVal = 0 |
||
) | const |
Definition at line 1340 of file xml.cpp.
References TXmlTok::GetIntArgVal(), and IsTagTok().
TStr TXmlDoc::GetTagTokStrArgVal | ( | const TStr & | TagPath, |
const TStr & | ArgNm, | ||
const TStr & | DfVal = TStr() |
||
) | const |
Definition at line 1356 of file xml.cpp.
References TXmlTok::GetStrArgVal(), and IsTagTok().
Definition at line 1319 of file xml.cpp.
References TVec< TVal, TSizeTy >::Add(), TVec< TVal, TSizeTy >::Clr(), TPt< TRec >::Empty(), TXmlTok::GetStr(), TXmlTok::GetSubTok(), TXmlTok::GetSubToks(), TXmlTok::GetSym(), GetTagTok(), TStr::SplitOnLastCh(), Tok, and xsyTag.
Definition at line 361 of file xml.h.
References TVec< TVal, TSizeTy >::Len().
Definition at line 359 of file xml.h.
References IAssert.
|
inline |
Definition at line 1364 of file xml.cpp.
References TUInt::GetStr(), and TChA::Len().
Definition at line 350 of file xml.h.
References TPt< TRec >::Empty(), and IAssert.
Referenced by GetTagTokBoolArgVal(), GetTagTokFltArgVal(), GetTagTokIntArgVal(), and GetTagTokStrArgVal().
|
inline |
Definition at line 1443 of file xml.cpp.
References LoadTxt(), and TStrIn::New().
Definition at line 1401 of file xml.cpp.
References TXmlLx::GetSym(), LoadTxtElement(), LoadTxtMiscStar(), New(), TXmlLx::Sym, xsyDocTypeDecl, and xsyXmlDecl.
Referenced by IsXLoadFromFileOk(), LoadStr(), LoadTxt(), TExpHelp::LoadXml(), and TPreproc::TPreproc().
|
static |
|
static |
Definition at line 1425 of file xml.cpp.
References LoadTxt(), and TFIn::New().
|
static |
Definition at line 1429 of file xml.cpp.
References TVec< TVal, TSizeTy >::Add(), TVec< TVal, TSizeTy >::Clr(), forever, LoadTxt(), TFIn::New(), and TXmlLx::SkipWs().
Definition at line 1249 of file xml.cpp.
References TXmlTok::AddSubTok(), TPt< TRec >::Empty(), TXmlLx::EThrow(), forever, TXmlTok::GetStr(), TStr::GetStr(), TXmlLx::GetSym(), TXmlTok::GetTok(), MsgStr, TXmlLx::Sym, TXmlLx::TagNm, Tok, xsyComment, xsyETag, xsyPI, xsyQStr, xsySETag, xsySTag, xsyStr, and xsyWs.
Referenced by LoadTxt().
|
staticprivate |
Definition at line 1243 of file xml.cpp.
References TXmlLx::GetSym(), TXmlLx::Sym, xsyComment, xsyPI, and xsyWs.
Referenced by LoadTxt(), and SkipTopTag().
|
inlinestatic |
Definition at line 1312 of file xml.cpp.
References TXmlTok::AddSubTok(), TXmlTok::ClrSubTok(), GetTagTok(), TXmlTok::New(), Tok, and xsyStr.
|
inline |
void TXmlDoc::SaveStr | ( | TStr & | Str | ) |
Definition at line 1448 of file xml.cpp.
References TMOut::GetAsStr(), TMOut::New(), and SaveTxt().
|
inline |
Definition at line 383 of file xml.h.
References TSOut::PutStr().
Referenced by SaveStr().
|
inline |
Definition at line 385 of file xml.h.
References TFOut::New().
|
static |
Definition at line 1383 of file xml.cpp.
References TXmlLx::GetSym(), LoadTxtMiscStar(), Ok, TXmlLx::Sym, xspIntact, xsyDocTypeDecl, and xsyXmlDecl.
|
private |
Definition at line 329 of file xml.h.
Referenced by LoadTxtElement().
|
private |
Definition at line 328 of file xml.h.
Referenced by SkipTopTag().
|
private |
Definition at line 330 of file xml.h.
Referenced by GetTagTok(), GetTagTokV(), LoadTxtElement(), and PutTagTokStr().