G4UIcommand Class Reference

#include <G4UIcommand.hh>

Inheritance diagram for G4UIcommand:

Inheritance graph
[legend]
List of all members.

Detailed Description

Definition at line 52 of file G4UIcommand.hh.

Public Member Functions

 G4UIcommand ()
 G4UIcommand (const char *theCommandPath, G4UImessenger *theMessenger)
virtual ~G4UIcommand ()
G4int operator== (const G4UIcommand &right) const
G4int operator!= (const G4UIcommand &right) const
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 ()
void SetParameter (G4UIparameter *const newParameter)
void SetGuidance (const char *aGuidance)
const G4String GetTitle () 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)

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::G4UIcommand (  ) 

Definition at line 42 of file G4UIcommand.cc.

G4UIcommand::G4UIcommand ( const char *  theCommandPath,
G4UImessenger theMessenger 
)

Definition at line 46 of file G4UIcommand.cc.

References availabelStateList, G4cerr, G4endl, G4State_Abort, G4State_EventProc, G4State_GeomClosed, G4State_Idle, G4State_Init, G4State_PreInit, and G4UIcommandCommonConstructorCode().

Here is the call graph for this function:

G4UIcommand::~G4UIcommand (  )  [virtual]

Definition at line 83 of file G4UIcommand.cc.

References G4UImanager::GetUIpointer(), parameter, and G4UImanager::RemoveCommand().

Here is the call graph for this function:


Member Function Documentation

yystype G4UIcommand::AdditiveExpression ( void   )  [private]

Definition at line 793 of file G4UIcommand.cc.

References G4cerr, G4endl, MultiplicativeExpression(), paramERR, and token.

Referenced by RelationalExpression().

Here is the call graph for this function:

void G4UIcommand::AvailableForStates ( G4ApplicationState  s1,
G4ApplicationState  s2,
G4ApplicationState  s3,
G4ApplicationState  s4,
G4ApplicationState  s5 
)

Definition at line 255 of file G4UIcommand.cc.

References availabelStateList.

void G4UIcommand::AvailableForStates ( G4ApplicationState  s1,
G4ApplicationState  s2,
G4ApplicationState  s3,
G4ApplicationState  s4 
)

Definition at line 243 of file G4UIcommand.cc.

References availabelStateList.

void G4UIcommand::AvailableForStates ( G4ApplicationState  s1,
G4ApplicationState  s2,
G4ApplicationState  s3 
)

Definition at line 233 of file G4UIcommand.cc.

References availabelStateList.

void G4UIcommand::AvailableForStates ( G4ApplicationState  s1,
G4ApplicationState  s2 
)

Definition at line 225 of file G4UIcommand.cc.

References availabelStateList.

void G4UIcommand::AvailableForStates ( G4ApplicationState  s1  ) 

Definition at line 219 of file G4UIcommand.cc.

References availabelStateList.

Referenced by G4EmMessenger::G4EmMessenger(), G4EnergyLossMessenger::G4EnergyLossMessenger(), G4ErrorMessenger::G4ErrorMessenger(), G4EvManMessenger::G4EvManMessenger(), G4FastSimulationMessenger::G4FastSimulationMessenger(), G4GeometryMessenger::G4GeometryMessenger(), G4HepRepMessenger::G4HepRepMessenger(), G4MatScanMessenger::G4MatScanMessenger(), G4NeutronKillerMessenger::G4NeutronKillerMessenger(), G4ParticlePropertyMessenger::G4ParticlePropertyMessenger(), G4PolarizationMessenger::G4PolarizationMessenger(), G4ProcessManagerMessenger::G4ProcessManagerMessenger(), G4ProcessTableMessenger::G4ProcessTableMessenger(), G4RTMessenger::G4RTMessenger(), G4RunMessenger::G4RunMessenger(), G4StackingMessenger::G4StackingMessenger(), G4UserPhysicsListMessenger::G4UserPhysicsListMessenger(), and GFlashShowerModelMessenger::GFlashShowerModelMessenger().

G4int G4UIcommand::Backslash ( G4int  c  )  [private]

G4String G4UIcommand::CategoryOf ( const char *  unitName  )  [static]

Definition at line 295 of file G4UIcommand.cc.

References G4UnitDefinition::GetCategory().

Referenced by G4UIcmdWithADoubleAndUnit::ConvertToStringWithBestUnit(), G4UIcmdWith3VectorAndUnit::ConvertToStringWithBestUnit(), G4EnergyLossMessenger::G4EnergyLossMessenger(), G4MatScanMessenger::G4MatScanMessenger(), G4UserPhysicsListMessenger::G4UserPhysicsListMessenger(), G4UIcmdWithADoubleAndUnit::SetDefaultUnit(), and G4UIcmdWith3VectorAndUnit::SetDefaultUnit().

Here is the call graph for this function:

G4int G4UIcommand::CheckNewValue ( const char *  newValue  )  [protected]

