frepple::utils::XMLOutputFile Class Reference

This class writes XML data to a flat file. More...

#include <utils.h>

Inheritance diagram for frepple::utils::XMLOutputFile:

Public Member Functions

 XMLOutputFile (const string &chFilename)
 
 ~XMLOutputFile ()
 
- Public Member Functions inherited from frepple::utils::XMLOutput
void BeginObject (const Keyword &t)
 
void BeginObject (const Keyword &t, const string &atts)
 
template<class T >
void BeginObject (const Keyword &t, const Keyword &attr1, const T &val1)
 
template<class T , class U >
void BeginObject (const Keyword &t, const Keyword &attr1, const T &val1, const Keyword &attr2, const U &val2)
 
template<class T , class U , class V >
void BeginObject (const Keyword &t, const Keyword &attr1, const T &val1, const Keyword &attr2, const U &val2, const Keyword &attr3, const V &val3)
 
unsigned long countObjects () const
 
void EndObject (const Keyword &t)
 
content_type getContentType () const
 
ObjectgetCurrentObject () const
 
string getHeaderAtts () const
 
string getHeaderStart () const
 
const char * getIndent ()
 
ObjectgetPreviousObject () const
 
bool getReferencesOnly () const
 
void setContentType (content_type c)
 
void setHeaderAtts (const string &s)
 
void setHeaderStart (const string &s)
 
void setReferencesOnly (bool b)
 
void writeElement (const Keyword &t, const long unsigned int val)
 
void writeElement (const Keyword &t, const int val)
 
void writeElement (const Keyword &t, const double val)
 
void writeElement (const Keyword &t, const bool val)
 
void writeElement (const Keyword &t, const string &val)
 
void writeElement (const Keyword &u, const Keyword &t, const string &val)
 
void writeElement (const Keyword &u, const Keyword &t, const long val)
 
void writeElement (const Keyword &u, const Keyword &t, const Date &val)
 
void writeElement (const Keyword &u, const Keyword &t1, const string &val1, const Keyword &t2, const string &val2)
 
void writeElement (const Keyword &u, const Keyword &t1, unsigned long val1, const Keyword &t2, const string &val2)
 
void writeElement (const Keyword &t, const char *val)
 
void writeElement (const Keyword &t, const TimePeriod d)
 
void writeElement (const Keyword &t, const Date d)
 
void writeElement (const Keyword &t, const DateRange &d)
 
void writeElement (const Keyword &, const Object *, mode=DEFAULT)
 
void writeElement (const Keyword &t, const Object &o, mode m=DEFAULT)
 
void writeElementWithHeader (const Keyword &tag, const Object *object)
 
void writeHeader (const Keyword &tag)
 
void writeString (const string &c)
 
 XMLOutput (ostream &os)
 
 XMLOutput ()
 

Additional Inherited Members

- Public Types inherited from frepple::utils::XMLOutput
typedef unsigned short content_type
 
- Static Public Attributes inherited from frepple::utils::XMLOutput
static const content_type PLAN = 2
 
static const content_type PLANDETAIL = 4
 
static const content_type STANDARD = 1
 
- Protected Member Functions inherited from frepple::utils::XMLOutput
void setOutput (ostream &o)
 

Detailed Description

This class writes XML data to a flat file.

Note that an object of this class can write only to a single file. If multiple files are required multiple XMLOutputFile objects will be required too.

See Also
XMLOutput

Definition at line 2407 of file utils.h.

Constructor & Destructor Documentation

frepple::utils::XMLOutputFile::XMLOutputFile ( const string &  chFilename)
inline

Constructor with a filename as argument. An exception will be thrown if the output file can't be properly initialized.

Definition at line 2412 of file utils.h.

frepple::utils::XMLOutputFile::~XMLOutputFile ( )
inline

Destructor.

Definition at line 2420 of file utils.h.


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