SNAP Library 4.0, Developer Reference  2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TXmlObjSerTagNm Class Reference

#include <xml.h>

Collaboration diagram for TXmlObjSerTagNm:

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.

References TStr::Empty(), TSOut::PutCh(), TSOut::PutStr(), SOut, and TagNm.

124  :
125  TagNm(), SOut(&_SOut){
126  if (Nm!="-"){
127  SOut->PutCh('<');
128  if (Nm.Empty()){
129  SOut->PutStr(TagNm=TypeNm);
130  } else {
131  SOut->PutStr(TagNm=Nm);
132  SOut->PutStr(" Type=\""); SOut->PutStr(TypeNm); SOut->PutCh('"');
133  }
134  if (!ArgNm.Empty()){
135  SOut->PutCh(' '); SOut->PutStr(ArgNm); SOut->PutCh('=');
136  SOut->PutCh('"'); SOut->PutStr(ArgVal); SOut->PutCh('"');
137  }
138  if (ETagP){
139  SOut->PutCh('/'); TagNm="";}
140  SOut->PutCh('>');
141  }
142 }
virtual int PutCh(const char &Ch)=0
TSOut * SOut
Definition: xml.h:23
bool Empty() const
Definition: dt.h:488
TStr TagNm
Definition: xml.h:22
int PutStr(const char *CStr)
Definition: fl.cpp:117

Here is the call graph for this function:

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.

150  :
151  TagNm(), SOut(&_SOut){
152  if (Nm!="-"){
153  SOut->PutCh('<');
154  if (Nm.Empty()){
155  SOut->PutStr(TagNm=TypeNm);
156  } else {
157  SOut->PutStr(TagNm=Nm);
158  SOut->PutStr(" Type=\""); SOut->PutStr(TypeNm); SOut->PutCh('"');
159  }
160  if (!ArgNm1.Empty()){
161  SOut->PutCh(' '); SOut->PutStr(ArgNm1); SOut->PutCh('=');
162  SOut->PutCh('"'); SOut->PutStr(ArgVal1); SOut->PutCh('"');
163  }
164  if (!ArgNm2.Empty()){
165  SOut->PutCh(' '); SOut->PutStr(ArgNm2); SOut->PutCh('=');
166  SOut->PutCh('"'); SOut->PutStr(ArgVal2); SOut->PutCh('"');
167  }
168  if (!ArgNm3.Empty()){
169  SOut->PutCh(' '); SOut->PutStr(ArgNm3); SOut->PutCh('=');
170  SOut->PutCh('"'); SOut->PutStr(ArgVal3); SOut->PutCh('"');
171  }
172  if (!ArgNm4.Empty()){
173  SOut->PutCh(' '); SOut->PutStr(ArgNm4); SOut->PutCh('=');
174  SOut->PutCh('"'); SOut->PutStr(ArgVal4); SOut->PutCh('"');
175  }
176  if (ETagP){
177  SOut->PutCh('/'); TagNm="";}
178  SOut->PutCh('>');
179  }
180 }
virtual int PutCh(const char &Ch)=0
TSOut * SOut
Definition: xml.h:23
bool Empty() const
Definition: dt.h:488
TStr TagNm
Definition: xml.h:22
int PutStr(const char *CStr)
Definition: fl.cpp:117

Here is the call graph for this function:

TXmlObjSerTagNm::~TXmlObjSerTagNm ( )

Definition at line 182 of file xml.cpp.

References TStr::Empty(), TSOut::PutCh(), TSOut::PutStr(), SOut, and TagNm.

182  {
183  if (!TagNm.Empty()){
184  SOut->PutCh('<'); SOut->PutCh('/'); SOut->PutStr(TagNm); SOut->PutCh('>');
185  }
186 }
virtual int PutCh(const char &Ch)=0
TSOut * SOut
Definition: xml.h:23
bool Empty() const
Definition: dt.h:488
TStr TagNm
Definition: xml.h:22
int PutStr(const char *CStr)
Definition: fl.cpp:117

Here is the call graph for this function:

Member Function Documentation

TXmlObjSerTagNm::UndefDefaultCopyAssign ( TXmlObjSerTagNm  )
private

Member Data Documentation

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().


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