Definition at line 474 of file G4UIcommand.cc.

References fParameterOutOfRange, G4String::isNull(), RangeCheck(), and rangeString.

Referenced by DoIt().

Here is the call graph for this function:

G4int G4UIcommand::CompareDouble ( G4double  arg1,
G4int  op,
G4double  arg2 
) [private]

Definition at line 974 of file G4UIcommand.cc.

References EQ, G4cerr, G4endl, GE, GT, LE, LT, NE, and paramERR.

Referenced by Eval2().

G4int G4UIcommand::CompareInt ( G4int  arg1,
G4int  op,
G4int  arg2 
) [private]

Definition at line 949 of file G4UIcommand.cc.

References EQ, G4cerr, G4endl, GE, GT, LE, LT, NE, and paramERR.

Referenced by Eval2().

G4ThreeVector G4UIcommand::ConvertTo3Vector ( const char *  st  )  [static]

Definition at line 441 of file G4UIcommand.cc.

Referenced by G4UIcmdWith3Vector::GetNew3VectorValue(), G4VisCommandsViewerSet::SetNewValue(), and G4AttCheck::Standard().

G4bool G4UIcommand::ConvertToBool ( const char *  st  )  [static]

Definition at line 403 of file G4UIcommand.cc.

References G4String::toUpper().

Referenced by G4UIcmdWithABool::GetNewBoolValue(), G4VisCommandsViewerSet::SetNewValue(), G4VisCommandSceneAddLogicalVolume::SetNewValue(), G4VisCommandGeometrySetVisibility::SetNewValue(), G4VisCommandGeometrySetForceWireframe::SetNewValue(), G4VisCommandGeometrySetForceSolid::SetNewValue(), G4VisCommandGeometrySetForceAuxEdgeVisible::SetNewValue(), G4VisCommandGeometrySetDaughtersInvisible::SetNewValue(), G4VisCommandEnable::SetNewValue(), and G4VisCommandAbortReviewKeptEvents::SetNewValue().

Here is the call graph for this function:

G4ThreeVector G4UIcommand::ConvertToDimensioned3Vector ( const char *  st  )  [static]

Definition at line 451 of file G4UIcommand.cc.

References ValueOf().

Referenced by G4UIcmdWith3VectorAndUnit::GetNew3VectorValue(), and G4AttCheck::Standard().

Here is the call graph for this function:

G4double G4UIcommand::ConvertToDimensionedDouble ( const char *  st  )  [static]

Definition at line 429 of file G4UIcommand.cc.

References ValueOf().

Referenced by G4UIcmdWithADoubleAndUnit::GetNewDoubleValue(), G4TrajectoryDrawerUtils::GetTimes(), and G4AttCheck::Standard().

Here is the call graph for this function:

G4double G4UIcommand::ConvertToDouble ( const char *  st  )  [static]

Definition at line 421 of file G4UIcommand.cc.

Referenced by G4UIcmdWithADouble::GetNewDoubleValue(), and G4VisCommandGeometrySetColour::SetNewValue().

G4int G4UIcommand::ConvertToInt ( const char *  st  )  [static]

Definition at line 413 of file G4UIcommand.cc.

Referenced by G4UIcmdWithAnInteger::GetNewIntValue(), G4VisCommandsViewerSet::SetNewValue(), and G4TrackingMessenger::SetNewValue().

G4String G4UIcommand::ConvertToString ( G4ThreeVector  vec,
const char *  unitName 
) [static]

Definition at line 391 of file G4UIcommand.cc.

References ValueOf().

Here is the call graph for this function:

G4String G4UIcommand::ConvertToString ( G4ThreeVector  vec  )  [static]

Definition at line 383 of file G4UIcommand.cc.

G4String G4UIcommand::ConvertToString ( G4double  doubleValue,
const char *  unitName 
) [static]

Definition at line 372 of file G4UIcommand.cc.

References ValueOf().

Here is the call graph for this function:

G4String G4UIcommand::ConvertToString ( G4double  doubleValue  )  [static]

Definition at line 364 of file G4UIcommand.cc.

G4String G4UIcommand::ConvertToString ( G4int  intValue  )  [static]

Definition at line 356 of file G4UIcommand.cc.

G4String G4UIcommand::ConvertToString ( G4bool  boolVal  )  [static]

Definition at line 349 of file G4UIcommand.cc.

