Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set | ||
|
||
#include <xml_helper.h>
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. |
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.
operations_research::XmlHelper::XmlHelper | ( | ) |
Definition at line 24 of file xml_helper.cc.
void operations_research::XmlHelper::StartDocument | ( | ) |
void operations_research::XmlHelper::StartElement | ( | const string & | name | ) |
void operations_research::XmlHelper::AddAttribute | ( | const string & | key, | |
int | value | |||
) |
void operations_research::XmlHelper::AddAttribute | ( | const string & | key, | |
const string & | value | |||
) |
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 | ( | ) |
const string & operations_research::XmlHelper::GetContent | ( | ) | const |