Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
G4UIcommand Class Reference
Inheritance diagram for G4UIcommand:
G4UIcmdWith3Vector G4UIcmdWith3VectorAndUnit G4UIcmdWithABool G4UIcmdWithADouble G4UIcmdWithADoubleAndUnit G4UIcmdWithAnInteger G4UIcmdWithAString G4UIcmdWithNucleusLimits G4UIcmdWithoutParameter G4UIdirectory

Public Member Functions

 G4UIcommand ()
 
 G4UIcommand (const char *theCommandPath, G4UImessenger *theMessenger, G4bool tBB=true)
 
virtual ~G4UIcommand ()
 
G4int operator== (const G4UIcommand &right) const
 
G4int operator!= (const G4UIcommand &right) const
 
virtual G4int DoIt (G4String parameterList)
 
G4String GetCurrentValue ()
 
void AvailableForStates (G4ApplicationState s1)
 
void AvailableForStates (G4ApplicationState s1, G4ApplicationState s2)
 
void AvailableForStates (G4ApplicationState s1, G4ApplicationState s2, G4ApplicationState s3)
 
void AvailableForStates (G4ApplicationState s1, G4ApplicationState s2, G4ApplicationState s3, G4ApplicationState s4)
 
void AvailableForStates (G4ApplicationState s1, G4ApplicationState s2, G4ApplicationState s3, G4ApplicationState s4, G4ApplicationState s5)
 
G4bool IsAvailable ()
 
virtual void List ()
 
void SetRange (const char *rs)
 
const G4StringGetRange () const
 
G4int GetGuidanceEntries () const
 
const G4StringGetGuidanceLine (G4int i) const
 
const G4StringGetCommandPath () const
 
const G4StringGetCommandName () const
 
G4int GetParameterEntries () const
 
G4UIparameterGetParameter (G4int i) const
 
std::vector< G4ApplicationState > * GetStateList ()
 
G4UImessengerGetMessenger () const
 
void SetParameter (G4UIparameter *const newParameter)
 
void SetGuidance (const char *aGuidance)
 
const G4String GetTitle () const
 
void SetToBeBroadcasted (G4bool val)
 
G4bool ToBeBroadcasted () const
 
void SetToBeFlushed (G4bool val)
 
G4bool ToBeFlushed () const
 
void SetWorkerThreadOnly (G4bool val=true)
 
G4bool IsWorkerThreadOnly () const
 

Static Public Member Functions

static G4String ConvertToString (G4bool boolVal)
 
static G4String ConvertToString (G4int intValue)
 
static G4String ConvertToString (G4double doubleValue)
 
static G4String ConvertToString (G4double doubleValue, const char *unitName)
 
static G4String ConvertToString (G4ThreeVector vec)
 
static G4String ConvertToString (G4ThreeVector vec, const char *unitName)
 
static G4bool ConvertToBool (const char *st)
 
static G4int ConvertToInt (const char *st)
 
static G4double ConvertToDouble (const char *st)
 
static G4double ConvertToDimensionedDouble (const char *st)
 
static G4ThreeVector ConvertTo3Vector (const char *st)
 
static G4ThreeVector ConvertToDimensioned3Vector (const char *st)
 
static G4double ValueOf (const char *unitName)
 
static G4String CategoryOf (const char *unitName)
 
static G4String UnitsList (const char *unitCategory)
 

Protected Member Functions

G4int CheckNewValue (const char *newValue)
 

Protected Attributes

G4bool toBeBroadcasted
 
G4bool toBeFlushed
 
G4bool workerThreadOnly
 

Private Member Functions

void G4UIcommandCommonConstructorCode (const char *theCommandPath)
 
G4int TypeCheck (const char *t)
 
G4int RangeCheck (const char *t)
 
G4int IsInt (const char *str, short maxLength)
 
G4int IsDouble (const char *str)
 
G4int ExpectExponent (const char *str)
 
yystype Expression (void)
 
yystype LogicalORExpression (void)
 
yystype LogicalANDExpression (void)
 
yystype EqualityExpression (void)
 
yystype RelationalExpression (void)
 
yystype AdditiveExpression (void)
 
yystype MultiplicativeExpression (void)
 
yystype UnaryExpression (void)
 
yystype PrimaryExpression (void)
 
G4int Eval2 (yystype arg1, G4int op, yystype arg2)
 
G4int CompareInt (G4int arg1, G4int op, G4int arg2)
 
G4int CompareDouble (G4double arg1, G4int op, G4double arg2)
 
tokenNum Yylex (void)
 
unsigned IndexOf (const char *)
 
unsigned IsParameter (const char *)
 
G4int G4UIpGetc (void)
 
G4int G4UIpUngetc (G4int c)
 