Referenced by G4UIcmdWithADoubleAndUnit::ConvertToStringWithDefaultUnit(), G4UIcmdWith3VectorAndUnit::ConvertToStringWithDefaultUnit(), G4Trajectory::CreateAttValues(), G4SmoothTrajectory::CreateAttValues(), G4RTMessenger::GetCurrentValue(), G4VisCommandViewerZoom::GetCurrentValue(), G4VisCommandViewerScale::GetCurrentValue(), G4VisCommandViewerDolly::GetCurrentValue(), G4HepRepMessenger::GetCurrentValue(), G4TrackingMessenger::GetCurrentValue(), G4UserPhysicsListMessenger::GetCurrentValue(), G4RunMessenger::GetCurrentValue(), G4MatScanMessenger::GetCurrentValue(), G4PolarizationMessenger::GetCurrentValue(), G4ParticlePropertyMessenger::GetCurrentValue(), G4DecayTableMessenger::GetCurrentValue(), G4UIcontrolMessenger::GetCurrentValue(), G4GeometryMessenger::GetCurrentValue(), G4ParticleGunMessenger::GetCurrentValue(), G4EvManMessenger::GetCurrentValue(), G4ScoringMessenger::GetCurrentValue(), G4VisCommandsViewerSet::SetNewValue(), and G4AttCheck::Standard().

G4int G4UIcommand::DoIt ( G4String  parameterList  ) 

Definition at line 104 of file G4UIcommand.cc.

References G4String::append(), CheckNewValue(), fParameterOutOfRange, fParameterUnreadable, G4UImessenger::GetCurrentValue(), G4String::index(), G4String::isNull(), messenger, parameter, and G4UImessenger::SetNewValue().

Referenced by G4UImanager::ApplyCommand().

Here is the call graph for this function:

yystype G4UIcommand::EqualityExpression ( void   )  [private]

Definition at line 733 of file G4UIcommand.cc.

References CONSTDOUBLE, CONSTINT, EQ, Eval2(), G4cerr, G4endl, yystype::I, NE, paramERR, RelationalExpression(), token, yystype::type, and Yylex().

Referenced by LogicalANDExpression().

Here is the call graph for this function:

G4int G4UIcommand::Eval2 ( yystype  arg1,
G4int  op,
yystype  arg2 
) [private]

Definition at line 891 of file G4UIcommand.cc.

References commandName, CompareDouble(), CompareInt(), CONSTDOUBLE, CONSTINT, yystype::D, G4cerr, G4endl, yystype::I, IDENTIFIER, IndexOf(), newVal, paramERR, parameter, rangeString, yystype::S, and yystype::type.

Referenced by EqualityExpression(), and RelationalExpression().

Here is the call graph for this function:

G4int G4UIcommand::ExpectExponent ( const char *  str  )  [private]

Definition at line 551 of file G4UIcommand.cc.

References IsInt().

Referenced by IsDouble().

Here is the call graph for this function:

yystype G4UIcommand::Expression ( void   )  [private]

Definition at line 651 of file G4UIcommand.cc.

References G4cerr, G4endl, and LogicalORExpression().

Referenced by PrimaryExpression(), and RangeCheck().

Here is the call graph for this function:

G4int G4UIcommand::Follow ( G4int  expect,
G4int  ifyes,
G4int  ifno 
) [private]

Definition at line 1091 of file G4UIcommand.cc.

References G4UIpGetc(), and G4UIpUngetc().

Referenced by Yylex().

Here is the call graph for this function:

void G4UIcommand::G4UIcommandCommonConstructorCode ( const char *  theCommandPath  )  [private]

Definition at line 73 of file G4UIcommand.cc.

References G4UImanager::AddNewCommand(), and G4UImanager::GetUIpointer().

Referenced by G4UIcommand().

Here is the call graph for this function:

G4int G4UIcommand::G4UIpGetc ( void   )  [private]

Definition at line 1102 of file G4UIcommand.cc.

References bp, and rangeString.

Referenced by Follow(), and Yylex().

G4int G4UIcommand::G4UIpUngetc ( G4int  c  )  [private]

Definition at line 1110 of file G4UIcommand.cc.

References bp, G4cerr, G4endl, paramERR, and rangeString.

Referenced by Follow(), and Yylex().

const G4String& G4UIcommand::GetCommandName (  )  const [inline]

Definition at line 137 of file G4UIcommand.hh.

References commandName.

Referenced by G4VBasicShell::FindMatchingPath().

const G4String& G4UIcommand::GetCommandPath (  )  const [inline]

Definition at line 135 of file G4UIcommand.hh.

References commandPath.

Referenced by G4UIcommandTree::AddNewCommand(), G4UImessenger::AddUIcommand(), G4UIGainServer::CodeGenJavaTree(), G4UIGAG::CodeGenJavaTree(), G4UIGAG::CodeGenTclTree(), G4UIGainServer::GetNewTreeStructure(), G4UIGAG::GetNewTreeStructure(), G4UIGainServer::GetNewTreeValues(), G4UIGAG::GetNewTreeValues(), operator!=(), operator==(), G4UIcommandTree::RemoveCommand(), G4UIGainServer::SendAParamProperty(), G4UIGAG::SendAParamProperty(), G4UIGAG::SendATclParamProperty(), G4UIGainServer::SendDisableList(), G4UIGAG::SendDisableList(), G4ScoringMessenger::SetNewValue(), G4ScoreQuantityMessenger::SetNewValue(), G4UIGainServer::UpdateParamVal(), and G4UIGAG::UpdateParamVal().

