SNAP Library 2.0, Developer Reference
2013-05-13 16:33:57
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <xml.h>
Public Member Functions | |
TXmlObjSerTagNm (TSOut &_SOut, const bool &ETagP, const TStr &Nm, const TStr &TypeNm, const TStr &ArgNm="", const TStr &ArgVal="") | |
TXmlObjSerTagNm (TSOut &_SOut, const bool &ETagP, const TStr &Nm, const TStr &TypeNm, const TStr &ArgNm1, const TStr &ArgVal1, const TStr &ArgNm2, const TStr &ArgVal2, const TStr &ArgNm3="", const TStr &ArgVal3="", const TStr &ArgNm4="", const TStr &ArgVal4="") | |
~TXmlObjSerTagNm () | |
Private Member Functions | |
UndefDefaultCopyAssign (TXmlObjSerTagNm) | |
Private Attributes | |
TStr | TagNm |
TSOut * | SOut |
TXmlObjSerTagNm::TXmlObjSerTagNm | ( | TSOut & | _SOut, |
const bool & | ETagP, | ||
const TStr & | Nm, | ||
const TStr & | TypeNm, | ||
const TStr & | ArgNm = "" , |
||
const TStr & | ArgVal = "" |
||
) |
Definition at line 121 of file xml.cpp.
References TStr::Empty(), TSOut::PutCh(), TSOut::PutStr(), SOut, and TagNm.
: TagNm(), SOut(&_SOut){ if (Nm!="-"){ SOut->PutCh('<'); if (Nm.Empty()){ SOut->PutStr(TagNm=TypeNm); } else { SOut->PutStr(TagNm=Nm); SOut->PutStr(" Type=\""); SOut->PutStr(TypeNm); SOut->PutCh('"'); } if (!ArgNm.Empty()){ SOut->PutCh(' '); SOut->PutStr(ArgNm); SOut->PutCh('='); SOut->PutCh('"'); SOut->PutStr(ArgVal); SOut->PutCh('"'); } if (ETagP){ SOut->PutCh('/'); TagNm="";} SOut->PutCh('>'); } }
TXmlObjSerTagNm::TXmlObjSerTagNm | ( | TSOut & | _SOut, |
const bool & | ETagP, | ||
const TStr & | Nm, | ||
const TStr & | TypeNm, | ||
const TStr & | ArgNm1, | ||
const TStr & | ArgVal1, | ||
const TStr & | ArgNm2, | ||
const TStr & | ArgVal2, | ||
const TStr & | ArgNm3 = "" , |
||
const TStr & | ArgVal3 = "" , |
||
const TStr & | ArgNm4 = "" , |
||
const TStr & | ArgVal4 = "" |
||
) |
Definition at line 144 of file xml.cpp.
References TStr::Empty(), TSOut::PutCh(), TSOut::PutStr(), SOut, and TagNm.
: TagNm(), SOut(&_SOut){ if (Nm!="-"){ SOut->PutCh('<'); if (Nm.Empty()){ SOut->PutStr(TagNm=TypeNm); } else { SOut->PutStr(TagNm=Nm); SOut->PutStr(" Type=\""); SOut->PutStr(TypeNm); SOut->PutCh('"'); } if (!ArgNm1.Empty()){ SOut->PutCh(' '); SOut->PutStr(ArgNm1); SOut->PutCh('='); SOut->PutCh('"'); SOut->PutStr(ArgVal1); SOut->PutCh('"'); } if (!ArgNm2.Empty()){ SOut->PutCh(' '); SOut->PutStr(ArgNm2); SOut->PutCh('='); SOut->PutCh('"'); SOut->PutStr(ArgVal2); SOut->PutCh('"'); } if (!ArgNm3.Empty()){ SOut->PutCh(' '); SOut->PutStr(ArgNm3); SOut->PutCh('='); SOut->PutCh('"'); SOut->PutStr(ArgVal3); SOut->PutCh('"'); } if (!ArgNm4.Empty()){ SOut->PutCh(' '); SOut->PutStr(ArgNm4); SOut->PutCh('='); SOut->PutCh('"'); SOut->PutStr(ArgVal4); SOut->PutCh('"'); } if (ETagP){ SOut->PutCh('/'); TagNm="";} SOut->PutCh('>'); } }
TXmlObjSerTagNm::UndefDefaultCopyAssign | ( | TXmlObjSerTagNm | ) | [private] |
TSOut* TXmlObjSerTagNm::SOut [private] |
Definition at line 23 of file xml.h.
Referenced by TXmlObjSerTagNm(), and ~TXmlObjSerTagNm().
TStr TXmlObjSerTagNm::TagNm [private] |
Definition at line 22 of file xml.h.
Referenced by TXmlObjSerTagNm(), and ~TXmlObjSerTagNm().