SNAP Library 2.0, User Reference  2013-05-13 16:33:57
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TXmlObjSerTagNm Class Reference

#include <xml.h>

List of all members.

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
TSOutSOut

Detailed Description

Definition at line 20 of file xml.h.


Constructor & Destructor Documentation

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.

                                       :
  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.

                                         :
  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('>');
  }
}

Definition at line 182 of file xml.cpp.

                                 {
  if (!TagNm.Empty()){
    SOut->PutCh('<'); SOut->PutCh('/'); SOut->PutStr(TagNm); SOut->PutCh('>');
  }
}

Member Function Documentation


Member Data Documentation

Definition at line 23 of file xml.h.

Definition at line 22 of file xml.h.


The documentation for this class was generated from the following files: