Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
cheprep::XMLWriter Class Reference

#include <XMLWriter.h>

Inheritance diagram for cheprep::XMLWriter:
Inheritance graph
[legend]
Collaboration diagram for cheprep::XMLWriter:
Collaboration graph
[legend]

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 ()
 

Protected Attributes

bool closed
 
IndentPrintWriterwriter
 
- Protected Attributes inherited from cheprep::AbstractXMLWriter
std::string defaultNameSpace
 

Detailed Description

Definition at line 22 of file XMLWriter.h.

Constructor & Destructor Documentation

cheprep::XMLWriter::XMLWriter ( std::ostream *  out,
std::string  indentString = "  ",
std::string  defaultNameSpace = "" 
)

Definition at line 18 of file XMLWriter.cc.

Here is the call graph for this function:

cheprep::XMLWriter::~XMLWriter ( )
virtual

Definition at line 26 of file XMLWriter.cc.

Here is the call graph for this function:

Member Function Documentation

void cheprep::XMLWriter::checkNameValid ( std::string  s)

Definition at line 280 of file XMLWriter.cc.

Here is the caller graph for this function:

void cheprep::XMLWriter::close ( )
virtual

Implements cheprep::AbstractXMLWriter.

Definition at line 31 of file XMLWriter.cc.

Here is the call graph for this function:

void cheprep::XMLWriter::closeDoc ( bool  force = false)
virtual

Implements cheprep::AbstractXMLWriter.

Definition at line 70 of file XMLWriter.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void cheprep::XMLWriter::closeTag ( )
virtual

Implements cheprep::AbstractXMLWriter.

Definition at line 119 of file XMLWriter.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

string cheprep::XMLWriter::normalize ( std::string  s)

Definition at line 201 of file XMLWriter.cc.

Here is the caller graph for this function:

string cheprep::XMLWriter::normalizeText ( std::string  s)

Definition at line 247 of file XMLWriter.cc.

Here is the caller graph for this function:

void cheprep::XMLWriter::openDoc ( std::string  version = "1.0",
std::string  encoding = "",
bool  standalone = false 
)
virtual

Implements cheprep::AbstractXMLWriter.

Definition at line 36 of file XMLWriter.cc.

Here is the call graph for this function:

void cheprep::XMLWriter::openTag ( std::string  name)
virtual

Implements cheprep::AbstractXMLWriter.

Here is the caller graph for this function:

void cheprep::XMLWriter::openTag ( std::string  ns,
std::string  name 
)
inlinevirtual

Implements cheprep::AbstractXMLWriter.

Definition at line 54 of file XMLWriter.h.

Here is the call graph for this function:

void cheprep::XMLWriter::print ( std::string  text)

Definition at line 98 of file XMLWriter.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void cheprep::XMLWriter::printAttributes ( int  tagLength)

Definition at line 176 of file XMLWriter.cc.

Here is the call graph for this function:

void cheprep::XMLWriter::printComment ( std::string  comment)

Definition at line 87 of file XMLWriter.cc.

Here is the call graph for this function:

void cheprep::XMLWriter::println ( std::string  text)

Definition at line 102 of file XMLWriter.cc.

Here is the call graph for this function:

void cheprep::XMLWriter::printPlain ( std::string  text)

Definition at line 94 of file XMLWriter.cc.

void cheprep::XMLWriter::printTag ( std::string  name)
virtual

Implements cheprep::AbstractXMLWriter.

Here is the caller graph for this function:

void cheprep::XMLWriter::printTag ( std::string  ns,
std::string  name 
)
inlinevirtual

Implements cheprep::AbstractXMLWriter.

Definition at line 57 of file XMLWriter.h.

Here is the call graph for this function:

void cheprep::XMLWriter::referToDTD ( std::string  name,
std::string  pid,
std::string  ref 
)
void cheprep::XMLWriter::referToDTD ( std::string  name,
std::string  system 
)
void cheprep::XMLWriter::setAttribute ( std::string  name,
char *  value 
)
virtual

Implements cheprep::AbstractXMLWriter.

Here is the caller graph for this function:

void cheprep::XMLWriter::setAttribute ( std::string  name,
std::string  value 
)
virtual
void cheprep::XMLWriter::setAttribute ( std::string  name,
std::vector< double >  value 
)
virtual

Implements cheprep::AbstractXMLWriter.

Definition at line 146 of file XMLWriter.cc.

Here is the call graph for this function:

void cheprep::XMLWriter::setAttribute ( std::string  name,
int64  value 
)
virtual

Implements cheprep::AbstractXMLWriter.

Definition at line 151 of file XMLWriter.cc.

Here is the call graph for this function:

void cheprep::XMLWriter::setAttribute ( std::string  name,
int  value 
)
virtual

Implements cheprep::AbstractXMLWriter.

Definition at line 156 of file XMLWriter.cc.

Here is the call graph for this function:

void cheprep::XMLWriter::setAttribute ( std::string  name,
bool  value 
)
virtual

Implements cheprep::AbstractXMLWriter.

Definition at line 166 of file XMLWriter.cc.

Here is the call graph for this function:

void cheprep::XMLWriter::setAttribute ( std::string  name,
double  value 
)
virtual
void cheprep::XMLWriter::setAttribute ( std::string  ns,
std::string  name,
std::string  value 
)
inlinevirtual

Implements cheprep::AbstractXMLWriter.

Definition at line 60 of file XMLWriter.h.

Here is the call graph for this function:

void cheprep::XMLWriter::setAttribute ( std::string  ns,
std::string  name,
double  value 
)
inlinevirtual

Implements cheprep::AbstractXMLWriter.

Definition at line 63 of file XMLWriter.h.

Here is the call graph for this function:

Member Data Documentation

bool cheprep::XMLWriter::closed
protected

Definition at line 70 of file XMLWriter.h.

IndentPrintWriter* cheprep::XMLWriter::writer
protected

Definition at line 71 of file XMLWriter.h.


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