Geant4  10.04.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DefaultHepRepType Class Reference
Inheritance diagram for DefaultHepRepType:
DefaultHepRepDefinition HepRepType DefaultHepRepAttribute HepRepDefinition HepRepDefinition HepRepAttribute HepRepAttribute HepRepAttribute

Public Member Functions

 DefaultHepRepType (HEPREP::HepRepType *parent, std::string name)
 
 DefaultHepRepType (HEPREP::HepRepTypeTree *parent, std::string name)
 
 ~DefaultHepRepType ()
 
HEPREP::HepRepTypegetSuperType ()
 
HEPREP::HepRepAttDefgetAttDef (std::string name)
 
HEPREP::HepRepAttValuegetAttValue (std::string name)
 
HEPREP::HepRepTypecopy (HEPREP::HepRepType *parent)
 
std::string getName ()
 
std::string getFullName ()
 
std::string getDescription ()
 
void setDescription (std::string description)
 
std::string getInfoURL ()
 
void setInfoURL (std::string infoURL)
 
void addType (HEPREP::HepRepType *type)
 
std::vector< HEPREP::HepRepType * > getTypeList ()
 
- Public Member Functions inherited from DefaultHepRepDefinition
 DefaultHepRepDefinition ()
 
 ~DefaultHepRepDefinition ()
 
void addAttDef (HEPREP::HepRepAttDef *hepRepAttDef)
 
void addAttDef (std::string name, std::string desc, std::string type, std::string extra)
 
std::set< HEPREP::HepRepAttDef * > getAttDefsFromNode ()
 
HEPREP::HepRepAttDefgetAttDefFromNode (std::string lowerCaseName)
 
- Public Member Functions inherited from DefaultHepRepAttribute
 DefaultHepRepAttribute ()
 
 ~DefaultHepRepAttribute ()
 
std::set
< HEPREP::HepRepAttValue * > 
getAttValuesFromNode ()
 
void addAttValue (HEPREP::HepRepAttValue *hepRepAttValue)
 
void addAttValue (std::string key, char *value, int showLabel)
 
void addAttValue (std::string key, std::string value, int showLabel)
 
void addAttValue (std::string key, int value, int showLabel)
 
void addAttValue (std::string key, int64 value, int showLabel)
 
void addAttValue (std::string key, double value, int showLabel)
 
void addAttValue (std::string key, bool value, int showLabel)
 
void addAttValue (std::string key, std::vector< double > value, int showLabel)
 
void addAttValue (std::string key, double red, double green, double blue, double alpha, int showLabel)
 
HEPREP::HepRepAttValuegetAttValueFromNode (std::string lowerCaseName)
 
HEPREP::HepRepAttValueremoveAttValue (std::string key)
 
- Public Member Functions inherited from HepRepAttribute
virtual ~HepRepAttribute ()
 Destructor. More...
 
- Public Member Functions inherited from HepRepDefinition
virtual ~HepRepDefinition ()
 Destructor. More...
 
- Public Member Functions inherited from HepRepType
virtual ~HepRepType ()
 Destructor. More...
 

Private Attributes

HEPREP::HepRepTypeparent
 
std::vector< HEPREP::HepRepType * > types
 
std::string name
 
std::string description
 
std::string infoURL
 

Constructor & Destructor Documentation

DefaultHepRepType ( HEPREP::HepRepType parent,
std::string  name 
)
DefaultHepRepType ( HEPREP::HepRepTypeTree parent,
std::string  name 
)

Member Function Documentation

HEPREP::HepRepType* getSuperType ( )
virtual

Returns the parent of this type.

Returns
parent of type, or null if top-level.

Implements HepRepType.

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

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

Parameters
nameof attribute definition.
Returns
attribute definition.

Implements DefaultHepRepDefinition.

HEPREP::HepRepAttValue* getAttValue ( std::string  name)
virtual

Returns the attValue specified by name. This attValue is normally searched on the node itself and then on its type, moving up the typetree.

Parameters
nameof attribute value.
Returns
attribute value.

Implements DefaultHepRepDefinition.

HEPREP::HepRepType* copy ( HEPREP::HepRepType parent)
virtual

Returns a deep copy of this type.

Parameters
parentto which this copy is added.
Returns
copy of this type.

Implements HepRepType.

std::string getName ( )
virtual

Returns the name of this type. This is the full name if one uses flat-types, and the node name if one uses hierarchical typenames. It is the name supplied at construction of the type.

Returns
name of type.
See also
getFullName()

Implements HepRepType.

std::string getFullName ( )
virtual

Returns the full name of this type. The full name is constructed from the root of the typeTree (without the typeTreeName) by concatenating all the node names separated by slashes "/". For example: Geometry/InnerDetector/Sector24/Wire20

Returns
full name of type.
See also
getName()

Implements HepRepType.

std::string getDescription ( )
virtual

Returns the description of this type.

Returns
description of type.

Implements HepRepType.

void setDescription ( std::string  description)
virtual

Sets the description of this type.

Parameters
infoURL

Implements HepRepType.

std::string getInfoURL ( )
virtual

Returns the information URL of this type.

Returns
info URL of type.

Implements HepRepType.

void setInfoURL ( std::string  infoURL)
virtual

Sets the information URL of this type.

Parameters
infoURL

Implements HepRepType.

void addType ( HEPREP::HepRepType type)
virtual

Adds a sub-type to this type.

Parameters
typesub-type to be added.

Implements HepRepType.

std::vector<HEPREP::HepRepType*> getTypeList ( )
virtual

Returns a collection of all the sub-types of this type.

Returns
collection of HepRepTypes.

Implements HepRepType.

Member Data Documentation

HEPREP::HepRepType* parent
private
std::vector<HEPREP::HepRepType*> types
private
std::string name
private
std::string description
private
std::string infoURL
private