32 #define G4UIcommand_h 1
115 void G4UIcommandCommonConstructorCode (
const char * theCommandPath);
120 std::vector<G4UIparameter*> parameter;
121 std::vector<G4String> commandGuidance;
122 std::vector<G4ApplicationState> availabelStateList;
126 { rangeString = rs; }
134 {
return rangeString; };
136 {
return commandGuidance.size(); }
138 {
return commandGuidance[i]; }
140 {
return commandPath; }
142 {
return commandName; }
144 {
return parameter.size(); }
146 {
return parameter[i]; }
148 {
return &availabelStateList; }
150 {
return messenger; }
154 parameter.push_back( newParameter );
155 newVal.resize( parameter.size() );
163 commandGuidance.push_back(
G4String( aGuidance ) );
172 if(commandGuidance.size() == 0)
173 {
return G4String(
"...Title not available..."); }
175 {
return commandGuidance[0]; }
202 G4int TypeCheck(
const char* t);
203 G4int RangeCheck(
const char* t);
204 G4int IsInt(
const char* str,
short maxLength);
205 G4int IsDouble(
const char* str);
206 G4int ExpectExponent(
const char* str);
209 yystype LogicalORExpression(
void );
210 yystype LogicalANDExpression(
void );
211 yystype EqualityExpression (
void );
212 yystype RelationalExpression(
void );
213 yystype AdditiveExpression(
void );
214 yystype MultiplicativeExpression(
void );
215 yystype UnaryExpression(
void );
216 yystype PrimaryExpression(
void );
223 unsigned IndexOf(
const char* );
224 unsigned IsParameter(
const char* );
225 G4int G4UIpGetc(
void );
230 void PrintToken(
void);
236 std::vector<yystype> newVal;
void SetParameter(G4UIparameter *const newParameter)
const G4String & GetRange() const
G4bool IsWorkerThreadOnly() const
G4int operator!=(const G4UIcommand &right) const
void SetToBeBroadcasted(G4bool val)
static G4String ConvertToString(G4bool boolVal)
const G4String GetTitle() const
const G4String & GetGuidanceLine(G4int i) const
static G4ThreeVector ConvertTo3Vector(const char *st)
static G4double ConvertToDimensionedDouble(const char *st)
G4bool ToBeBroadcasted() const
G4int CheckNewValue(const char *newValue)
static G4String UnitsList(const char *unitCategory)
static G4bool ConvertToBool(const char *st)
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
G4UIparameter * GetParameter(G4int i) const
static G4double ConvertToDouble(const char *st)
const G4String & GetCommandPath() const
void AvailableForStates(G4ApplicationState s1)
G4bool ToBeFlushed() const
static G4int ConvertToInt(const char *st)
G4int operator==(const G4UIcommand &right) const
const G4String & GetCommandName() const
void SetWorkerThreadOnly(G4bool val=true)
static G4double ValueOf(const char *unitName)
std::vector< G4ApplicationState > * GetStateList()
G4UImessenger * GetMessenger() const
G4int GetGuidanceEntries() const
G4int GetParameterEntries() const
static G4String CategoryOf(const char *unitName)
virtual G4int DoIt(G4String parameterList)
G4String GetCurrentValue()
static G4ThreeVector ConvertToDimensioned3Vector(const char *st)
void SetToBeFlushed(G4bool val)