30 #ifndef G4GenericMessenger_h
31 #define G4GenericMmessenger_h 1
79 const std::type_info*
type;
Command & SetStates(G4ApplicationState s0, G4ApplicationState s1)
virtual G4String GetCurrentValue(G4UIcommand *command)
The concrete, but generic implementation of this method.
Command & SetStates(G4ApplicationState s0, G4ApplicationState s1, G4ApplicationState s2, G4ApplicationState s3)
Command(G4UIcommand *cmd, const std::type_info &ti)
This class is generic messenger.
const std::type_info * type
std::map< G4String, Method > methods
Command & SetDefaultUnit(const G4String &u)
Command & DeclareProperty(const G4String &name, const G4AnyType &variable, const G4String &doc="")
Declare Methods.
This class represents any object method.
Command & DeclareMethod(const G4String &name, const G4AnyMethod &fun, const G4String &doc="")
Command & DeclareMethodWithUnit(const G4String &name, const G4String &defaultUnit, const G4AnyMethod &fun, const G4String &doc="")
Command & SetUnitCategory(const G4String &u)
virtual void SetNewValue(G4UIcommand *command, G4String newValue)
The concrete, generic implementation of this method converts the string "newValue" to action...
Command & SetDefaultValue(const G4String &)
static int variable(const string &name, double &result, const dic_type &dictionary)
Command & SetStates(G4ApplicationState s0, G4ApplicationState s1, G4ApplicationState s2, G4ApplicationState s3, G4ApplicationState s4)
G4GenericMessenger(void *obj, const G4String &dir="", const G4String &doc="")
Contructor.
void SetRange(const char *rs)
virtual ~G4GenericMessenger()
Destructor.
void SetGuidance(const char *aGuidance)
std::map< G4String, Property > properties
void AvailableForStates(G4ApplicationState s1)
Command & SetStates(G4ApplicationState s0)
void SetGuidance(const G4String &s)
Command & SetRange(const G4String &range)
This class represents any data type.
Command & SetCandidates(const G4String &)
Method(const G4AnyMethod &fun, void *obj, G4UIcommand *cmd)
Command & SetStates(G4ApplicationState s0, G4ApplicationState s1, G4ApplicationState s2)
void SetDirectory(const G4String &dir)
Command & SetParameterName(const G4String &, G4bool, G4bool=false)
Command & DeclarePropertyWithUnit(const G4String &name, const G4String &defaultUnit, const G4AnyType &variable, const G4String &doc="")
Command & SetGuidance(const G4String &s)
Property(const G4AnyType &var, G4UIcommand *cmd)
Command & SetUnit(const G4String &, UnitSpec=UnitDefault)