This class represents an XML element being read in from the input file. More...
#include <utils.h>

Public Member Functions | |
| void | addData (const char *pData, size_t len) |
| bool | getBool () const |
| const char * | getData () const |
| virtual Date | getDate () const |
| virtual double | getDouble () const |
| virtual int | getInt () const |
| virtual long | getLong () const |
| virtual string | getString () const |
| virtual TimePeriod | getTimeperiod () const |
| virtual unsigned long | getUnsignedLong () const |
| virtual | operator bool () const |
| void | reset () |
| void | setData (const char *pData) |
| XMLElement () | |
| XMLElement (const string &v) | |
| virtual | ~XMLElement () |
Public Member Functions inherited from frepple::utils::DataElement | |
| void | operator>> (unsigned long int &val) const |
| void | operator>> (long &val) const |
| void | operator>> (TimePeriod &val) const |
| void | operator>> (bool &v) const |
| void | operator>> (int &val) const |
| void | operator>> (double &val) const |
| void | operator>> (Date &val) const |
| void | operator>> (string &val) const |
| virtual | ~DataElement () |
This class represents an XML element being read in from the input file.
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
virtual |
Interprets the element as a boolean value.
Our implementation is a bit more generous and forgiving than the boolean datatype that is part of the XML schema v2 standard. The standard expects the following literals:
{true, false, 1, 0}
Our implementation uses only the first charater of the text, and is case insensitive. It thus matches a wider range of values:
{t.*, T.*, f.*, F.*, 1.*, 0.*}
Reimplemented from frepple::utils::DataElement.
Definition at line 695 of file xmlparser.cpp.
|
inline |
|
inlinevirtual |
Reimplemented from frepple::utils::DataElement.
|
inlinevirtual |
Reimplemented from frepple::utils::DataElement.
|
inlinevirtual |
Reimplemented from frepple::utils::DataElement.
|
inlinevirtual |
Reimplemented from frepple::utils::DataElement.
|
inlinevirtual |
Returns the string value of the XML data. The xerces library takes care of appropriately unescaping special character sequences.
Reimplemented from frepple::utils::DataElement.
|
inlinevirtual |
Reimplemented from frepple::utils::DataElement.
|
inlinevirtual |
Reimplemented from frepple::utils::DataElement.
|
inlinevirtual |
Reimplemented from frepple::utils::DataElement.
|
inline |
|
inline |