CppUnit project page | FAQ | CppUnit home page |
#include <XmlDocument.h>
Public Member Functions | |
XmlDocument (const std::string &encoding="", const std::string &styleSheet="") | |
Constructs a XmlDocument object. | |
virtual | ~XmlDocument () |
Destructor. | |
std::string | encoding () const |
void | setEncoding (const std::string &encoding="") |
std::string | styleSheet () const |
void | setStyleSheet (const std::string &styleSheet="") |
void | setRootElement (XmlElement *rootElement) |
XmlElement & | rootElement () const |
std::string | toString () const |
Protected Attributes | |
std::string | m_encoding |
std::string | m_styleSheet |
XmlElement * | m_rootElement |
Private Member Functions | |
XmlDocument (const XmlDocument ©) | |
Prevents the use of the copy constructor. | |
void | operator= (const XmlDocument ©) |
Prevents the use of the copy operator. |
A XmlDocument represents a XML file. It holds a pointer on the root XmlElement of the document. It also holds the encoding and style sheet used.
CPPUNIT_NS_BEGIN XmlDocument::XmlDocument | ( | const std::string & | encoding = "" , |
|
const std::string & | styleSheet = "" | |||
) |
Constructs a XmlDocument object.
encoding | Encoding used in the XML file (default is Latin-1, ISO-8859-1 ). | |
styleSheet | Name of the XSL style sheet file used. If empty then no style sheet will be specified in the output. |
XmlDocument::~XmlDocument | ( | ) | [virtual] |
Destructor.
XmlDocument::XmlDocument | ( | const XmlDocument & | copy | ) | [private] |
Prevents the use of the copy constructor.
std::string XmlDocument::encoding | ( | ) | const |
void XmlDocument::operator= | ( | const XmlDocument & | copy | ) | [private] |
Prevents the use of the copy operator.
XmlElement & XmlDocument::rootElement | ( | ) | const |
void XmlDocument::setEncoding | ( | const std::string & | encoding = "" |
) |
void XmlDocument::setRootElement | ( | XmlElement * | rootElement | ) |
void XmlDocument::setStyleSheet | ( | const std::string & | styleSheet = "" |
) |
std::string XmlDocument::styleSheet | ( | ) | const |
std::string XmlDocument::toString | ( | ) | const |
std::string XmlDocument::m_encoding [protected] |
XmlElement* XmlDocument::m_rootElement [protected] |
std::string XmlDocument::m_styleSheet [protected] |
|
hosts this site. |
Send comments to: CppUnit Developers |