G4String G4UIcommand::GetCurrentValue (  ) 

Definition at line 214 of file G4UIcommand.cc.

References G4UImessenger::GetCurrentValue(), and messenger.

Referenced by G4UImanager::GetCurrentValues().

Here is the call graph for this function:

G4int G4UIcommand::GetGuidanceEntries (  )  const [inline]

Definition at line 131 of file G4UIcommand.hh.

References commandGuidance.

Referenced by G4UIGAG::CodeGenTclTree(), G4UIcommandTree::CreateHTML(), G4UIGainServer::SendAParamProperty(), and G4UIGAG::SendAParamProperty().

const G4String& G4UIcommand::GetGuidanceLine ( G4int  i  )  const [inline]

Definition at line 133 of file G4UIcommand.hh.

References commandGuidance.

Referenced by G4UIGAG::CodeGenTclTree(), G4UIcommandTree::CreateHTML(), G4UIGainServer::SendAParamProperty(), and G4UIGAG::SendAParamProperty().

G4UIparameter* G4UIcommand::GetParameter ( G4int  i  )  const [inline]

Definition at line 141 of file G4UIcommand.hh.

References parameter.

Referenced by G4UIcmdWithADoubleAndUnit::ConvertToStringWithBestUnit(), G4UIcmdWith3VectorAndUnit::ConvertToStringWithBestUnit(), G4UIcmdWithADoubleAndUnit::ConvertToStringWithDefaultUnit(), G4UIcmdWith3VectorAndUnit::ConvertToStringWithDefaultUnit(), G4UIterminal::ExecuteCommand(), G4UImanager::GetCurrentStringValue(), G4ProcessTableMessenger::GetCurrentValue(), G4UIGainServer::GetNewTreeValues(), G4UIGAG::GetNewTreeValues(), G4UIGainServer::SendAParamProperty(), G4UIGAG::SendAParamProperty(), G4UIGAG::SendATclParamProperty(), G4UIcmdWithAString::SetCandidates(), G4UIcmdWithADoubleAndUnit::SetDefaultUnit(), G4UIcmdWith3VectorAndUnit::SetDefaultUnit(), G4UIcmdWithNucleusLimits::SetDefaultValue(), G4UIcmdWithAString::SetDefaultValue(), G4UIcmdWithAnInteger::SetDefaultValue(), G4UIcmdWithADoubleAndUnit::SetDefaultValue(), G4UIcmdWithADouble::SetDefaultValue(), G4UIcmdWithABool::SetDefaultValue(), G4UIcmdWith3VectorAndUnit::SetDefaultValue(), G4UIcmdWith3Vector::SetDefaultValue(), G4UIcmdWithADoubleAndUnit::SetUnitCandidates(), and G4UIcmdWith3VectorAndUnit::SetUnitCandidates().

G4int G4UIcommand::GetParameterEntries (  )  const [inline]

Definition at line 139 of file G4UIcommand.hh.

References parameter.

Referenced by G4UImanager::GetCurrentStringValue(), G4UIGainServer::GetNewTreeValues(), G4UIGAG::GetNewTreeValues(), G4UIGainServer::SendAParamProperty(), G4UIGAG::SendAParamProperty(), G4UIGAG::SendATclParamProperty(), and G4InteractorMessenger::SetNewValue().

const G4String& G4UIcommand::GetRange (  )  const [inline]

Definition at line 129 of file G4UIcommand.hh.

References rangeString.

Referenced by G4UIGainServer::SendAParamProperty(), G4UIGAG::SendAParamProperty(), and G4UIGAG::SendATclParamProperty().

std::vector<G4ApplicationState>* G4UIcommand::GetStateList (  )  [inline]

Definition at line 143 of file G4UIcommand.hh.

References availabelStateList.

const G4String G4UIcommand::GetTitle (  )  const [inline]

Definition at line 164 of file G4UIcommand.hh.

References commandGuidance.

Referenced by G4UIGainServer::GetNewTreeStructure(), G4UIGAG::GetNewTreeStructure(), and G4UIcommandTree::GetTitle().

unsigned G4UIcommand::IndexOf ( const char *   )  [private]

Definition at line 1000 of file G4UIcommand.cc.

References G4cerr, G4endl, paramERR, and parameter.

Referenced by Eval2().

G4bool G4UIcommand::IsAvailable (  ) 

Definition at line 269 of file G4UIcommand.cc.

References availabelStateList, G4StateManager::GetCurrentState(), and G4StateManager::GetStateManager().

Referenced by G4UImanager::ApplyCommand(), G4UIGainServer::SendDisableList(), and G4UIGAG::SendDisableList().

Here is the call graph for this function:

G4int G4UIcommand::IsDouble ( const char *  str  )  [private]

Definition at line 560 of file G4UIcommand.cc.

References ExpectExponent().

