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 () | |
Public Member Functions inherited from frepple::utils::XMLInput | |
| 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 | |
Public Types inherited from frepple::utils::XMLInput | |
| typedef pair< Attribute, XMLElement > | datapair |
Static Public Member Functions inherited from frepple::utils::XMLInput | |
| static char * | transcodeUTF8 (const XMLCh *) |
Protected Member Functions inherited from frepple::utils::NonCopyable | |
| 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 |