30 #ifndef G4GenericMessenger_h
31 #define G4GenericMessenger_h 1
82 const std::type_info*
type;
107 std::map<G4String, Property> properties;
108 std::map<G4String, Method> methods;
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)
Command & SetWorkerThreadOnly(G4bool s0)
This class is generic messenger.
const std::type_info * type
Command & SetDefaultUnit(const G4String &u)
Command & DeclareProperty(const G4String &name, const G4AnyType &variable, const G4String &doc="")
Declare Methods.
void SetToBeBroadcasted(G4bool val)
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 & SetToBeBroadcasted(G4bool s0)
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 & SetGuidance(const G4String &s0)
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)
void AvailableForStates(G4ApplicationState s1)
Command & SetStates(G4ApplicationState s0)
void SetGuidance(const G4String &s)
Command & SetRange(const G4String &range)
void SetWorkerThreadOnly(G4bool val=true)
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 & SetToBeFlushed(G4bool s0)
Command & DeclarePropertyWithUnit(const G4String &name, const G4String &defaultUnit, const G4AnyType &variable, const G4String &doc="")
void SetToBeFlushed(G4bool val)
Property(const G4AnyType &var, G4UIcommand *cmd)
Command & SetUnit(const G4String &, UnitSpec=UnitDefault)