Referenced by TypeCheck(), and Yylex().

Here is the call graph for this function:

G4int G4UIcommand::IsInt ( const char *  str,
short  maxLength 
) [private]

Definition at line 527 of file G4UIcommand.cc.

References G4cerr, and G4endl.

Referenced by ExpectExponent(), TypeCheck(), and Yylex().

unsigned G4UIcommand::IsParameter ( const char *   )  [private]

Definition at line 1018 of file G4UIcommand.cc.

References parameter.

Referenced by Yylex().

void G4UIcommand::List (  )  [virtual]

Definition at line 328 of file G4UIcommand.cc.

References commandGuidance, commandPath, G4cout, G4endl, G4String::isNull(), parameter, and rangeString.

Referenced by G4UIcommandTree::ListCurrent(), G4UIcommandTree::ListCurrentWithNum(), G4UIGainServer::TerminalHelp(), G4UIGAG::TerminalHelp(), and G4VBasicShell::TerminalHelp().

Here is the call graph for this function:

yystype G4UIcommand::LogicalANDExpression ( void   )  [private]

Definition at line 697 of file G4UIcommand.cc.

References CONSTDOUBLE, CONSTINT, CONSTSTRING, yystype::D, EqualityExpression(), G4cerr, G4endl, yystype::I, IDENTIFIER, LOGICALAND, paramERR, token, yystype::type, and Yylex().

Referenced by LogicalORExpression().

Here is the call graph for this function:

yystype G4UIcommand::LogicalORExpression ( void   )  [private]

Definition at line 662 of file G4UIcommand.cc.

References CONSTDOUBLE, CONSTINT, CONSTSTRING, yystype::D, G4cerr, G4endl, yystype::I, IDENTIFIER, LogicalANDExpression(), LOGICALOR, paramERR, token, yystype::type, and Yylex().

Referenced by Expression().

Here is the call graph for this function:

yystype G4UIcommand::MultiplicativeExpression ( void   )  [private]

Definition at line 805 of file G4UIcommand.cc.

References G4cerr, G4endl, paramERR, token, and UnaryExpression().

Referenced by AdditiveExpression().

Here is the call graph for this function:

G4int G4UIcommand::operator!= ( const G4UIcommand right  )  const

Definition at line 99 of file G4UIcommand.cc.

References commandPath, and GetCommandPath().

Here is the call graph for this function:

G4int G4UIcommand::operator== ( const G4UIcommand right  )  const

Definition at line 94 of file G4UIcommand.cc.

References commandPath, and GetCommandPath().

Here is the call graph for this function:

yystype G4UIcommand::PrimaryExpression ( void   )  [private]

Definition at line 854 of file G4UIcommand.cc.

References CONSTDOUBLE, CONSTINT, yystype::D, Expression(), G4cerr, G4endl, yystype::I, IDENTIFIER, paramERR, yystype::S, token, yystype::type, Yylex(), and yylval.

Referenced by UnaryExpression().

Here is the call graph for this function:

void G4UIcommand::PrintToken ( void   )  [private]

G4int G4UIcommand::RangeCheck ( const char *  t  )  [private]

Definition at line 620 of file G4UIcommand.cc.

References bp, CONSTINT, Expression(), G4cerr, G4endl, yystype::I, newVal, paramERR, parameter, rangeString, token, yystype::type, and Yylex().

Referenced by CheckNewValue().

Here is the call graph for this function:

yystype G4UIcommand::RelationalExpression ( void   )  [private]

Definition at line 764 of file G4UIcommand.cc.

References AdditiveExpression(), CONSTINT, Eval2(), G4cerr, G4endl, GE, GT, yystype::I, LE, LT, token, yystype::type, and Yylex().

Referenced by EqualityExpression().

Here is the call graph for this function:

void G4UIcommand::SetGuidance ( const char *  aGuidance  )  [inline]

Definition at line 155 of file G4UIcommand.hh.

References commandGuidance.

