SNAP Library, User Reference  2012-10-02 12:56:23
SNAP, a general purpose network analysis and graph mining library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
xml.h File Reference

Go to the source code of this file.

Classes

class  TXmlObjSer
class  TXmlObjSerTagNm
class  TXmlLx
class  TXmlParser

Typedefs

typedef TPt< TXmlParserPXmlParser

Enumerations

enum  TXmlLxSym {
  xsyUndef, xsyWs, xsyComment, xsyXmlDecl,
  xsyPI, xsyDocTypeDecl, xsyElement, xsyAttList,
  xsyEntity, xsyNotation, xsyTag, xsySTag,
  xsyETag, xsySETag, xsyStr, xsyQStr,
  xsyEof
}
enum  TXmlSpacing { xspIntact, xspPreserve, xspSeparate, xspTruncate }

Functions

void SetChTy (TBSet &ChSet, const int &MnCh, const int &MxCh=-1)
void SetChTy (TBSet &ChSet, const TStr &Str)
void SetEntityVal (const TStr &Nm, const TStr &Val)
 TXmlChDef ()
 TXmlChDef (TSIn &SIn)
static PXmlChDef Load (TSIn &SIn)
void Save (TSOut &SOut)
TXmlChDefoperator= (const TXmlChDef &)
bool IsChar (const uchar &Ch) const
bool IsComb (const uchar &Ch) const
bool IsExt (const uchar &Ch) const
bool IsLetter (const uchar &Ch) const
bool IsDigit (const uchar &Ch) const
bool IsName (const uchar &Ch) const
bool IsPubid (const uchar &Ch) const
bool IsWs (const uchar &Ch) const
bool IsFirstNameCh (const uchar &Ch) const
bool IsEoln (const uchar &Ch) const
bool IsEntityNm (const TStr &EntityNm, TStr &EntityVal) const
 TXmlTok ()
 TXmlTok (const TXmlLxSym &_Sym)
 TXmlTok (const TXmlLxSym &_Sym, const TStr &_Str)
 TXmlTok (const TXmlLxSym &_Sym, const TStr &_Str, const TStrKdV &_ArgNmValV)
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)
 TXmlTok (TSIn &)
TXmlTokoperator= (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 TStr GetTokVStr (const TXmlTokV &TokV, const bool &XmlP=true)
static PXmlTok GetTok (TXmlLx &Lx)
static void LoadTxtMiscStar (TXmlLx &Lx)
static PXmlTok LoadTxtElement (TXmlLx &Lx)
 TXmlDoc ()
 TXmlDoc (const PXmlTok &_Tok)
static PXmlDoc New (const PXmlTok &Tok)
 TXmlDoc (TSIn &)
TXmlDocoperator= (const TXmlDoc &)
bool IsOk () const
TStr GetMsgStr () const
PXmlTok GetTok () const
void PutTagTokStr (const TStr &TagPath, const TStr &TokStr) 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
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)
void SaveTxt (const PSOut &SOut)
void SaveTxt (const TStr &FNm, const bool &Append=false)
static PXmlDoc LoadStr (const TStr &Str)
void SaveStr (TStr &Str)

Variables

ClassTP(TXmlChDef, PXmlChDef)
private TBSet 
CharChSet
ClassTP(TXmlChDef, PXmlChDef)
private TBSet 
CombChSet
ClassTP(TXmlChDef, PXmlChDef)
private TBSet 
ExtChSet
TBSet LetterChSet
TBSet DigitChSet
TBSet NameChSet
TBSet PubidChSet
TStrStrH EntityNmToValH
ClassTPV(TXmlTok, PXmlTok,
TXmlTokV) private TStr 
Str
TStrKdV ArgNmValV
TXmlTokV SubTokV
ClassTPV(TXmlDoc, PXmlDoc,
TXmlDocV) private TStr 
MsgStr
PXmlTok Tok

Typedef Documentation


Enumeration Type Documentation

