Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ src/ util/

operations_research::XmlHelper Class Reference

Lightweight XML writer that is optimized for CPViz output. More...

#include <xml_helper.h>

List of all members.

Public Member Functions

 XmlHelper ()
void StartDocument ()
 Starts a new XML document.
void StartElement (const string &name)
 Starts a new element.
void AddAttribute (const string &key, int value)
 Adds a key-value pair to the current element.
void AddAttribute (const string &key, const string &value)
 Adds a key-value pair to the current element.
void EndElement ()
 Ends the current element and goes back to the previous element.
void EndDocument ()
 Ends the document.
const string & GetContent () const
 Returns the XML content written so far.


Detailed Description

Lightweight XML writer that is optimized for CPViz output.

As it only supports the features required by CPViz, it should not be used to generate general-purpose XML data.

Definition at line 29 of file xml_helper.h.


Constructor & Destructor Documentation

operations_research::XmlHelper::XmlHelper (  ) 

Definition at line 24 of file xml_helper.cc.


Member Function Documentation

void operations_research::XmlHelper::StartDocument (  ) 

Starts a new XML document.

Definition at line 26 of file xml_helper.cc.

void operations_research::XmlHelper::StartElement ( const string &  name  ) 

Starts a new element.

Definition at line 31 of file xml_helper.cc.

void operations_research::XmlHelper::AddAttribute ( const string &  key,
int  value 
)

Adds a key-value pair to the current element.

Definition at line 40 of file xml_helper.cc.

void operations_research::XmlHelper::AddAttribute ( const string &  key,
const string &  value 
)

Adds a key-value pair to the current element.

Definition at line 44 of file xml_helper.cc.

void operations_research::XmlHelper::EndElement (  ) 

Ends the current element and goes back to the previous element.

Definition at line 75 of file xml_helper.cc.

void operations_research::XmlHelper::EndDocument (  ) 

Ends the document.

Definition at line 88 of file xml_helper.cc.

const string & operations_research::XmlHelper::GetContent (  )  const

Returns the XML content written so far.

Definition at line 90 of file xml_helper.cc.


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