Referenced by G4ScoreQuantityMessenger::FilterCommands(), G4DecayTableMessenger::G4DecayTableMessenger(), G4DMmessenger::G4DMmessenger(), G4EmMessenger::G4EmMessenger(), G4EnergyLossMessenger::G4EnergyLossMessenger(), G4ErrorMessenger::G4ErrorMessenger(), G4EvManMessenger::G4EvManMessenger(), G4FastSimulationMessenger::G4FastSimulationMessenger(), G4GeometryMessenger::G4GeometryMessenger(), G4HepRepMessenger::G4HepRepMessenger(), G4InteractorMessenger::G4InteractorMessenger(), G4MatScanMessenger::G4MatScanMessenger(), 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(), G4ModelCmdSetAuxPtsType< M >::G4ModelCmdSetAuxPtsType(), G4ModelCmdSetAuxPtsVisible< M >::G4ModelCmdSetAuxPtsVisible(), G4ModelCmdSetDrawAuxPts< M >::G4ModelCmdSetDrawAuxPts(), G4ModelCmdSetDrawLine< M >::G4ModelCmdSetDrawLine(), G4ModelCmdSetDrawStepPts< M >::G4ModelCmdSetDrawStepPts(), G4ModelCmdSetLineVisible< M >::G4ModelCmdSetLineVisible(), G4ModelCmdSetStepPtsFillStyle< M >::G4ModelCmdSetStepPtsFillStyle(), G4ModelCmdSetStepPtsSize< M >::G4ModelCmdSetStepPtsSize(), G4ModelCmdSetStepPtsType< M >::G4ModelCmdSetStepPtsType(), G4ModelCmdSetStepPtsVisible< M >::G4ModelCmdSetStepPtsVisible(), G4ModelCmdSetString< M >::G4ModelCmdSetString(), G4ModelCmdSetTimeSliceInterval< M >::G4ModelCmdSetTimeSliceInterval(), G4ModelCmdVerbose< M >::G4ModelCmdVerbose(), G4NeutronKillerMessenger::G4NeutronKillerMessenger(), G4NistMessenger::G4NistMessenger(), G4ParticleGunMessenger::G4ParticleGunMessenger(), G4ParticleMessenger::G4ParticleMessenger(), G4ParticlePropertyMessenger::G4ParticlePropertyMessenger(), G4PersistencyCenterMessenger::G4PersistencyCenterMessenger(), G4PolarizationMessenger::G4PolarizationMessenger(), G4ProcessManagerMessenger::G4ProcessManagerMessenger(), G4ProcessTableMessenger::G4ProcessTableMessenger(), G4RTMessenger::G4RTMessenger(), G4RunMessenger::G4RunMessenger(), G4ScoringMessenger::G4ScoringMessenger(), G4SDmessenger::G4SDmessenger(), G4StackingMessenger::G4StackingMessenger(), G4TrackingMessenger::G4TrackingMessenger(), G4UIcontrolMessenger::G4UIcontrolMessenger(), G4UnitsMessenger::G4UnitsMessenger(), G4UserPhysicsListMessenger::G4UserPhysicsListMessenger(), G4VisCommandDrawTree::G4VisCommandDrawTree(), G4VisCommandDrawView::G4VisCommandDrawView(), G4VisCommandDrawVolume::G4VisCommandDrawVolume(), G4VisCommandGeometrySetColour::G4VisCommandGeometrySetColour(), G4VisCommandGeometrySetDaughtersInvisible::G4VisCommandGeometrySetDaughtersInvisible(), G4VisCommandGeometrySetForceAuxEdgeVisible::G4VisCommandGeometrySetForceAuxEdgeVisible(), G4VisCommandGeometrySetForceLineSegmentsPerCircle::G4VisCommandGeometrySetForceLineSegmentsPerCircle(), G4VisCommandGeometrySetForceSolid::G4VisCommandGeometrySetForceSolid(), G4VisCommandGeometrySetForceWireframe::G4VisCommandGeometrySetForceWireframe(), G4VisCommandGeometrySetLineStyle::G4VisCommandGeometrySetLineStyle(), G4VisCommandGeometrySetLineWidth::G4VisCommandGeometrySetLineWidth(), G4VisCommandGeometrySetVisibility::G4VisCommandGeometrySetVisibility(), G4VisCommandListManagerList< Manager >::G4VisCommandListManagerList(), G4VisCommandListManagerSelect< Manager >::G4VisCommandListManagerSelect(), G4VisCommandManagerMode< Manager >::G4VisCommandManagerMode(), G4VisCommandModelCreate< Factory >::G4VisCommandModelCreate(), G4VisCommandOpen::G4VisCommandOpen(), G4VisCommandSpecify::G4VisCommandSpecify(), G4VisCommandsViewerSet::G4VisCommandsViewerSet(), GFlashShowerModelMessenger::GFlashShowerModelMessenger(), G4ScoreQuantityMessenger::QuantityCommands(), and G4VisCommandModelCreate< Factory >::SetNewValue().

void G4UIcommand::SetParameter ( G4UIparameter *const   newParameter  )  [inline]

Definition at line 146 of file G4UIcommand.hh.

References newVal, and parameter.

