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 () | |
| XMLInputFile (const string &s) | |
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.
Definition at line 3661 of file utils.h.
| frepple::utils::XMLInputFile::XMLInputFile | ( | const string & | s | ) | [inline] |
| frepple::utils::XMLInputFile::XMLInputFile | ( | ) | [inline] |
| string frepple::utils::XMLInputFile::getFileName | ( | ) | [inline] |
| void frepple::utils::XMLInputFile::parse | ( | Object * | pRoot, | |
| bool | validate = false | |||
| ) | [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 785 of file xmlparser.cpp.
| void frepple::utils::XMLInputFile::setFileName | ( | const string & | s | ) | [inline] |
1.6.1