ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <geant4/tree/geant4-10.6-release/source/visualization/HepRep/include/cheprep/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. | |
Private Attributes | |
std::ostream * | out |
bool | compress |
std::string | nameSpace |
AbstractXMLWriter * | xml |
cheprep::ZipOutputStream * | zip |
cheprep::GZIPOutputStream * | gz |
std::map< std::string, std::string > | properties |
Definition at line 37 of file XMLHepRepWriter.h.
View newest version in sPHENIX GitHub at line 37 of file XMLHepRepWriter.h
cheprep::XMLHepRepWriter::XMLHepRepWriter | ( | std::ostream * | out, |
bool | randomAccess, | ||
bool | compress | ||
) |
Definition at line 20 of file XMLHepRepWriter.cc.
View newest version in sPHENIX GitHub at line 20 of file XMLHepRepWriter.cc
cheprep::XMLHepRepWriter::~XMLHepRepWriter | ( | ) |
Definition at line 49 of file XMLHepRepWriter.cc.
View newest version in sPHENIX GitHub at line 49 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 54 of file XMLHepRepWriter.cc.
View newest version in sPHENIX GitHub at line 54 of file XMLHepRepWriter.cc
References properties.
|
virtual |
Closes the writer and its underlying stream.
Implements HEPREP::HepRepWriter.
Definition at line 59 of file XMLHepRepWriter.cc.
View newest version in sPHENIX GitHub at line 59 of file XMLHepRepWriter.cc
References cheprep::GZIPOutputStream::close(), cheprep::ZipOutputStream::close(), cheprep::ZipOutputStream::closeEntry(), gz, properties, cheprep::ZipOutputStream::putNextEntry(), and zip.
|
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 78 of file XMLHepRepWriter.cc.
View newest version in sPHENIX GitHub at line 78 of file XMLHepRepWriter.cc
References cheprep::AbstractXMLWriter::closeDoc(), cheprep::ZipOutputStream::closeEntry(), cheprep::AbstractXMLWriter::closeTag(), compress, HEPREP::HepRep::getInstanceTreeList(), HEPREP::HepRep::getLayerOrder(), HEPREP::HepRep::getTypeTreeList(), NAMESPACE, nameSpace, cheprep::AbstractXMLWriter::openDoc(), cheprep::AbstractXMLWriter::openTag(), out, cheprep::ZipOutputStream::putNextEntry(), cheprep::AbstractXMLWriter::setAttribute(), xml, and zip.
Referenced by write().
|
virtual |
Writes the layerOrder.
layerOrder | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 116 of file XMLHepRepWriter.cc.
View newest version in sPHENIX GitHub at line 116 of file XMLHepRepWriter.cc
References nameSpace, cheprep::AbstractXMLWriter::printTag(), cheprep::AbstractXMLWriter::setAttribute(), and xml.
|
virtual |
Writes a HepRepTypeTree.
typeTree | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 131 of file XMLHepRepWriter.cc.
View newest version in sPHENIX GitHub at line 131 of file XMLHepRepWriter.cc
References cheprep::AbstractXMLWriter::closeTag(), HEPREP::HepRepTreeID::getName(), HEPREP::HepRepTypeTree::getTypeList(), HEPREP::HepRepTreeID::getVersion(), nameSpace, cheprep::AbstractXMLWriter::openTag(), cheprep::AbstractXMLWriter::setAttribute(), write(), and xml.
|
virtual |
Writes a HepRepType.
type | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 145 of file XMLHepRepWriter.cc.
View newest version in sPHENIX GitHub at line 145 of file XMLHepRepWriter.cc
References cheprep::AbstractXMLWriter::closeTag(), HEPREP::HepRepType::getName(), HEPREP::HepRepType::getTypeList(), nameSpace, cheprep::AbstractXMLWriter::openTag(), cheprep::AbstractXMLWriter::setAttribute(), write(), and xml.
|
virtual |
Writes a HepRepTreeID.
treeID | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 159 of file XMLHepRepWriter.cc.
View newest version in sPHENIX GitHub at line 159 of file XMLHepRepWriter.cc
References HEPREP::HepRepTreeID::getName(), HEPREP::HepRepTreeID::getQualifier(), HEPREP::HepRepTreeID::getVersion(), nameSpace, cheprep::AbstractXMLWriter::printTag(), cheprep::AbstractXMLWriter::setAttribute(), and xml.
|
virtual |
Writes a HepRepAction.
action | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 167 of file XMLHepRepWriter.cc.
View newest version in sPHENIX GitHub at line 167 of file XMLHepRepWriter.cc
References HEPREP::HepRepAction::getExpression(), HEPREP::HepRepAction::getName(), nameSpace, cheprep::AbstractXMLWriter::printTag(), cheprep::AbstractXMLWriter::setAttribute(), and xml.
|
virtual |
Writes a HepRepInstanceTree.
instanceTree | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 174 of file XMLHepRepWriter.cc.
View newest version in sPHENIX GitHub at line 174 of file XMLHepRepWriter.cc
References cheprep::AbstractXMLWriter::closeTag(), HEPREP::HepRepInstanceTree::getInstances(), HEPREP::HepRepInstanceTree::getInstanceTreeList(), HEPREP::HepRepTreeID::getName(), HEPREP::HepRepInstanceTree::getTypeTree(), HEPREP::HepRepTreeID::getVersion(), nameSpace, cheprep::AbstractXMLWriter::openTag(), cheprep::AbstractXMLWriter::setAttribute(), write(), and xml.
|
virtual |
Writes a HepRepInstance.
instance | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 195 of file XMLHepRepWriter.cc.
View newest version in sPHENIX GitHub at line 195 of file XMLHepRepWriter.cc
References cheprep::AbstractXMLWriter::closeTag(), HEPREP::HepRepType::getFullName(), HEPREP::HepRepInstance::getInstances(), HEPREP::HepRepInstance::getPoints(), HEPREP::HepRepInstance::getType(), nameSpace, cheprep::AbstractXMLWriter::openTag(), cheprep::AbstractXMLWriter::setAttribute(), write(), and xml.
|
virtual |
Writes a HepRepPoint.
point | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 214 of file XMLHepRepWriter.cc.
View newest version in sPHENIX GitHub at line 214 of file XMLHepRepWriter.cc
References cheprep::AbstractXMLWriter::closeTag(), HEPREP::HepRepAttribute::getAttValuesFromNode(), HEPREP::HepRepPoint::getX(), HEPREP::HepRepPoint::getY(), HEPREP::HepRepPoint::getZ(), nameSpace, cheprep::AbstractXMLWriter::openTag(), cheprep::AbstractXMLWriter::printTag(), cheprep::AbstractXMLWriter::setAttribute(), write(), and xml.
|
virtual |
Writes a HepRepAttribute.
attribute | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 228 of file XMLHepRepWriter.cc.
View newest version in sPHENIX GitHub at line 228 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 241 of file XMLHepRepWriter.cc.
View newest version in sPHENIX GitHub at line 241 of file XMLHepRepWriter.cc
References HEPREP::HepRepDefinition::getAttDefsFromNode(), and write().
|
virtual |
Writes a HepRepAttValue.
attValue | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 249 of file XMLHepRepWriter.cc.
View newest version in sPHENIX GitHub at line 249 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(), nameSpace, cheprep::AbstractXMLWriter::printTag(), cheprep::AbstractXMLWriter::setAttribute(), HEPREP::HepRepAttValue::showLabel(), and xml.
|
virtual |
Writes a HepRepAttDef.
attDef | to be written. |
Implements HEPREP::HepRepWriter.
Definition at line 278 of file XMLHepRepWriter.cc.
View newest version in sPHENIX GitHub at line 278 of file XMLHepRepWriter.cc
References HEPREP::HepRepAttDef::getCategory(), HEPREP::HepRepAttDef::getDescription(), HEPREP::HepRepAttDef::getExtra(), HEPREP::HepRepAttDef::getName(), nameSpace, cheprep::AbstractXMLWriter::printTag(), cheprep::AbstractXMLWriter::setAttribute(), and xml.
|
private |
Definition at line 41 of file XMLHepRepWriter.h.
View newest version in sPHENIX GitHub at line 41 of file XMLHepRepWriter.h
Referenced by write().
|
private |
Definition at line 45 of file XMLHepRepWriter.h.
View newest version in sPHENIX GitHub at line 45 of file XMLHepRepWriter.h
Referenced by close(), XMLHepRepWriter(), and ~XMLHepRepWriter().
|
private |
Definition at line 42 of file XMLHepRepWriter.h.
View newest version in sPHENIX GitHub at line 42 of file XMLHepRepWriter.h
Referenced by write(), and XMLHepRepWriter().
|
private |
Definition at line 40 of file XMLHepRepWriter.h.
View newest version in sPHENIX GitHub at line 40 of file XMLHepRepWriter.h
Referenced by write(), and XMLHepRepWriter().
|
private |
Definition at line 46 of file XMLHepRepWriter.h.
View newest version in sPHENIX GitHub at line 46 of file XMLHepRepWriter.h
Referenced by addProperty(), and close().
|
private |
Definition at line 43 of file XMLHepRepWriter.h.
View newest version in sPHENIX GitHub at line 43 of file XMLHepRepWriter.h
Referenced by write().
|
private |
Definition at line 44 of file XMLHepRepWriter.h.
View newest version in sPHENIX GitHub at line 44 of file XMLHepRepWriter.h
Referenced by close(), write(), XMLHepRepWriter(), and ~XMLHepRepWriter().