Referenced by G4ScoreQuantityMessenger::FilterCommands(), G4EnergyLossMessenger::G4EnergyLossMessenger(), G4InteractorMessenger::G4InteractorMessenger(), G4MatScanMessenger::G4MatScanMessenger(), G4ModelCmdApplyColour< M >::G4ModelCmdApplyColour(), G4ModelCmdApplyStringColour< M >::G4ModelCmdApplyStringColour(), G4ParticleGunMessenger::G4ParticleGunMessenger(), G4PolarizationMessenger::G4PolarizationMessenger(), G4ProcessManagerMessenger::G4ProcessManagerMessenger(), G4ProcessTableMessenger::G4ProcessTableMessenger(), G4RunMessenger::G4RunMessenger(), G4ScoringMessenger::G4ScoringMessenger(), G4UIcontrolMessenger::G4UIcontrolMessenger(), G4UserPhysicsListMessenger::G4UserPhysicsListMessenger(), G4VisCommandGeometrySetColour::G4VisCommandGeometrySetColour(), G4VisCommandGeometrySetDaughtersInvisible::G4VisCommandGeometrySetDaughtersInvisible(), G4VisCommandGeometrySetForceAuxEdgeVisible::G4VisCommandGeometrySetForceAuxEdgeVisible(), G4VisCommandGeometrySetForceLineSegmentsPerCircle::G4VisCommandGeometrySetForceLineSegmentsPerCircle(), G4VisCommandGeometrySetForceSolid::G4VisCommandGeometrySetForceSolid(), G4VisCommandGeometrySetForceWireframe::G4VisCommandGeometrySetForceWireframe(), G4VisCommandGeometrySetLineStyle::G4VisCommandGeometrySetLineStyle(), G4VisCommandGeometrySetLineWidth::G4VisCommandGeometrySetLineWidth(), G4VisCommandGeometrySetVisibility::G4VisCommandGeometrySetVisibility(), G4VisCommandOpen::G4VisCommandOpen(), G4VisCommandSceneAddAxes::G4VisCommandSceneAddAxes(), G4VisCommandSceneAddLogo::G4VisCommandSceneAddLogo(), G4VisCommandSceneAddScale::G4VisCommandSceneAddScale(), G4VisCommandSceneAddText::G4VisCommandSceneAddText(), G4VisCommandSceneAddUserAction::G4VisCommandSceneAddUserAction(), G4VisCommandSpecify::G4VisCommandSpecify(), G4VisCommandsViewerSet::G4VisCommandsViewerSet(), G4VisCommandViewerAddCutawayPlane::G4VisCommandViewerAddCutawayPlane(), G4VisCommandViewerChangeCutawayPlane::G4VisCommandViewerChangeCutawayPlane(), and G4ScoreQuantityMessenger::QuantityCommands().

void G4UIcommand::SetRange ( const char *  rs  )  [inline]

Definition at line 121 of file G4UIcommand.hh.

References rangeString.

Referenced by G4DecayTableMessenger::G4DecayTableMessenger(), G4EnergyLossMessenger::G4EnergyLossMessenger(), G4EvManMessenger::G4EvManMessenger(), G4GeometryMessenger::G4GeometryMessenger(), G4ParticleGunMessenger::G4ParticleGunMessenger(), G4ParticlePropertyMessenger::G4ParticlePropertyMessenger(), G4PersistencyCenterMessenger::G4PersistencyCenterMessenger(), G4PolarizationMessenger::G4PolarizationMessenger(), G4ProcessManagerMessenger::G4ProcessManagerMessenger(), G4ProcessTableMessenger::G4ProcessTableMessenger(), G4RTMessenger::G4RTMessenger(), G4RunMessenger::G4RunMessenger(), G4ScoringMessenger::G4ScoringMessenger(), G4StackingMessenger::G4StackingMessenger(), G4TrackingMessenger::G4TrackingMessenger(), G4UIcontrolMessenger::G4UIcontrolMessenger(), and G4UserPhysicsListMessenger::G4UserPhysicsListMessenger().

G4String G4UIcommand::TokenToStr ( G4int  token  )  [private]

G4int G4UIcommand::TypeCheck ( const char *  t  )  [private]

Definition at line 486 of file G4UIcommand.cc.

References G4cerr, G4endl, IsDouble(), IsInt(), and parameter.

Here is the call graph for this function:

yystype G4UIcommand::UnaryExpression ( void   )  [private]

Definition at line 817 of file G4UIcommand.cc.

References CONSTDOUBLE, CONSTINT, yystype::D, G4cerr, G4endl, yystype::I, paramERR, PrimaryExpression(), token, yystype::type, and Yylex().

Referenced by MultiplicativeExpression().

Here is the call graph for this function:

G4String G4UIcommand::UnitsList ( const char *  unitCategory  )  [static]

Definition at line 300 of file G4UIcommand.cc.

References G4cerr, G4endl, and G4UnitDefinition::GetUnitsTable().

Referenced by G4EnergyLossMessenger::G4EnergyLossMessenger(), G4MatScanMessenger::G4MatScanMessenger(), G4UserPhysicsListMessenger::G4UserPhysicsListMessenger(), G4UIcmdWithADoubleAndUnit::SetUnitCategory(), and G4UIcmdWith3VectorAndUnit::SetUnitCategory().

Here is the call graph for this function:

G4double G4UIcommand::ValueOf ( const char *  unitName  )  [static]

Definition at line 288 of file G4UIcommand.cc.

References G4UnitDefinition::GetValueOf().