G4int Backslash (G4int c)
 
G4int Follow (G4int expect, G4int ifyes, G4int ifno)
 
G4String TokenToStr (G4int token)
 
void PrintToken (void)
 

Private Attributes

G4UImessengermessenger
 
G4String commandPath
 
G4String commandName
 
G4String rangeString
 
std::vector< G4UIparameter * > parameter
 
std::vector< G4StringcommandGuidance
 
std::vector< G4ApplicationStateavailabelStateList
 
G4String rangeBuf
 
G4int bp
 
tokenNum token
 
yystype yylval
 
std::vector< yystypenewVal
 
G4int paramERR
 

Constructor & Destructor Documentation

G4UIcommand ( const char *  theCommandPath,
G4UImessenger theMessenger,
G4bool  tBB = true 
)
virtual ~G4UIcommand ( )
virtual

Member Function Documentation

G4int operator== ( const G4UIcommand right) const
G4int operator!= ( const G4UIcommand right) const
virtual G4int DoIt ( G4String  parameterList)
virtual
G4String GetCurrentValue ( )
void AvailableForStates ( G4ApplicationState  s1)
void AvailableForStates ( G4ApplicationState  s1,
G4ApplicationState  s2 
)
void AvailableForStates ( G4ApplicationState  s1,
G4ApplicationState  s2,
G4ApplicationState  s3 
)
void AvailableForStates ( G4ApplicationState  s1,
G4ApplicationState  s2,
G4ApplicationState  s3,
G4ApplicationState  s4 
)
G4bool IsAvailable ( )
virtual void List ( )
virtual
static G4String ConvertToString ( G4bool  boolVal)
static
static G4String ConvertToString ( G4int  intValue)
static
static G4String ConvertToString ( G4double  doubleValue)
static
static G4String ConvertToString ( G4double  doubleValue,
const char *  unitName 
)
static
static G4String ConvertToString ( G4ThreeVector  vec)
static
static G4String ConvertToString ( G4ThreeVector  vec,
const char *  unitName 
)
static
static G4bool ConvertToBool ( const char *  st)
static
static G4int ConvertToInt ( const char *  st)
static
static G4double ConvertToDouble ( const char *  st)
static
static G4double ConvertToDimensionedDouble ( const char *  st)
static
static G4ThreeVector ConvertTo3Vector ( const char *  st)
static
static G4ThreeVector ConvertToDimensioned3Vector ( const char *  st)
static
static G4double ValueOf ( const char *  unitName)
static
static G4String CategoryOf ( const char *  unitName)
static
static G4String UnitsList ( const char *  unitCategory)
static
void G4UIcommandCommonConstructorCode ( const char *  theCommandPath)
private
void SetRange ( const char *  rs)
const G4String& GetRange ( ) const

References rangeString.

G4int GetGuidanceEntries ( ) const

References commandGuidance.

const G4String& GetGuidanceLine ( G4int  i) const

References commandGuidance.

const G4String& GetCommandPath ( ) const

References commandPath.

const G4String& GetCommandName ( ) const

References commandName.

G4int GetParameterEntries ( ) const

References parameter.

G4UIparameter* GetParameter ( G4int  i) const

References parameter.

std::vector<G4ApplicationState>* GetStateList ( )

References availabelStateList.

G4UImessenger* GetMessenger ( ) const

References messenger.

void SetGuidance ( const char *  aGuidance)

References commandGuidance.

