#include <XrdXmlRdrTiny.hh>
|
static bool | Init () |
|
static XrdXmlReader * | GetReader (const char *fname, const char *enc=0, const char *impl=0) |
|
static bool | Init (const char *impl=0) |
|
|
void | Debug (const char *, const char *, const char *, const char *, int) |
|
◆ XrdXmlRdrTiny()
XrdXmlRdrTiny::XrdXmlRdrTiny |
( |
bool & |
aOK, |
|
|
const char * |
fname, |
|
|
const char * |
enc = 0 |
|
) |
| |
Constructor & Destructor.
◆ ~XrdXmlRdrTiny()
virtual XrdXmlRdrTiny::~XrdXmlRdrTiny |
( |
| ) |
|
|
virtual |
◆ Debug()
void XrdXmlRdrTiny::Debug |
( |
const char * |
, |
|
|
const char * |
, |
|
|
const char * |
, |
|
|
const char * |
, |
|
|
int |
|
|
) |
| |
|
private |
◆ GetAttributes()
virtual bool XrdXmlRdrTiny::GetAttributes |
( |
const char ** |
aname, |
|
|
char ** |
aval |
|
) |
| |
|
virtual |
Get attributes from an XML tag. GetAttributes() should only be called after a successful GetElement() call.
- Parameters
-
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(). |
- Returns
- true One or more attributes have been returned. false No specified attributes were found.
Implements XrdXmlReader.
◆ GetElement()
virtual int XrdXmlRdrTiny::GetElement |
( |
const char ** |
ename, |
|
|
bool |
reqd = false |
|
) |
| |
|
virtual |
Find an XML tag element.
- Parameters
-
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. |
- Returns
- =0 No specified tag was found. Note that this corresponds to encountering the tag present in ename[0], i.e. scope end. >0 A tag was found, the return value is the index into ename that corresponds to the tag's name.
Implements XrdXmlReader.
◆ GetError()
virtual const char * XrdXmlRdrTiny::GetError |
( |
int & |
ecode | ) |
|
|
inlinevirtual |
Get the description of the last error encountered.
- Parameters
-
ecode | The error code associated with the error. |
- Returns
- Pointer to text describing the error. The text may be destroyed on a subsequent call to any other method. Otherwise it is stable. A nil pointer indicates that no error is present.
Implements XrdXmlReader.
References eCode, and eText.
◆ GetText()
virtual char * XrdXmlRdrTiny::GetText |
( |
const char * |
ename, |
|
|
bool |
reqd = false |
|
) |
| |
|
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().
- Parameters
-
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. |
- Returns
- =0 No text found.
-
!0 Pointer to the tag's text field. It must be free using free().
Implements XrdXmlReader.
◆ Init()
static bool XrdXmlRdrTiny::Init |
( |
| ) |
|
|
static |
◆ curElem
TiXmlElement* XrdXmlRdrTiny::curElem |
|
private |
◆ curNode
TiXmlNode* XrdXmlRdrTiny::curNode |
|
private |
◆ debug
bool XrdXmlRdrTiny::debug |
|
private |
◆ eCode
◆ elmNode
TiXmlNode* XrdXmlRdrTiny::elmNode |
|
private |
◆ eText
char XrdXmlRdrTiny::eText[251] |
|
private |
◆ reader
TiXmlDocument* XrdXmlRdrTiny::reader |
|
private |
The documentation for this class was generated from the following file: