#include <G4GenericMessenger.hh>
|
| Command (G4UIcommand *cmd, const std::type_info &ti) |
|
| Command () |
|
Command & | SetStates (G4ApplicationState s0) |
|
Command & | SetStates (G4ApplicationState s0, G4ApplicationState s1) |
|
Command & | SetStates (G4ApplicationState s0, G4ApplicationState s1, G4ApplicationState s2) |
|
Command & | SetStates (G4ApplicationState s0, G4ApplicationState s1, G4ApplicationState s2, G4ApplicationState s3) |
|
Command & | SetStates (G4ApplicationState s0, G4ApplicationState s1, G4ApplicationState s2, G4ApplicationState s3, G4ApplicationState s4) |
|
Command & | SetRange (const G4String &range) |
|
Command & | SetGuidance (const G4String &s0) |
|
Command & | SetUnit (const G4String &, UnitSpec=UnitDefault) |
|
Command & | SetUnitCategory (const G4String &u) |
|
Command & | SetDefaultUnit (const G4String &u) |
|
Command & | SetParameterName (const G4String &, G4bool, G4bool=false) |
|
Command & | SetDefaultValue (const G4String &) |
|
Command & | SetCandidates (const G4String &) |
|
Command & | SetToBeBroadcasted (G4bool s0) |
|
Command & | SetToBeFlushed (G4bool s0) |
|
Command & | SetWorkerThreadOnly (G4bool s0) |
|
Definition at line 59 of file G4GenericMessenger.hh.
◆ UnitSpec
◆ Command() [1/2]
G4GenericMessenger::Command::Command |
( |
G4UIcommand * |
cmd, |
|
|
const std::type_info & |
ti |
|
) |
| |
|
inline |
◆ Command() [2/2]
G4GenericMessenger::Command::Command |
( |
| ) |
|
|
inline |
◆ SetCandidates()
Definition at line 247 of file G4GenericMessenger.cc.
void SetParameterCandidates(const char *theString)
G4UIparameter * GetParameter(G4int i) const
◆ SetDefaultUnit()
◆ SetDefaultValue()
Definition at line 253 of file G4GenericMessenger.cc.
void SetDefaultValue(const char *theDefaultValue)
G4UIparameter * GetParameter(G4int i) const
◆ SetGuidance()
◆ SetParameterName()
Definition at line 239 of file G4GenericMessenger.cc.
void SetOmittable(G4bool om)
G4UIparameter * GetParameter(G4int i) const
void SetParameterName(const char *theName)
void SetCurrentAsDefault(G4bool val)
◆ SetRange()
◆ SetStates() [1/5]
◆ SetStates() [2/5]
◆ SetStates() [3/5]
◆ SetStates() [4/5]
◆ SetStates() [5/5]
◆ SetToBeBroadcasted()
Command& G4GenericMessenger::Command::SetToBeBroadcasted |
( |
G4bool |
s0 | ) |
|
|
inline |
◆ SetToBeFlushed()
Command& G4GenericMessenger::Command::SetToBeFlushed |
( |
G4bool |
s0 | ) |
|
|
inline |
◆ SetUnit()
Definition at line 186 of file G4GenericMessenger.cc.
190 #ifdef G4MULTITHREADED 193 ed<<
"G4GenericMessenger::Command::SetUnit() is thread-unsafe and should not be used\n" 194 <<
"in multi-threaded mode. For your command <"<<cmdpath<<
">, use\n" 195 <<
" DeclarePropertyWithUnit(const G4String& name, const G4String& defaultUnit,\n" 196 <<
" const G4AnyType& variable, const G4String& doc)\n" 198 <<
" DeclareMethodWithUnit(const G4String& name, const G4String& defaultUnit,\n" 199 <<
" const G4AnyType& variable, const G4String& doc)\n" 200 <<
"to define a command with a unit <"<<unit<<
">.";
201 if(spec!=
UnitDefault) { ed<<
"\nPlease use a default unit instead of unit category."; }
208 std::vector<G4String> guidance;
216 if (*
type ==
typeid(
float) || *
type ==
typeid(
double) ) {
230 G4cerr <<
"Only parameters of type <double> or <float> can be associated with units" <<
G4endl;
G4int GetGuidanceEntries() const
std::ostringstream G4ExceptionDescription
const std::type_info * type
void SetDefaultUnit(const char *defUnit)
void SetUnitCategory(const char *unitCategory)
const G4String & GetGuidanceLine(G4int i) const
G4bool IsOmittable() const
G4UIparameter * GetParameter(G4int i) const
void SetUnitCategory(const char *unitCategory)
const G4String & GetRange() const
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
G4String GetParameterName() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void SetDefaultUnit(const char *defUnit)
G4UImessenger * GetMessenger() const
const G4String & GetCommandPath() const
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4GLOB_DLL std::ostream G4cerr
◆ SetUnitCategory()
Command& G4GenericMessenger::Command::SetUnitCategory |
( |
const G4String & |
u | ) |
|
|
inline |
◆ SetWorkerThreadOnly()
Command& G4GenericMessenger::Command::SetWorkerThreadOnly |
( |
G4bool |
s0 | ) |
|
|
inline |
◆ command
◆ type
const std::type_info* G4GenericMessenger::Command::type |
The documentation for this struct was generated from the following files: