Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
HEPREP::HepRepDefinition Class Referenceabstract

#include <HepRepDefinition.h>

+ Inheritance diagram for HEPREP::HepRepDefinition:

Public Member Functions

virtual ~HepRepDefinition ()
 Destructor.
 
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.
 
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

◆ ~HepRepDefinition()

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

Destructor.

Definition at line 31 of file HepRepDefinition.h.

31{ /* nop */; }

Member Function Documentation

◆ addAttDef() [1/2]

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

Adds an attdef.

Parameters
attDefto be added.

Implemented in cheprep::DefaultHepRepDefinition.

◆ addAttDef() [2/2]

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.

◆ getAttDef()

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.

◆ getAttDefFromNode()

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

◆ getAttDefsFromNode()

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: