39#define G4UIcommand_hh 1
120 inline void SetRange(
const char* rs) { rangeString = rs; }
130 return commandGuidance.size();
134 return commandGuidance[i];
142 return &availabelStateList;
152 parameter.push_back(newParameter);
153 newVal.resize(parameter.size());
162 commandGuidance.push_back(
G4String(aGuidance));
167 return (commandGuidance.size() == 0)
168 ?
G4String(
"...Title not available...")
169 : commandGuidance[0];
214 void G4UIcommandCommonConstructorCode(
const char* theCommandPath);
216 G4int TypeCheck(
const char* t);
217 G4int RangeCheck(
const char* t);
218 G4int IsInt(
const char* str,
short maxLength);
219 G4int IsDouble(
const char* str);
220 G4int ExpectExponent(
const char* str);
223 yystype LogicalORExpression(
void);
224 yystype LogicalANDExpression(
void);
225 yystype EqualityExpression(
void);
226 yystype RelationalExpression(
void);
227 yystype AdditiveExpression(
void);
228 yystype MultiplicativeExpression(
void);
230 yystype PrimaryExpression(
void);
238 unsigned IndexOf(
const char*);
239 unsigned IsParameter(
const char*);
240 G4int G4UIpGetc(
void);
253 std::vector<G4UIparameter*> parameter;
254 std::vector<G4String> commandGuidance;
255 std::vector<G4ApplicationState> availabelStateList;
261 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)
G4bool ToBeBroadcasted() const
static G4long ConvertToLongInt(const char *st)
virtual G4int DoIt(G4String parameterList)
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)
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 CommandFailed(G4ExceptionDescription &ed)
G4String GetCurrentValue()