XRootD
Loading...
Searching...
No Matches
XrdMpxVar Class Reference
Collaboration diagram for XrdMpxVar:

Public Member Functions

 XrdMpxVar (bool dbg=false)
 ~XrdMpxVar ()
int Pop (const char *vName)
int Push (const char *vName)
void Reset ()
const char * Var ()

Detailed Description

Definition at line 184 of file XrdMpxXml.cc.

Constructor & Destructor Documentation

◆ XrdMpxVar()

XrdMpxVar::XrdMpxVar ( bool dbg = false)
inline

Definition at line 196 of file XrdMpxXml.cc.

197 : vFence(vBuff + sizeof(vBuff) - 1), Debug(dbg) {Reset();}
bool Debug
void Reset()
Definition XrdMpxXml.cc:192

References Reset().

Here is the call graph for this function:

◆ ~XrdMpxVar()

XrdMpxVar::~XrdMpxVar ( )
inline

Definition at line 198 of file XrdMpxXml.cc.

198{}

Member Function Documentation

◆ Pop()

int XrdMpxVar::Pop ( const char * vName)

Definition at line 211 of file XrdMpxXml.cc.

212{
213 if (Debug) std::cerr <<"Pop: " <<(vName ? vName : "") <<"; var=" <<vBuff <<std::endl;
214 if (vNum < 0 || (vName && strcmp(vStack[vNum], vName))) return 0;
215 vEnd = vStack[vNum]-1; *vEnd = '\0'; vNum--;
216 return 1;
217}

Referenced by XrdMpxXml::Format().

Here is the caller graph for this function:

◆ Push()

int XrdMpxVar::Push ( const char * vName)

Definition at line 223 of file XrdMpxXml.cc.

224{
225 int n = strlen(vName);
226
227 if (Debug) std::cerr <<"Push: " <<vName <<"; var=" <<vBuff <<std::endl;
228 if (vNum >= vMax) return 0;
229 if (vNum >= 0) *vEnd++ = '.';
230 else vEnd = vBuff;
231 if (vEnd+n+1 >= vFence) return 0;
232 strcpy(vEnd, vName);
233 vStack[++vNum] = vEnd;
234 vEnd += n;
235 return 1;
236}

Referenced by XrdMpxXml::Format().

Here is the caller graph for this function:

◆ Reset()

void XrdMpxVar::Reset ( )
inline

Definition at line 192 of file XrdMpxXml.cc.

192{vEnd = vBuff; vNum = -1; *vBuff = 0;}

Referenced by XrdMpxVar().

Here is the caller graph for this function:

◆ Var()

const char * XrdMpxVar::Var ( )
inline

Definition at line 194 of file XrdMpxXml.cc.

194{return vBuff;}

Referenced by XrdMpxXml::Format().

Here is the caller graph for this function:

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