Referenced by G4ModelCmdActive< M >::G4ModelCmdActive(), G4ModelCmdAddInt< M >::G4ModelCmdAddInt(), G4ModelCmdAddInterval< M >::G4ModelCmdAddInterval(), G4ModelCmdAddIntervalContext< M >::G4ModelCmdAddIntervalContext(), G4ModelCmdAddString< M >::G4ModelCmdAddString(), G4ModelCmdAddValue< M >::G4ModelCmdAddValue(), G4ModelCmdAddValueContext< M >::G4ModelCmdAddValueContext(), G4ModelCmdApplyColour< M >::G4ModelCmdApplyColour(), G4ModelCmdApplyStringColour< M >::G4ModelCmdApplyStringColour(), G4ModelCmdCreateContextDir< M >::G4ModelCmdCreateContextDir(), G4ModelCmdDraw< M >::G4ModelCmdDraw(), G4ModelCmdInvert< M >::G4ModelCmdInvert(), G4ModelCmdReset< M >::G4ModelCmdReset(), G4ModelCmdSetAuxPtsFillStyle< M >::G4ModelCmdSetAuxPtsFillStyle(), G4ModelCmdSetAuxPtsSize< M >::G4ModelCmdSetAuxPtsSize(), G4ModelCmdSetAuxPtsSizeType< M >::G4ModelCmdSetAuxPtsSizeType(), G4ModelCmdSetAuxPtsType< M >::G4ModelCmdSetAuxPtsType(), G4ModelCmdSetAuxPtsVisible< M >::G4ModelCmdSetAuxPtsVisible(), G4ModelCmdSetDrawAuxPts< M >::G4ModelCmdSetDrawAuxPts(), G4ModelCmdSetDrawLine< M >::G4ModelCmdSetDrawLine(), G4ModelCmdSetDrawStepPts< M >::G4ModelCmdSetDrawStepPts(), G4ModelCmdSetLineVisible< M >::G4ModelCmdSetLineVisible(), G4ModelCmdSetStepPtsFillStyle< M >::G4ModelCmdSetStepPtsFillStyle(), G4ModelCmdSetStepPtsSize< M >::G4ModelCmdSetStepPtsSize(), G4ModelCmdSetStepPtsSizeType< M >::G4ModelCmdSetStepPtsSizeType(), G4ModelCmdSetStepPtsType< M >::G4ModelCmdSetStepPtsType(), G4ModelCmdSetStepPtsVisible< M >::G4ModelCmdSetStepPtsVisible(), G4ModelCmdSetString< M >::G4ModelCmdSetString(), G4ModelCmdSetTimeSliceInterval< M >::G4ModelCmdSetTimeSliceInterval(), G4ModelCmdVerbose< M >::G4ModelCmdVerbose(), G4VisCommandListManagerList< Manager >::G4VisCommandListManagerList(), G4VisCommandListManagerSelect< Manager >::G4VisCommandListManagerSelect(), G4VisCommandManagerMode< Manager >::G4VisCommandManagerMode(), G4VisCommandModelCreate< Factory >::G4VisCommandModelCreate(), G4GenericMessenger::Command::SetGuidance(), and G4VisCommandModelCreate< Factory >::SetNewValue().

const G4String GetTitle ( ) const

References commandGuidance.

Referenced by G4UIcommandTree::GetTitle().

void SetToBeBroadcasted ( G4bool  val)
G4bool ToBeBroadcasted ( ) const

References toBeBroadcasted.

void SetToBeFlushed ( G4bool  val)
G4bool ToBeFlushed ( ) const

References toBeFlushed.

void SetWorkerThreadOnly ( G4bool  val = true)
G4bool IsWorkerThreadOnly ( ) const

References workerThreadOnly.

G4int CheckNewValue ( const char *  newValue)
protected
G4int TypeCheck ( const char *  t)
private
G4int RangeCheck ( const char *  t)
private
G4int IsInt ( const char *  str,
short  maxLength 
)
private
G4int IsDouble ( const char *  str)
private
G4int ExpectExponent ( const char *  str)
private
yystype Expression ( void  )
private
yystype LogicalORExpression ( void  )
private
yystype LogicalANDExpression ( void  )
private
yystype EqualityExpression ( void  )
private
yystype RelationalExpression ( void  )
private
yystype AdditiveExpression ( void  )
private
yystype MultiplicativeExpression ( void  )
private
yystype UnaryExpression ( void  )
private
yystype PrimaryExpression ( void  )
private
G4int Eval2 ( yystype  arg1,
G4int  op,
yystype  arg2 
)
private
G4int CompareInt ( G4int  arg1,
G4int  op,
G4int  arg2 
)
private
G4int CompareDouble ( G4double  arg1,
G4int  op,
G4double  arg2 
)
private
tokenNum Yylex ( void  )
private
unsigned IndexOf ( const char *  )
private
unsigned IsParameter ( const char *  )
private
G4int G4UIpGetc ( void  )
private
G4int G4UIpUngetc ( G4int  c)
private
G4int Backslash ( G4int  c)
private
G4int Follow ( G4int  expect,
G4int  ifyes,
G4int  ifno 
)
private
G4String TokenToStr ( G4int  token)
private
void PrintToken ( void  )
private

Member Data Documentation

G4UImessenger* messenger
private

Referenced by GetMessenger().

G4String commandPath
private

Referenced by GetCommandPath().

G4String commandName
private

Referenced by GetCommandName().

G4String rangeString
private

Referenced by GetRange(), and SetRange().

std::vector<G4UIparameter*> parameter
private
std::vector<G4String> commandGuidance
private
std::vector<G4ApplicationState> availabelStateList
private

Referenced by GetStateList().

G4bool toBeBroadcasted
protected
G4bool toBeFlushed
protected

Referenced by SetToBeFlushed(), and ToBeFlushed().

G4bool workerThreadOnly
protected
G4String rangeBuf
private
G4int bp
private
tokenNum token
private
yystype yylval
private
std::vector<yystype> newVal
private

Referenced by SetParameter().

G4int paramERR
private