|
Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
|
#include <XMLWriter.h>
Inheritance diagram for cheprep::XMLWriter:Public Member Functions | |
| XMLWriter (std::ostream *out, std::string indentString=" ", std::string defaultNameSpace="") | |
| virtual | ~XMLWriter () |
| void | close () |
| void | openDoc (std::string version="1.0", std::string encoding="", bool standalone=false) |
| void | referToDTD (std::string name, std::string pid, std::string ref) |
| void | referToDTD (std::string name, std::string system) |
| void | closeDoc (bool force=false) |
| void | printComment (std::string comment) |
| void | printPlain (std::string text) |
| void | print (std::string text) |
| void | println (std::string text) |
| void | openTag (std::string name) |
| void | closeTag () |
| void | printTag (std::string name) |
| void | setAttribute (std::string name, char *value) |
| void | setAttribute (std::string name, std::string value) |
| void | setAttribute (std::string name, std::vector< double > value) |
| void | setAttribute (std::string name, int64 value) |
| void | setAttribute (std::string name, int value) |
| void | setAttribute (std::string name, bool value) |
| void | setAttribute (std::string name, double value) |
| void | printAttributes (int tagLength) |
| std::string | normalize (std::string s) |
| std::string | normalizeText (std::string s) |
| void | checkNameValid (std::string s) |
| void | openTag (std::string ns, std::string name) |
| void | printTag (std::string ns, std::string name) |
| void | setAttribute (std::string ns, std::string name, std::string value) |
| void | setAttribute (std::string ns, std::string name, double value) |
Public Member Functions inherited from cheprep::AbstractXMLWriter | |
| AbstractXMLWriter (std::string aDefaultNameSpace) | |
| virtual | ~AbstractXMLWriter () |
| virtual void | openTag (std::string ns, std::string name)=0 |
| virtual void | printTag (std::string ns, std::string name)=0 |
| virtual void | setAttribute (std::string ns, std::string name, std::string value)=0 |
| virtual void | setAttribute (std::string ns, std::string name, double value)=0 |
| virtual void | close ()=0 |
| virtual void | openDoc (std::string version="1.0", std::string encoding="", bool standalone=false)=0 |
| virtual void | closeDoc (bool force=false)=0 |
| virtual void | openTag (std::string name)=0 |
| virtual void | closeTag ()=0 |
| virtual void | printTag (std::string name)=0 |
| virtual void | setAttribute (std::string name, char *value)=0 |
| virtual void | setAttribute (std::string name, std::string value)=0 |
| virtual void | setAttribute (std::string name, std::vector< double > value)=0 |
| virtual void | setAttribute (std::string name, int64 value)=0 |
| virtual void | setAttribute (std::string name, int value)=0 |
| virtual void | setAttribute (std::string name, bool value)=0 |
| virtual void | setAttribute (std::string name, double value)=0 |
Protected Attributes | |
| bool | closed |
| IndentPrintWriter * | writer |
Protected Attributes inherited from cheprep::AbstractXMLWriter | |
| std::string | defaultNameSpace |
Definition at line 21 of file XMLWriter.h.
| cheprep::XMLWriter::XMLWriter | ( | std::ostream * | out, |
| std::string | indentString = " ", |
||
| std::string | defaultNameSpace = "" |
||
| ) |
Definition at line 17 of file XMLWriter.cc.
|
virtual |
Definition at line 25 of file XMLWriter.cc.
| void cheprep::XMLWriter::checkNameValid | ( | std::string | s | ) |
Definition at line 279 of file XMLWriter.cc.
Referenced by openTag(), printAttributes(), and printTag().
|
virtual |
Implements cheprep::AbstractXMLWriter.
Definition at line 30 of file XMLWriter.cc.
|
virtual |
Implements cheprep::AbstractXMLWriter.
Definition at line 69 of file XMLWriter.cc.
Referenced by close().
|
virtual |
Implements cheprep::AbstractXMLWriter.
Definition at line 118 of file XMLWriter.cc.
Referenced by closeDoc().
| string cheprep::XMLWriter::normalize | ( | std::string | s | ) |
Definition at line 200 of file XMLWriter.cc.
Referenced by printAttributes().
| string cheprep::XMLWriter::normalizeText | ( | std::string | s | ) |
Definition at line 246 of file XMLWriter.cc.
Referenced by print(), and printComment().
|
virtual |
Implements cheprep::AbstractXMLWriter.
Definition at line 35 of file XMLWriter.cc.
|
virtual |
Implements cheprep::AbstractXMLWriter.
Definition at line 106 of file XMLWriter.cc.
Referenced by openTag().
|
inlinevirtual |
Implements cheprep::AbstractXMLWriter.
Definition at line 53 of file XMLWriter.h.
| void cheprep::XMLWriter::print | ( | std::string | text | ) |
Definition at line 97 of file XMLWriter.cc.
Referenced by println().
| void cheprep::XMLWriter::printAttributes | ( | int | tagLength | ) |
Definition at line 175 of file XMLWriter.cc.
Referenced by openTag(), and printTag().
| void cheprep::XMLWriter::printComment | ( | std::string | comment | ) |
Definition at line 86 of file XMLWriter.cc.
| void cheprep::XMLWriter::println | ( | std::string | text | ) |
Definition at line 101 of file XMLWriter.cc.
| void cheprep::XMLWriter::printPlain | ( | std::string | text | ) |
Definition at line 93 of file XMLWriter.cc.
|
virtual |
Implements cheprep::AbstractXMLWriter.
Definition at line 129 of file XMLWriter.cc.
Referenced by printTag().
|
inlinevirtual |
| void cheprep::XMLWriter::referToDTD | ( | std::string | name, |
| std::string | pid, | ||
| std::string | ref | ||
| ) |
Definition at line 53 of file XMLWriter.cc.
| void cheprep::XMLWriter::referToDTD | ( | std::string | name, |
| std::string | system | ||
| ) |
Definition at line 61 of file XMLWriter.cc.
|
virtual |
Implements cheprep::AbstractXMLWriter.
Definition at line 165 of file XMLWriter.cc.
|
virtual |
Implements cheprep::AbstractXMLWriter.
Definition at line 136 of file XMLWriter.cc.
Referenced by setAttribute().
|
virtual |
|
virtual |
Implements cheprep::AbstractXMLWriter.
Definition at line 155 of file XMLWriter.cc.
|
virtual |
|
virtual |
Implements cheprep::AbstractXMLWriter.
Definition at line 140 of file XMLWriter.cc.
|
virtual |
|
inlinevirtual |
Implements cheprep::AbstractXMLWriter.
Definition at line 62 of file XMLWriter.h.
|
inlinevirtual |
Implements cheprep::AbstractXMLWriter.
Definition at line 59 of file XMLWriter.h.
|
protected |
Definition at line 69 of file XMLWriter.h.
Referenced by closeDoc(), and XMLWriter().
|
protected |
Definition at line 70 of file XMLWriter.h.
Referenced by close(), closeTag(), openDoc(), openTag(), print(), printAttributes(), printComment(), println(), printPlain(), printTag(), referToDTD(), XMLWriter(), and ~XMLWriter().