Referenced by ConvertToDimensioned3Vector(), ConvertToDimensionedDouble(), G4VVisCommand::ConvertToDoublePair(), G4VVisCommand::ConvertToString(), ConvertToString(), G4UIcmdWithADoubleAndUnit::GetNewUnitValue(), G4UIcmdWith3VectorAndUnit::GetNewUnitValue(), G4VisCommandsViewerSet::SetNewValue(), G4VisCommandViewerChangeCutawayPlane::SetNewValue(), G4VisCommandViewerAddCutawayPlane::SetNewValue(), G4VisCommandSceneAddVolume::SetNewValue(), G4VisCommandSceneAddUserAction::SetNewValue(), G4VisCommandSceneAddText::SetNewValue(), G4VisCommandSceneAddScale::SetNewValue(), G4VisCommandSceneAddLogo::SetNewValue(), G4VisCommandSceneAddAxes::SetNewValue(), G4UserPhysicsListMessenger::SetNewValue(), G4MatScanMessenger::SetNewValue(), and G4EnergyLossMessenger::SetNewValue().

Here is the call graph for this function:

tokenNum G4UIcommand::Yylex ( void   )  [private]

Definition at line 1033 of file G4UIcommand.cc.

References CONSTDOUBLE, CONSTINT, yystype::D, G4String::data(), EQ, Follow(), G4cerr, G4endl, G4UIpGetc(), G4UIpUngetc(), GE, GT, yystype::I, IDENTIFIER, IsDouble(), IsInt(), IsParameter(), LE, LOGICALAND, LOGICALOR, LT, NE, paramERR, yystype::S, and yylval.

Referenced by EqualityExpression(), LogicalANDExpression(), LogicalORExpression(), PrimaryExpression(), RangeCheck(), RelationalExpression(), and UnaryExpression().

Here is the call graph for this function:


Member Data Documentation

std::vector<G4ApplicationState> G4UIcommand::availabelStateList [private]

Definition at line 118 of file G4UIcommand.hh.

Referenced by AvailableForStates(), G4UIcommand(), GetStateList(), and IsAvailable().

G4int G4UIcommand::bp [private]

Definition at line 208 of file G4UIcommand.hh.

Referenced by G4UIpGetc(), G4UIpUngetc(), and RangeCheck().

std::vector<G4String> G4UIcommand::commandGuidance [private]

Definition at line 117 of file G4UIcommand.hh.

Referenced by GetGuidanceEntries(), GetGuidanceLine(), GetTitle(), List(), and SetGuidance().

G4String G4UIcommand::commandName [private]

Definition at line 114 of file G4UIcommand.hh.

Referenced by Eval2(), and GetCommandName().

G4String G4UIcommand::commandPath [private]

Definition at line 113 of file G4UIcommand.hh.

Referenced by GetCommandPath(), List(), operator!=(), and operator==().

G4UImessenger* G4UIcommand::messenger [private]

Definition at line 112 of file G4UIcommand.hh.

Referenced by DoIt(), and GetCurrentValue().

std::vector<yystype> G4UIcommand::newVal [private]

Definition at line 211 of file G4UIcommand.hh.

Referenced by Eval2(), RangeCheck(), and SetParameter().

G4int G4UIcommand::paramERR [private]

Definition at line 212 of file G4UIcommand.hh.

Referenced by AdditiveExpression(), CompareDouble(), CompareInt(), EqualityExpression(), Eval2(), G4UIpUngetc(), IndexOf(), LogicalANDExpression(), LogicalORExpression(), MultiplicativeExpression(), PrimaryExpression(), RangeCheck(), UnaryExpression(), and Yylex().

std::vector<G4UIparameter*> G4UIcommand::parameter [private]

Definition at line 116 of file G4UIcommand.hh.

Referenced by DoIt(), Eval2(), GetParameter(), GetParameterEntries(), IndexOf(), IsParameter(), List(), RangeCheck(), SetParameter(), TypeCheck(), and ~G4UIcommand().

G4String G4UIcommand::rangeBuf [private]

Definition at line 207 of file G4UIcommand.hh.

G4String G4UIcommand::rangeString [private]

Definition at line 115 of file G4UIcommand.hh.

Referenced by CheckNewValue(), Eval2(), G4UIpGetc(), G4UIpUngetc(), GetRange(), List(), RangeCheck(), and SetRange().

tokenNum G4UIcommand::token [private]

Definition at line 209 of file G4UIcommand.hh.

Referenced by AdditiveExpression(), EqualityExpression(), LogicalANDExpression(), LogicalORExpression(), MultiplicativeExpression(), PrimaryExpression(), RangeCheck(), RelationalExpression(), and UnaryExpression().

yystype G4UIcommand::yylval [private]

Definition at line 210 of file G4UIcommand.hh.

Referenced by PrimaryExpression(), and Yylex().


The documentation for this class was generated from the following files:
Generated on Sat Apr 12 06:53:04 2008 for Geant4 by  doxygen 1.4.7