enum TXmlLxSym
Enumerator:
xsyUndef 
xsyWs 
xsyComment 
xsyXmlDecl 
xsyPI 
xsyDocTypeDecl 
xsyElement 
xsyAttList 
xsyEntity 
xsyNotation 
xsyTag 
xsySTag 
xsyETag 
xsySETag 
xsyStr 
xsyQStr 
xsyEof 
Enumerator:
xspIntact 
xspPreserve 
xspSeparate 
xspTruncate 

Function Documentation

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 
)
void AddSubTok ( const PXmlTok &  Tok)
void TXmlTok::AddTokToChA ( const bool &  XmlP,
TChA ChA 
) const
void ClrSubTok ( )
void GetArg ( const int &  ArgN,
TStr ArgNm,
TStr ArgVal 
) const
int GetArgs ( ) const
TStr GetArgVal ( const TStr ArgNm) const
TStr GetArgVal ( const TStr ArgNm,
const TStr DfArgVal 
) const
bool TXmlTok::GetBoolArgVal ( const TStr ArgNm,
const bool &  DfVal = false 
) const
bool TXmlTok::GetBoolArgVal ( const TStr ArgNm,
const TStr TrueVal,
const bool &  DfVal = false 
) const
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
int TXmlTok::GetIntArgVal ( const TStr ArgNm,
const int &  DfVal = 0 
) const
TStr GetMsgStr ( ) const
TStr GetStr ( ) const
TStr TXmlTok::GetStrArgVal ( const TStr ArgNm,
const TStr DfVal = TStr() 
) const
PXmlTok GetSubTok ( const int &  SubTokN) const
int GetSubToks ( ) const
TXmlLxSym GetSym ( ) const
TStr GetSymStr ( ) const
TStr GetTagNm ( ) const
PXmlTok GetTagTok ( const TStr TagPath) const
bool TXmlDoc::GetTagTokBoolArgVal ( const TStr TagPath,
const TStr ArgNm,
const bool &  DfVal = false 
) const
double TXmlDoc::GetTagTokFltArgVal ( const TStr TagPath,
const TStr ArgNm,
const double &  DfVal = 0 
) const
int TXmlDoc::GetTagTokIntArgVal ( const TStr TagPath,
const TStr ArgNm,
const int &  DfVal = 0 
) const
TStr GetTagTokStr ( const TStr TagPath) const
TStr TXmlDoc::GetTagTokStrArgVal ( const TStr TagPath,
const TStr ArgNm,
const TStr DfVal = TStr() 
) const
TStr GetTagTokStrOrDf ( const TStr TagPath,
const TStr DfVal = TStr() 
) const
void GetTagTokV ( const TStr TagPath,
TXmlTokV &  XmlTokV 
) const
TStr GetTagVal ( const TStr TagNm,
const bool &  XmlP 
) const
void GetTagValV ( const TStr TagNm,
const bool &  XmlP,
TStrV ValV 
) const
static PXmlTok GetTok ( TXmlLx Lx) [static]
PXmlTok GetTok ( ) const
TStr GetTokStr ( const bool &  XmlP = true) const
TStr TXmlTok::GetTokVStr ( const TXmlTokV &  TokV,
const bool &  XmlP = true 
) [static]
TStr TXmlDoc::GetXmlStr ( const TStr Str) [static]
bool IsArg ( const TStr ArgNm) const
bool IsArg ( const TStr ArgNm,
TStr ArgVal 
) const
bool IsChar ( const uchar Ch) const
bool IsComb ( const uchar Ch) const
bool IsDigit ( const uchar Ch) const
bool IsEntityNm ( const TStr EntityNm,
TStr EntityVal 
) const
bool IsEoln ( const uchar Ch) const
bool IsExt ( const uchar Ch) const
bool IsFirstNameCh ( const uchar Ch) const
bool IsLetter ( const uchar Ch) const
bool IsName ( const uchar Ch) const
bool IsOk ( ) const
bool IsPubid ( const uchar Ch) const
bool IsSubTag ( const TStr TagNm) const
bool IsSubTag ( const TStr TagNm,
PXmlTok &  Tok 
) const
bool IsTag ( ) const
bool IsTag ( const TStr TagNm) const
bool IsTagTok ( const TStr TagPath,
PXmlTok &  TagTok 
) const
bool IsTagTok ( const TStr TagPath) const
bool IsWs ( const uchar Ch) const
static PXmlDoc Load ( TSIn SIn) [static]
PXmlDoc TXmlDoc::LoadStr ( const TStr Str) [static]
static PXmlDoc LoadTxt ( TXmlLx Lx) [static]
static PXmlDoc LoadTxt ( const PSIn SIn,
const TXmlSpacing Spacing = xspIntact 
) [static]
static PXmlDoc LoadTxt ( const TStr FNm,
const TXmlSpacing Spacing = xspIntact 
) [static]
static void LoadTxt ( const TStr FNm,
TXmlDocV &  XmlDocV,
const TXmlSpacing Spacing = xspIntact 
) [static]
PXmlTok TXmlDoc::LoadTxtElement ( TXmlLx Lx) [static]
void TXmlDoc::LoadTxtMiscStar ( TXmlLx Lx) [static]
static PXmlDoc New ( ) [static]
static PXmlTok New ( const TXmlLxSym Sym) [static]
static PXmlTok New ( const TXmlLxSym Sym,
const TStr Str 
) [static]
static PXmlTok New ( const TXmlLxSym Sym,
const TStr Str,
const TStrKdV ArgNmValV 
) [static]
static PXmlTok New ( const TStr TagNm,
const TStrKdV ArgNmValV 
) [static]
static PXmlTok New ( const TStr TagNm) [static]
static PXmlTok New ( const TStr TagNm,
const TStr ValStr 
) [static]
static PXmlTok New ( const TStr TagNm,
const PXmlTok &  XmlTok1,
const PXmlTok &  XmlTok2 = NULL 
) [static]
static PXmlDoc New ( const PXmlTok &  Tok) [static]
TXmlChDef& operator= ( const TXmlChDef )
TXmlTok& operator= ( const TXmlTok )
TXmlDoc& operator= ( const TXmlDoc )
void PutArgVal ( const TStr ArgNm,
const TStr ArgVal 
)
void PutStr ( const TStr _Str)
void TXmlTok::PutSubTok ( const PXmlTok &  Tok,
const int &  SubTokN = -1 
)
void TXmlDoc::PutTagTokStr ( const TStr TagPath,
const TStr TokStr 
) const
void Save ( TSOut SOut)
void TXmlDoc::SaveStr ( TStr Str)
void SaveTxt ( const PSOut SOut)
void SaveTxt ( const TStr FNm,
const bool &  Append = false 
)
void SetChTy ( TBSet ChSet,
const int &  MnCh,
const int &  MxCh = -1 
)
void SetChTy ( TBSet ChSet,
const TStr Str 
)
void TXmlChDef::SetEntityVal ( const TStr Nm,
const TStr Val 
)
bool TXmlDoc::SkipTopTag ( const PSIn SIn) [static]
TXmlChDef ( TSIn SIn)
TXmlDoc ( )
TXmlDoc ( const PXmlTok &  _Tok)
TXmlDoc ( TSIn )
TXmlTok ( )
TXmlTok ( const TXmlLxSym _Sym)
TXmlTok ( const TXmlLxSym _Sym,
const TStr _Str 
)
TXmlTok ( const TXmlLxSym _Sym,
const TStr _Str,
const TStrKdV _ArgNmValV 
)
TXmlTok ( TSIn )

Variable Documentation

ClassTP (TXmlChDef, PXmlChDef) private TBSet CharChSet
ClassTP (TXmlChDef, PXmlChDef) private TBSet CombChSet
ClassTP (TXmlChDef, PXmlChDef) private TBSet ExtChSet
ClassTPV (TXmlDoc, PXmlDoc, TXmlDocV) private TStr MsgStr
ClassTPV (TXmlTok, PXmlTok, TXmlTokV) private TStr Str
TXmlTokV SubTokV
PXmlTok Tok