39#define G4UIcommand_hh 1
99 const char* unitName);
121 inline void SetRange(
const char* rs) { rangeString = rs; }
131 return commandGuidance.size();
135 return commandGuidance[i];
143 return &availabelStateList;
153 parameter.push_back(newParameter);
154 newVal.resize(parameter.size());
163 commandGuidance.emplace_back(aGuidance);
168 return (commandGuidance.empty()) ?
G4String(
"...Title not available...")
169 : commandGuidance[0];
205 {
return commandType; }
230 void G4UIcommandCommonConstructorCode(
const char* theCommandPath);
232 G4int TypeCheck(
const char* t);
233 G4int RangeCheck(
const char* t);
234 G4int IsInt(
const char* str,
short maxLength);
235 G4int IsDouble(
const char* str);
236 G4int ExpectExponent(
const char* str);
240 yystype LogicalANDExpression();
242 yystype RelationalExpression();
244 yystype MultiplicativeExpression();
254 unsigned IndexOf(
const char*);
255 unsigned IsParameter(
const char*);
271 std::vector<G4UIparameter*> parameter;
272 std::vector<G4String> commandGuidance;
273 std::vector<G4ApplicationState> availabelStateList;
279 std::vector<yystype> newVal;
std::ostringstream G4ExceptionDescription
void SetToBeBroadcasted(G4bool val)
G4bool IsWorkerThreadOnly() const
G4UImessenger * GetMessenger() const
std::size_t GetParameterEntries() const
const G4String & GetGuidanceLine(G4int i) const
static G4ThreeVector ConvertTo3Vector(const char *st)
G4UIparameter * GetParameter(G4int i) const
static G4String CategoryOf(const char *unitName)
static G4double ValueOf(const char *unitName)
void SetCommandType(CommandType)
G4bool ToBeBroadcasted() const
static G4long ConvertToLongInt(const char *st)
virtual G4int DoIt(G4String parameterList)
G4UItokenNum::yystype yystype
const G4String GetTitle() const
G4bool operator==(const G4UIcommand &right) const
static G4String ConvertToString(G4bool boolVal)
const G4String & GetCommandPath() const
void SetParameter(G4UIparameter *const newParameter)
void SetGuidance(const char *aGuidance)
CommandType GetCommandType() const
G4int CheckNewValue(const char *newValue)
void CommandFailed(G4int errCode, G4ExceptionDescription &ed)
std::size_t GetGuidanceEntries() const
static G4int ConvertToInt(const char *st)
static G4String UnitsList(const char *unitCategory)
void SetToBeFlushed(G4bool val)
static G4bool ConvertToBool(const char *st)
std::vector< G4ApplicationState > * GetStateList()
void SetRange(const char *rs)
void SetWorkerThreadOnly(G4bool val=true)
static G4double ConvertToDouble(const char *st)
static G4double ConvertToDimensionedDouble(const char *st)
const G4String & GetFailureDescription()
G4bool ToBeFlushed() const
void AvailableForStates(G4ApplicationState s1)
const G4String & GetCommandName() const
G4bool operator!=(const G4UIcommand &right) const
const G4String & GetRange() const
G4String failureDescription
static G4ThreeVector ConvertToDimensioned3Vector(const char *st)
void SetDefaultSortFlag(G4bool val)
void CommandFailed(G4ExceptionDescription &ed)
G4String GetCurrentValue()
yystype { tokenNum type{ tokenNum::NONE } yystype