32#define G4UIcommand_h 1
110 void G4UIcommandCommonConstructorCode (
const char * theCommandPath);
115 std::vector<G4UIparameter*> parameter;
116 std::vector<G4String> commandGuidance;
117 std::vector<G4ApplicationState> availabelStateList;
121 { rangeString = rs; }
129 {
return rangeString; };
131 {
return commandGuidance.size(); }
133 {
return commandGuidance[i]; }
135 {
return commandPath; }
137 {
return commandName; }
139 {
return parameter.size(); }
141 {
return parameter[i]; }
143 {
return &availabelStateList; }
145 {
return messenger; }
149 parameter.push_back( newParameter );
150 newVal.resize( parameter.size() );
158 commandGuidance.push_back(
G4String( aGuidance ) );
167 if(commandGuidance.size() == 0)
168 {
return G4String(
"...Title not available..."); }
170 {
return commandGuidance[0]; }
178 G4int TypeCheck(
const char* t);
179 G4int RangeCheck(
const char* t);
180 G4int IsInt(
const char* str,
short maxLength);
181 G4int IsDouble(
const char* str);
182 G4int ExpectExponent(
const char* str);
185 yystype LogicalORExpression(
void );
186 yystype LogicalANDExpression(
void );
187 yystype EqualityExpression (
void );
188 yystype RelationalExpression(
void );
189 yystype AdditiveExpression(
void );
190 yystype MultiplicativeExpression(
void );
191 yystype UnaryExpression(
void );
192 yystype PrimaryExpression(
void );
199 unsigned IndexOf(
const char* );
200 unsigned IsParameter(
const char* );
201 G4int G4UIpGetc(
void );
206 void PrintToken(
void);
212 std::vector<yystype> newVal;
G4UImessenger * GetMessenger() const
const G4String & GetGuidanceLine(G4int i) const
static G4ThreeVector ConvertTo3Vector(const char *st)
G4int operator==(const G4UIcommand &right) const
G4UIparameter * GetParameter(G4int i) const
static G4String CategoryOf(const char *unitName)
static G4double ValueOf(const char *unitName)
G4int GetGuidanceEntries() const
virtual G4int DoIt(G4String parameterList)
const G4String GetTitle() const
static G4String ConvertToString(G4bool boolVal)
const G4String & GetCommandPath() const
void SetParameter(G4UIparameter *const newParameter)
void SetGuidance(const char *aGuidance)
G4int GetParameterEntries() const
G4int operator!=(const G4UIcommand &right) const
G4int CheckNewValue(const char *newValue)
static G4int ConvertToInt(const char *st)
static G4String UnitsList(const char *unitCategory)
static G4bool ConvertToBool(const char *st)
std::vector< G4ApplicationState > * GetStateList()
void SetRange(const char *rs)
static G4double ConvertToDouble(const char *st)
static G4double ConvertToDimensionedDouble(const char *st)
void AvailableForStates(G4ApplicationState s1)
const G4String & GetCommandName() const
const G4String & GetRange() const
static G4ThreeVector ConvertToDimensioned3Vector(const char *st)
G4String GetCurrentValue()