EPICS ARCHIVER V4
|
The f.u.XML helper class. More...
#include <FUX.h>
Classes | |
class | Element |
One element in the FUX tree. More... | |
Public Member Functions | |
FUX () | |
Constructor. More... | |
~FUX () | |
Destructor. More... | |
Element * | parse (const char *file_name) |
Parse the given XML file into the FUX tree. More... | |
void | clear () |
Clear/delete the current document. More... | |
void | setDoc (Element *doc) |
Set the document. More... | |
void | dump (FILE *f) |
Dumps the FUX document. More... | |
Static Public Member Functions | |
static void | indent (FILE *f, int depth) |
Add indentation to the file. More... | |
Public Attributes | |
stdString | DTD |
The DTD. Set for dump(). | |
Friends | |
class | FUXContentHandler |
class | FUXErrorHandler |
The f.u.XML helper class.
"f.u." could stand for
or whatever you want.
In any case, FUX implements XML read and write support. The 'read' part is based on XML libraries, there's a choice of using
Since Xerces handles validation and Expat doesn't, the former should be preferred. You pick which one you want to use in the FUX.h header file.
FUX::FUX | ( | ) |
Constructor.
FUX::~FUX | ( | ) |
Destructor.
|
inline |
Clear/delete the current document.
void FUX::dump | ( | FILE * | f | ) |
Dumps the FUX document.
Elements with values that are pure white space are printed as empty elements. Tabs are used to indent the elements according to their hierarchical location in the document.
|
static |
Add indentation to the file.
Element* FUX::parse | ( | const char * | file_name | ) |
Parse the given XML file into the FUX tree.
Returns root of the FUX document.
GenericException | in case of errors. |
void FUX::setDoc | ( | Element * | doc | ) |
Set the document.