EPICS ARCHIVER V4
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
FUX Class Reference

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...
 
Elementparse (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
 

Detailed Description

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.

Constructor & Destructor Documentation

FUX::FUX ( )

Constructor.

FUX::~FUX ( )

Destructor.

Member Function Documentation

void FUX::clear ( )
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 void FUX::indent ( FILE *  f,
int  depth 
)
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.

Exceptions
GenericExceptionin case of errors.
void FUX::setDoc ( Element doc)

Set the document.


The documentation for this class was generated from the following file: