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

#include <HepRepAttributeListener.h>

Public Member Functions

virtual ~HepRepAttributeListener ()
 Destructor.
 
virtual void setAttribute (HepRepInstance *instance, std::string key, std::string value, std::string lowerCaseValue, int showLabel)=0
 
virtual void setAttribute (HepRepInstance *instance, std::string key, std::vector< double > value, int showLabel)=0
 
virtual void setAttribute (HepRepInstance *instance, std::string key, long value, int showLabel)=0
 
virtual void setAttribute (HepRepInstance *instance, std::string key, int value, int showLabel)=0
 
virtual void setAttribute (HepRepInstance *instance, std::string key, double value, int showLabel)=0
 
virtual void setAttribute (HepRepInstance *instance, std::string key, bool value, int showLabel)=0
 
virtual void removeAttribute (HepRepInstance *instance, std::string key)=0
 

Detailed Description

HepRepAttributeListener interface. The implementor is called back for changes of attributes while using the HepRepIterator to iterate over all the HepRepInstances.

All names are lowercased.

Author
Mark Donszelmann

Definition at line 27 of file HepRepAttributeListener.h.

Constructor & Destructor Documentation

◆ ~HepRepAttributeListener()

virtual HEPREP::HepRepAttributeListener::~HepRepAttributeListener ( )
inlinevirtual

Destructor.

Definition at line 31 of file HepRepAttributeListener.h.

31{ /* nop */; }

Member Function Documentation

◆ removeAttribute()

virtual void HEPREP::HepRepAttributeListener::removeAttribute ( HepRepInstance instance,
std::string  key 
)
pure virtual

Called if attribute key is removed from the attribute set.

Parameters
instanceinstance for which this attribute is set.
keyname of the removed attribute.

◆ setAttribute() [1/6]

virtual void HEPREP::HepRepAttributeListener::setAttribute ( HepRepInstance instance,
std::string  key,
bool  value,
int  showLabel 
)
pure virtual

Called if attribute key changes its value.

Parameters
instanceinstance for which this attribute is set.
keyname of the changed attribute.
valuevalue of the changed attribute.
showLabelvalue of showLabel.

◆ setAttribute() [2/6]

virtual void HEPREP::HepRepAttributeListener::setAttribute ( HepRepInstance instance,
std::string  key,
double  value,
int  showLabel 
)
pure virtual

Called if attribute key changes its value.

Parameters
instanceinstance for which this attribute is set.
keyname of the changed attribute.
valuevalue of the changed attribute.
showLabelvalue of showLabel.

◆ setAttribute() [3/6]

virtual void HEPREP::HepRepAttributeListener::setAttribute ( HepRepInstance instance,
std::string  key,
int  value,
int  showLabel 
)
pure virtual

Called if attribute key changes its value.

Parameters
instanceinstance for which this attribute is set.
keyname of the changed attribute.
valuevalue of the changed attribute.
showLabelvalue of showLabel.

◆ setAttribute() [4/6]

virtual void HEPREP::HepRepAttributeListener::setAttribute ( HepRepInstance instance,
std::string  key,
long  value,
int  showLabel 
)
pure virtual

Called if attribute key changes its value.

Parameters
instanceinstance for which this attribute is set.
keyname of the changed attribute.
valuevalue of the changed attribute.
showLabelvalue of showLabel.

◆ setAttribute() [5/6]

virtual void HEPREP::HepRepAttributeListener::setAttribute ( HepRepInstance instance,
std::string  key,
std::string  value,
std::string  lowerCaseValue,
int  showLabel 
)
pure virtual

Called if attribute key changes its value.

Parameters
instanceinstance for which this attribute is set.
keyname of the changed attribute.
valuevalue of the changed attribute.
lowerCaseValuelower case value of the changed attribute.
showLabelvalue of showLabel.

◆ setAttribute() [6/6]

virtual void HEPREP::HepRepAttributeListener::setAttribute ( HepRepInstance instance,
std::string  key,
std::vector< double >  value,
int  showLabel 
)
pure virtual

Called if attribute key changes its value.

Parameters
instanceinstance for which this attribute is set.
keyname of the changed attribute.
valuevalue of the changed attribute.
showLabelvalue of showLabel.

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