![]() |
XRootD
|
#include <XrdXmlRdrTiny.hh>
Public Member Functions | |
XrdXmlRdrTiny (bool &aOK, const char *fname, const char *enc=0) | |
Constructor & Destructor. More... | |
virtual | ~XrdXmlRdrTiny () |
virtual bool | GetAttributes (const char **aname, char **aval) |
virtual int | GetElement (const char **ename, bool reqd=false) |
virtual const char * | GetError (int &ecode) |
virtual char * | GetText (const char *ename, bool reqd=false) |
![]() | |
XrdXmlReader () | |
Constructor & Destructor. More... | |
virtual | ~XrdXmlReader () |
Static Public Member Functions | |
static bool | Init () |
![]() | |
static XrdXmlReader * | GetReader (const char *fname, const char *enc=0, const char *impl=0) |
static bool | Init (const char *impl=0) |
Definition at line 42 of file XrdXmlRdrTiny.hh.
XrdXmlRdrTiny::XrdXmlRdrTiny | ( | bool & | aOK, |
const char * | fname, | ||
const char * | enc = 0 |
||
) |
Constructor & Destructor.
Definition at line 83 of file XrdXmlRdrTiny.cc.
References Stat, stat(), and XrdSysE2T().
|
virtual |
Definition at line 129 of file XrdXmlRdrTiny.cc.
|
virtual |
Get attributes from an XML tag. GetAttributes() should only be called after a successful GetElement() call.
aname | Pointer to an array of attribute names whose values are to be returned. The last entry in the array must be nil. |
aval | Pointer to an array where the corresponding attribute values are to be placed in 1-to-1 correspondence. The values must be freed using free(). |
Implements XrdXmlReader.
Definition at line 161 of file XrdXmlRdrTiny.cc.
|
virtual |
Find an XML tag element.
ename | Pointer to an array of tag names any of which should be searched for. The last entry in the array must be nil. The first element of the array should contain the name of the context tag. Elements are searched only within the scope of that tag. When searching for the first desired tag, use a null string to indicate document scope. |
reqd | When true one of the tag elements listed in ename must be found otherwise an error is generated. |
Implements XrdXmlReader.
Definition at line 196 of file XrdXmlRdrTiny.cc.
References Macaroons::Debug.
|
inlinevirtual |
Get the description of the last error encountered.
ecode | The error code associated with the error. |
Implements XrdXmlReader.
Definition at line 51 of file XrdXmlRdrTiny.hh.
|
virtual |
Get the text portion of an XML tag element. GetText() should only be called after a successful call to GetElement() with a possibly intervening call to GetAttributes().
ename | Pointer to the corresponding tag name. |
reqd | When true text must exist and not be null. Otherwise, an error is generated if the text is missing or null. |
Implements XrdXmlReader.
Definition at line 263 of file XrdXmlRdrTiny.cc.
|
static |
Definition at line 300 of file XrdXmlRdrTiny.cc.