Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
HEPREP::HepRepDefinition Class Referenceabstract

#include <HepRepDefinition.h>

Inheritance diagram for HEPREP::HepRepDefinition:
HEPREP::HepRepAttribute cheprep::DefaultHepRepDefinition HEPREP::HepRepType cheprep::DefaultHepRepType cheprep::DefaultHepRepType

Public Member Functions

virtual ~HepRepDefinition ()
 Destructor. More...
 
virtual void addAttDef (std::string name, std::string desc, std::string category, std::string extra)=0
 
virtual void addAttDef (HepRepAttDef *attDef)=0
 
virtual HepRepAttDefgetAttDef (std::string name)=0
 
virtual std::set< HepRepAttDef * > getAttDefsFromNode ()=0
 
virtual HepRepAttDefgetAttDefFromNode (std::string lowerCaseName)=0
 
- Public Member Functions inherited from HEPREP::HepRepAttribute
virtual ~HepRepAttribute ()
 Destructor. More...
 
virtual void addAttValue (HepRepAttValue *attValue)=0
 
virtual void addAttValue (std::string key, char *value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, std::string value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, int64 value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, int value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, double value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, bool value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, std::vector< double > value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, double red, double green, double blue, double alpha=1.0, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual HepRepAttValueremoveAttValue (std::string key)=0
 
virtual HepRepAttValuegetAttValue (std::string name)=0
 
virtual std::set
< HepRepAttValue * > 
getAttValuesFromNode ()=0
 
virtual HepRepAttValuegetAttValueFromNode (std::string lowerCaseName)=0
 

Detailed Description

HepRepDefinition interface.

Author
Mark Donszelmann

Definition at line 27 of file HepRepDefinition.h.

Constructor & Destructor Documentation

virtual HEPREP::HepRepDefinition::~HepRepDefinition ( )
inlinevirtual

Destructor.

Definition at line 31 of file HepRepDefinition.h.

31 { /* nop */; }

Member Function Documentation

virtual void HEPREP::HepRepDefinition::addAttDef ( std::string  name,
std::string  desc,
std::string  category,
std::string  extra 
)
pure virtual

Adds an attdef.

Parameters
namename of the definition.
descdescription of the definition.
categorycategory of the definition.
extraextra info of the definition.

Implemented in cheprep::DefaultHepRepDefinition.

virtual void HEPREP::HepRepDefinition::addAttDef ( HepRepAttDef attDef)
pure virtual

Adds an attdef.

Parameters
attDefto be added.

Implemented in cheprep::DefaultHepRepDefinition.

virtual HepRepAttDef* HEPREP::HepRepDefinition::getAttDef ( std::string  name)
pure virtual

Return a named attribute definition searched on this node and any parent nodes.

Parameters
nameof attribute definition.
Returns
attribute definition.

Implemented in cheprep::DefaultHepRepType, and cheprep::DefaultHepRepDefinition.

virtual HepRepAttDef* HEPREP::HepRepDefinition::getAttDefFromNode ( std::string  lowerCaseName)
pure virtual

Returns a named attribute definition defined on this node.

Parameters
lowerCaseNamename of the attribute in lower case.
Returns
attribute definition.

Implemented in cheprep::DefaultHepRepDefinition.

Referenced by cheprep::DefaultHepRepType::getAttDef().

virtual std::set<HepRepAttDef *> HEPREP::HepRepDefinition::getAttDefsFromNode ( )
pure virtual

Returns a collection of all attribute definitions defined on this node.

Returns
collection of attributes definitions.

Implemented in cheprep::DefaultHepRepDefinition.

Referenced by cheprep::XMLHepRepWriter::write().


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