This class reads XML data from a file system. More...
#include <utils.h>
Public Member Functions | |
string | getFileName () |
void | parse (Object *, bool=false) |
void | setFileName (const string &s) |
XMLInputFile (const string &s) | |
XMLInputFile () | |
![]() | |
bool | getAbortOnDataError () const |
const AttributeList & | getAttributes () const |
const datapair & | getCurrentElement () const |
const datapair & | getParentElement () const |
Object * | getParentObject () const |
Object * | getPreviousObject () const |
void * | getUserArea () const |
PythonFunction | getUserExit () const |
void | IgnoreElement () |
void | invalidateCurrentObject () |
bool | isObjectEnd () |
void | parse (xercesc::InputSource &, Object *, bool=false) |
void | readto (Object *) |
void | setAbortOnDataError (bool i) |
void | setUserArea (void *v) |
void | setUserExit (PyObject *p) |
void | shutdown () |
XMLInput (unsigned short maxNestedElmnts=20) | |
virtual | ~XMLInput () |
Additional Inherited Members | |
![]() | |
typedef pair< Attribute, XMLElement > | datapair |
![]() | |
static char * | transcodeUTF8 (const XMLCh *) |
![]() | |
NonCopyable () | |
~NonCopyable () | |
This class reads XML data from a file system.
The filename argument can be the name of a file or a directory. If a directory is passed, all files with the extension ".xml" will be read from it. Subdirectories are not recursed.
|
inline |
|
inline |
|
inline |
|
virtual |
Parse the specified file. When a directory was passed as the argument a failure is flagged as soon as a single file returned a failure. All files in an directory are processed however, regardless of failure with one of the files.
RuntimeException | Generated in the following conditions:
|
Reimplemented from frepple::utils::XMLInput.
Definition at line 857 of file xmlparser.cpp.
|
inline |