Geant4.10
|
#include <XMLHepRepWriter.h>
Public Member Functions | |
XMLHepRepWriter (std::ostream *out, bool randomAccess, bool compress) | |
~XMLHepRepWriter () | |
bool | addProperty (std::string key, std::string value) |
bool | close () |
bool | write (HEPREP::HepRep *heprep, std::string name) |
bool | write (std::vector< std::string > layers) |
bool | write (HEPREP::HepRepTypeTree *typeTree) |
bool | write (HEPREP::HepRepType *type) |
bool | write (HEPREP::HepRepTreeID *treeID) |
bool | write (HEPREP::HepRepAction *action) |
bool | write (HEPREP::HepRepInstanceTree *instanceTree) |
bool | write (HEPREP::HepRepInstance *instance) |
bool | write (HEPREP::HepRepPoint *point) |
bool | write (HEPREP::HepRepAttribute *attribute) |
bool | write (HEPREP::HepRepDefinition *definition) |
bool | write (HEPREP::HepRepAttValue *attValue) |
bool | write (HEPREP::HepRepAttDef *attDef) |
Public Member Functions inherited from HEPREP::HepRepWriter | |
virtual | ~HepRepWriter () |
Destructor. More... | |
Definition at line 38 of file XMLHepRepWriter.h.
cheprep::XMLHepRepWriter::XMLHepRepWriter | ( | std::ostream * | out, |
bool | randomAccess, | ||
bool | compress | ||
) |
cheprep::XMLHepRepWriter::~XMLHepRepWriter | ( | ) |
Definition at line 50 of file XMLHepRepWriter.cc.
|
virtual |
Adds a property, to be written to the HepRep file when closed.
key | |
value |
Implements HEPREP::HepRepWriter.
Definition at line 55 of file XMLHepRepWriter.cc.
|
virtual |
Closes the writer and its underlying stream.
Implements HEPREP::HepRepWriter.
Definition at line 60 of file XMLHepRepWriter.cc.
References cheprep::GZIPOutputStream::close(), cheprep::ZipOutputStream::close(), cheprep::ZipOutputStream::closeEntry(), and cheprep::ZipOutputStream::putNextEntry().
|
virtual |
Writes a HepRep.
heprep | to be written. |
name | for the heprep to be written (for tagged access), may be ommited. |
Implements HEPREP::HepRepWriter.
Definition at line 79 of file XMLHepRepWriter.cc.
References cheprep::AbstractXMLWriter::closeDoc(), cheprep::ZipOutputStream::closeEntry(), cheprep::AbstractXMLWriter::closeTag(), HEPREP::HepRep::getInstanceTreeList(), HEPREP::HepRep::getLayerOrder(), HEPREP::HepRep::getTypeTreeList(), NAMESPACE, cheprep::AbstractXMLWriter::openDoc(), cheprep::AbstractXMLWriter::openTag(), cheprep::ZipOutputStream::putNextEntry(), and cheprep::AbstractXMLWriter::setAttribute().
Referenced by write().
|
virtual |
Writes the layerOrder.
layerOrder | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 117 of file XMLHepRepWriter.cc.
References cheprep::AbstractXMLWriter::printTag(), and cheprep::AbstractXMLWriter::setAttribute().
|
virtual |
Writes a HepRepTypeTree.
typeTree | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 132 of file XMLHepRepWriter.cc.
References cheprep::AbstractXMLWriter::closeTag(), HEPREP::HepRepTreeID::getName(), HEPREP::HepRepTypeTree::getTypeList(), HEPREP::HepRepTreeID::getVersion(), cheprep::AbstractXMLWriter::openTag(), cheprep::AbstractXMLWriter::setAttribute(), and write().
|
virtual |
Writes a HepRepType.
type | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 146 of file XMLHepRepWriter.cc.
References cheprep::AbstractXMLWriter::closeTag(), HEPREP::HepRepType::getName(), HEPREP::HepRepType::getTypeList(), cheprep::AbstractXMLWriter::openTag(), cheprep::AbstractXMLWriter::setAttribute(), and write().
|
virtual |
Writes a HepRepTreeID.
treeID | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 160 of file XMLHepRepWriter.cc.
References HEPREP::HepRepTreeID::getName(), HEPREP::HepRepTreeID::getQualifier(), HEPREP::HepRepTreeID::getVersion(), cheprep::AbstractXMLWriter::printTag(), and cheprep::AbstractXMLWriter::setAttribute().
|
virtual |
Writes a HepRepAction.
action | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 168 of file XMLHepRepWriter.cc.
References HEPREP::HepRepAction::getExpression(), HEPREP::HepRepAction::getName(), cheprep::AbstractXMLWriter::printTag(), and cheprep::AbstractXMLWriter::setAttribute().
|
virtual |
Writes a HepRepInstanceTree.
instanceTree | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 175 of file XMLHepRepWriter.cc.
References cheprep::AbstractXMLWriter::closeTag(), HEPREP::HepRepInstanceTree::getInstances(), HEPREP::HepRepInstanceTree::getInstanceTreeList(), HEPREP::HepRepTreeID::getName(), HEPREP::HepRepInstanceTree::getTypeTree(), HEPREP::HepRepTreeID::getVersion(), cheprep::AbstractXMLWriter::openTag(), cheprep::AbstractXMLWriter::setAttribute(), and write().
|
virtual |
Writes a HepRepInstance.
instance | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 196 of file XMLHepRepWriter.cc.
References cheprep::AbstractXMLWriter::closeTag(), HEPREP::HepRepType::getFullName(), HEPREP::HepRepInstance::getInstances(), HEPREP::HepRepInstance::getPoints(), HEPREP::HepRepInstance::getType(), cheprep::AbstractXMLWriter::openTag(), cheprep::AbstractXMLWriter::setAttribute(), and write().
|
virtual |
Writes a HepRepPoint.
point | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 215 of file XMLHepRepWriter.cc.
References cheprep::AbstractXMLWriter::closeTag(), HEPREP::HepRepAttribute::getAttValuesFromNode(), HEPREP::HepRepPoint::getX(), HEPREP::HepRepPoint::getY(), HEPREP::HepRepPoint::getZ(), cheprep::AbstractXMLWriter::openTag(), cheprep::AbstractXMLWriter::printTag(), cheprep::AbstractXMLWriter::setAttribute(), and write().
|
virtual |
Writes a HepRepAttribute.
attribute | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 229 of file XMLHepRepWriter.cc.
References HEPREP::HepRepAttribute::getAttValueFromNode(), HEPREP::HepRepAttribute::getAttValuesFromNode(), and write().
|
virtual |
Writes a HepRepDefinition.
definition | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 242 of file XMLHepRepWriter.cc.
References HEPREP::HepRepDefinition::getAttDefsFromNode(), and write().
|
virtual |
Writes a HepRepAttValue.
attValue | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 250 of file XMLHepRepWriter.cc.
References HEPREP::HepRepAttValue::getAsString(), HEPREP::HepRepAttValue::getBoolean(), HEPREP::HepRepAttValue::getColor(), HEPREP::HepRepAttValue::getDouble(), HEPREP::HepRepAttValue::getInteger(), HEPREP::HepRepAttValue::getLong(), HEPREP::HepRepAttValue::getName(), HEPREP::HepRepAttValue::getString(), HEPREP::HepRepAttValue::getType(), cheprep::AbstractXMLWriter::printTag(), cheprep::AbstractXMLWriter::setAttribute(), and HEPREP::HepRepAttValue::showLabel().
|
virtual |
Writes a HepRepAttDef.
attDef | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 279 of file XMLHepRepWriter.cc.
References HEPREP::HepRepAttDef::getCategory(), HEPREP::HepRepAttDef::getDescription(), HEPREP::HepRepAttDef::getExtra(), HEPREP::HepRepAttDef::getName(), cheprep::AbstractXMLWriter::printTag(), and cheprep::AbstractXMLWriter::setAttribute().