frepple::utils::XMLOutputString Class Reference

This class writes XML data to a string. More...

#include <utils.h>

Inheritance diagram for frepple::utils::XMLOutputString:

Public Member Functions

const string getData () const
 
 XMLOutputString (const string &str)
 
 XMLOutputString ()
 
- 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 string.

The generated output is stored internally in the class, and can be accessed by converting the XMLOutputString object to a string object. This class can consume a lot of memory if large sets of objects are being saved in this way.

See Also
XMLOutput

Definition at line 2435 of file utils.h.

Constructor & Destructor Documentation

frepple::utils::XMLOutputString::XMLOutputString ( const string &  str)
inline

Constructor with a starting string as argument.

Definition at line 2439 of file utils.h.

frepple::utils::XMLOutputString::XMLOutputString ( )
inline

Default constructor.

Definition at line 2442 of file utils.h.

Member Function Documentation

const string frepple::utils::XMLOutputString::getData ( ) const
inline

Return the output string.

Definition at line 2445 of file utils.h.


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