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