#include <XmlDocument.h>
Inheritance diagram for XmlDocument:
A derived class must implement the pure virtual functions probably using an extern XML package.
Definition at line 32 of file XmlDocument.h.
Public Types | |
enum | Status { Success, OpenError, ParseError, WriteError } |
Status codes for opening an XML document. More... | |
Public Member Functions | |
virtual void | appendChild (XmlElement &)=0 |
Appends the root element to the document. | |
virtual XmlElement * | createElement (const std::string &tagName)=0 |
Creates a new DOM element wrapper object and returns a pointer to it. | |
virtual XmlTextNode * | createTextNode (const std::string &tag)=0 |
Creates a new DOM Text node. | |
virtual XmlElement * | documentElement () const=0 |
Returns the root document element. | |
virtual Status | saveToFile (const std::string &filename)=0 |
Saves the document to the file. | |
virtual Status | setContent (const std::string &filename)=0 |
Sets the content of the XML document from the text in the file filename. | |
virtual | ~XmlDocument () |
The destructor. | |
Protected Member Functions | |
XmlDocument () | |
The default constructor. | |
Private Member Functions | |
XmlDocument (const XmlDocument &) | |
A private copy constructor in order to avoid copying. |
enum Status |
XmlDocument | ( | const XmlDocument & | ) | [private] |
A private copy constructor in order to avoid copying.
XmlDocument | ( | ) | [protected] |
~XmlDocument | ( | ) | [virtual] |
virtual void appendChild | ( | XmlElement & | ) | [pure virtual] |
Appends the root element to the document.
Implemented in QtXmlDocument.
Referenced by XmlController::createDocument().
virtual XmlElement* createElement | ( | const std::string & | tagName | ) | [pure virtual] |
Creates a new DOM element wrapper object and returns a pointer to it.
The receiver takes procession of the object and is responsible for its deletion.
Implemented in QtXmlDocument.
Referenced by NTupleProjectorXML::createChildren(), PlotterBaseXML::createCutChildren(), XmlController::createDocument(), BaseXML::createElement(), DataRepXML::createFunctionTargetChild(), and PlotterBaseXML::createTextChildren().
virtual XmlTextNode* createTextNode | ( | const std::string & | tag | ) | [pure virtual] |
virtual XmlElement* documentElement | ( | ) | const [pure virtual] |
Returns the root document element.
Implemented in QtXmlDocument.
Referenced by XmlController::addDataSource(), XmlController::addViews(), XmlController::getDataReps(), XmlController::getTupleCuts(), XmlController::getViews(), and XmlController::openNTuples().
virtual Status saveToFile | ( | const std::string & | filename | ) | [pure virtual] |
Saves the document to the file.
Implemented in QtXmlDocument.
Referenced by XmlController::saveToFile().
virtual Status setContent | ( | const std::string & | filename | ) | [pure virtual] |
Sets the content of the XML document from the text in the file filename.
Also sets the application's current working directory to the path to the file. This is done so that files referenced by the XML document can be found relative to the document itself.
Implemented in QtXmlDocument.
Referenced by XmlController::openDocument().