Geant4  10.03
G4UIparameter Class Reference

#include <G4UIparameter.hh>

+ Collaboration diagram for G4UIparameter:

Public Member Functions

 G4UIparameter ()
 
 G4UIparameter (char theType)
 
 G4UIparameter (const char *theName, char theType, G4bool theOmittable)
 
 ~G4UIparameter ()
 
G4int operator== (const G4UIparameter &right) const
 
G4int operator!= (const G4UIparameter &right) const
 
G4int CheckNewValue (const char *newValue)
 
void List ()
 
void SetDefaultValue (const char *theDefaultValue)
 
void SetDefaultValue (G4int theDefaultValue)
 
void SetDefaultValue (G4double theDefaultValue)
 
G4String GetDefaultValue () const
 
char GetParameterType () const
 
void SetParameterRange (const char *theRange)
 
G4String GetParameterRange () const
 
void SetParameterName (const char *theName)
 
G4String GetParameterName () const
 
void SetParameterCandidates (const char *theString)
 
G4String GetParameterCandidates () const
 
void SetOmittable (G4bool om)
 
G4bool IsOmittable () const
 
void SetCurrentAsDefault (G4bool val)
 
G4bool GetCurrentAsDefault () const
 
void SetWidget (G4int theWidget)
 
const G4String GetParameterGuidance () const
 
void SetGuidance (const char *theGuidance)
 

Private Member Functions

G4int TypeCheck (const char *newValue)
 
G4int RangeCheck (const char *newValue)
 
G4int CandidateCheck (const char *newValue)
 
G4int IsInt (const char *str, short maxDigit)
 
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 (double arg1, G4int op, double arg2)
 
tokenNum Yylex (void)
 
G4int G4UIpGetc (void)
 
G4int G4UIpUngetc (G4int c)
 
G4int Backslash (G4int c)
 
G4int Follow (G4int expect, G4int ifyes, G4int ifno)
 
G4String TokenToStr (G4int token)
 

Private Attributes

G4String parameterName
 
G4String parameterGuidance
 
G4String defaultValue
 
G4String parameterRange
 
G4String parameterCandidate
 
char parameterType
 
G4bool omittable
 
G4bool currentAsDefaultFlag
 
G4int widget
 
G4String rangeBuf
 
G4int bp
 
tokenNum token
 
yystype yylval
 
yystype newVal
 
G4int paramERR
 

Detailed Description

Definition at line 47 of file G4UIparameter.hh.

Constructor & Destructor Documentation

G4UIparameter::G4UIparameter ( )
G4UIparameter::G4UIparameter ( char  theType)
G4UIparameter::G4UIparameter ( const char *  theName,
char  theType,
G4bool  theOmittable 
)
G4UIparameter::~G4UIparameter ( )

Definition at line 85 of file G4UIparameter.cc.

Member Function Documentation

yystype G4UIparameter::AdditiveExpression ( void  )
private

Definition at line 461 of file G4UIparameter.cc.

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

Referenced by RelationalExpression().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4UIparameter::Backslash ( G4int  c)
private
G4int G4UIparameter::CandidateCheck ( const char *  newValue)
private

Definition at line 151 of file G4UIparameter.cc.

References G4cerr, G4endl, and parameterCandidate.

Referenced by CheckNewValue().

+ Here is the caller graph for this function:

G4int G4UIparameter::CheckNewValue ( const char *  newValue)

Definition at line 141 of file G4UIparameter.cc.

References CandidateCheck(), fParameterOutOfCandidates, fParameterOutOfRange, fParameterUnreadable, G4String::isNull(), parameterCandidate, parameterRange, RangeCheck(), and TypeCheck().

+ Here is the call graph for this function:

G4int G4UIparameter::CompareDouble ( double  arg1,
G4int  op,
double  arg2 
)
private

Definition at line 640 of file G4UIparameter.cc.

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

Referenced by Eval2().

+ Here is the caller graph for this function:

G4int G4UIparameter::CompareInt ( G4int  arg1,
G4int  op,
G4int  arg2 
)
private

Definition at line 615 of file G4UIparameter.cc.

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

Referenced by Eval2().

+ Here is the caller graph for this function:

yystype G4UIparameter::EqualityExpression ( void  )
private

Definition at line 401 of file G4UIparameter.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:

+ Here is the caller graph for this function:

G4int G4UIparameter::Eval2 ( yystype  arg1,
G4int  op,
yystype  arg2 
)
private

Definition at line 559 of file G4UIparameter.cc.

References CompareDouble(), CompareInt(), CONSTDOUBLE, CONSTINT, yystype::D, G4cerr, G4endl, yystype::I, IDENTIFIER, newVal, paramERR, parameterName, parameterRange, parameterType, and yystype::type.

Referenced by EqualityExpression(), and RelationalExpression().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4UIparameter::ExpectExponent ( const char *  str)
private

Definition at line 252 of file G4UIparameter.cc.

References IsInt().

Referenced by IsDouble().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

yystype G4UIparameter::Expression ( void  )
private

Definition at line 319 of file G4UIparameter.cc.

References G4cerr, G4endl, and LogicalORExpression().

Referenced by PrimaryExpression(), and RangeCheck().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4UIparameter::Follow ( G4int  expect,
G4int  ifyes,
G4int  ifno 
)
private

Definition at line 725 of file G4UIparameter.cc.

References G4UIpGetc(), and G4UIpUngetc().

Referenced by Yylex().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4UIparameter::G4UIpGetc ( void  )
private

Definition at line 736 of file G4UIparameter.cc.

References bp, and parameterRange.

Referenced by Follow(), and Yylex().

+ Here is the caller graph for this function:

G4int G4UIparameter::G4UIpUngetc ( G4int  c)
private

Definition at line 744 of file G4UIparameter.cc.

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

Referenced by Follow(), and Yylex().

+ Here is the caller graph for this function:

G4bool G4UIparameter::GetCurrentAsDefault ( ) const
inline

Definition at line 130 of file G4UIparameter.hh.

References currentAsDefaultFlag.

Referenced by G4UIcommandTree::CreateHTML(), and export_G4UIparameter().

+ Here is the caller graph for this function:

G4String G4UIparameter::GetDefaultValue ( ) const
inline
G4String G4UIparameter::GetParameterCandidates ( ) const
inline
const G4String G4UIparameter::GetParameterGuidance ( ) const
inline

Definition at line 136 of file G4UIparameter.hh.

References parameterGuidance.

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

+ Here is the caller graph for this function:

G4String G4UIparameter::GetParameterName ( ) const
inline

Definition at line 109 of file G4UIparameter.hh.

References parameterName.

Referenced by G4UIcommandTree::CreateHTML(), export_G4UIparameter(), G4UImanager::GetCurrentStringValue(), G4UIGainServer::GetNewTreeValues(), G4UIGAG::GetNewTreeValues(), G4UIGAG::SendAParamProperty(), G4UIGainServer::SendAParamProperty(), G4UIGAG::SendATclParamProperty(), and G4GenericMessenger::Command::SetUnit().

+ Here is the caller graph for this function:

G4String G4UIparameter::GetParameterRange ( ) const
inline

Definition at line 103 of file G4UIparameter.hh.

References parameterRange.

Referenced by G4UIcommandTree::CreateHTML(), export_G4UIparameter(), G4UIGainServer::GetNewTreeValues(), G4UIGAG::GetNewTreeValues(), G4UIGAG::SendAParamProperty(), G4UIGainServer::SendAParamProperty(), and G4UIGAG::SendATclParamProperty().

+ Here is the caller graph for this function:

char G4UIparameter::GetParameterType ( ) const
inline

Definition at line 91 of file G4UIparameter.hh.

References parameterType.

Referenced by G4UIcommandTree::CreateHTML(), export_G4UIparameter(), G4UIGainServer::GetNewTreeValues(), G4UIGAG::GetNewTreeValues(), G4UIGAG::SendAParamProperty(), G4UIGainServer::SendAParamProperty(), and G4UIGAG::SendATclParamProperty().

+ Here is the caller graph for this function:

G4int G4UIparameter::IsDouble ( const char *  str)
private

Definition at line 260 of file G4UIparameter.cc.

References ExpectExponent().

Referenced by TypeCheck(), and Yylex().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4UIparameter::IsInt ( const char *  str,
short  maxDigit 
)
private

Definition at line 228 of file G4UIparameter.cc.

References G4cerr, and G4endl.

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

+ Here is the caller graph for this function:

G4bool G4UIparameter::IsOmittable ( ) const
inline
void G4UIparameter::List ( )

Definition at line 98 of file G4UIparameter.cc.

References currentAsDefaultFlag, defaultValue, G4cout, G4endl, G4String::isNull(), omittable, parameterCandidate, parameterGuidance, parameterName, parameterRange, and parameterType.

Referenced by export_G4UIparameter().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

yystype G4UIparameter::LogicalANDExpression ( void  )
private

Definition at line 365 of file G4UIparameter.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:

+ Here is the caller graph for this function:

yystype G4UIparameter::LogicalORExpression ( void  )
private

Definition at line 330 of file G4UIparameter.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:

+ Here is the caller graph for this function:

yystype G4UIparameter::MultiplicativeExpression ( void  )
private

Definition at line 473 of file G4UIparameter.cc.

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

Referenced by AdditiveExpression().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 93 of file G4UIparameter.cc.

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

Definition at line 88 of file G4UIparameter.cc.

yystype G4UIparameter::PrimaryExpression ( void  )
private

Definition at line 522 of file G4UIparameter.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:

+ Here is the caller graph for this function:

G4int G4UIparameter::RangeCheck ( const char *  newValue)
private

Definition at line 166 of file G4UIparameter.cc.

References bp, CONSTINT, yystype::D, Expression(), G4cerr, G4endl, yystype::I, newVal, paramERR, parameterRange, parameterType, token, yystype::type, and Yylex().

Referenced by CheckNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

yystype G4UIparameter::RelationalExpression ( void  )
private

Definition at line 432 of file G4UIparameter.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:

+ Here is the caller graph for this function:

void G4UIparameter::SetCurrentAsDefault ( G4bool  val)
inline
void G4UIparameter::SetDefaultValue ( const char *  theDefaultValue)
inline

Definition at line 83 of file G4UIparameter.hh.

Referenced by CexmcScenePrimitivesMessenger::CexmcScenePrimitivesMessenger(), DMXParticleSourceMessenger::DMXParticleSourceMessenger(), G4ScoreQuantityMessenger::FilterCommands(), G4AdjointSimMessenger::G4AdjointSimMessenger(), G4EmParametersMessenger::G4EmParametersMessenger(), G4GeneralParticleSourceMessenger::G4GeneralParticleSourceMessenger(), G4GMocrenMessenger::G4GMocrenMessenger(), G4InteractorMessenger::G4InteractorMessenger(), G4LocalThreadCoutMessenger::G4LocalThreadCoutMessenger(), G4MatScanMessenger::G4MatScanMessenger(), G4MonopolePhysicsMessenger::G4MonopolePhysicsMessenger(), G4OpticalPhysicsMessenger::G4OpticalPhysicsMessenger(), 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(), G4VisCommandSceneAddArrow::G4VisCommandSceneAddArrow(), G4VisCommandSceneAddAxes::G4VisCommandSceneAddAxes(), G4VisCommandSceneAddLine::G4VisCommandSceneAddLine(), G4VisCommandSceneAddLogo::G4VisCommandSceneAddLogo(), G4VisCommandSceneAddScale::G4VisCommandSceneAddScale(), G4VisCommandSceneAddText::G4VisCommandSceneAddText(), G4VisCommandSceneAddText2D::G4VisCommandSceneAddText2D(), G4VisCommandSetColour::G4VisCommandSetColour(), G4VisCommandSetTextColour::G4VisCommandSetTextColour(), G4VisCommandSpecify::G4VisCommandSpecify(), G4VisCommandsTouchableSet::G4VisCommandsTouchableSet(), G4VisCommandsViewerSet::G4VisCommandsViewerSet(), G4VisCommandViewerCreate::G4VisCommandViewerCreate(), HistoMessenger::HistoMessenger(), G4ScoreQuantityMessenger::QuantityCommands(), G4UIcmdWithADoubleAndUnit::SetDefaultUnit(), G4UIcmdWith3VectorAndUnit::SetDefaultUnit(), G4UIcmdWithADouble::SetDefaultValue(), G4UIcmdWithAnInteger::SetDefaultValue(), G4UIcmdWithAString::SetDefaultValue(), G4UIcmdWith3Vector::SetDefaultValue(), G4UIcmdWithABool::SetDefaultValue(), G4GenericMessenger::Command::SetDefaultValue(), G4UIcmdWithADoubleAndUnit::SetDefaultValue(), G4UIcmdWith3VectorAndUnit::SetDefaultValue(), and G4UIcmdWithNucleusLimits::SetDefaultValue().

void G4UIparameter::SetDefaultValue ( G4int  theDefaultValue)

Definition at line 118 of file G4UIparameter.cc.

References defaultValue.

void G4UIparameter::SetDefaultValue ( G4double  theDefaultValue)

Definition at line 125 of file G4UIparameter.cc.

References defaultValue.

void G4UIparameter::SetGuidance ( const char *  theGuidance)
inline

Definition at line 138 of file G4UIparameter.hh.

Referenced by CexmcScenePrimitivesMessenger::CexmcScenePrimitivesMessenger(), G4MonopolePhysicsMessenger::G4MonopolePhysicsMessenger(), G4OpticalPhysicsMessenger::G4OpticalPhysicsMessenger(), G4RadioactiveDecaymessenger::G4RadioactiveDecaymessenger(), G4VisCommandGeometrySetColour::G4VisCommandGeometrySetColour(), G4VisCommandGeometrySetDaughtersInvisible::G4VisCommandGeometrySetDaughtersInvisible(), G4VisCommandGeometrySetForceAuxEdgeVisible::G4VisCommandGeometrySetForceAuxEdgeVisible(), G4VisCommandGeometrySetForceLineSegmentsPerCircle::G4VisCommandGeometrySetForceLineSegmentsPerCircle(), G4VisCommandGeometrySetForceSolid::G4VisCommandGeometrySetForceSolid(), G4VisCommandGeometrySetForceWireframe::G4VisCommandGeometrySetForceWireframe(), G4VisCommandGeometrySetLineStyle::G4VisCommandGeometrySetLineStyle(), G4VisCommandGeometrySetLineWidth::G4VisCommandGeometrySetLineWidth(), G4VisCommandGeometrySetVisibility::G4VisCommandGeometrySetVisibility(), G4VisCommandOpen::G4VisCommandOpen(), G4VisCommandSceneAddLogo::G4VisCommandSceneAddLogo(), G4VisCommandSceneAddScale::G4VisCommandSceneAddScale(), G4VisCommandSceneAddText::G4VisCommandSceneAddText(), G4VisCommandSceneAddText2D::G4VisCommandSceneAddText2D(), G4VisCommandSetColour::G4VisCommandSetColour(), G4VisCommandSetTextColour::G4VisCommandSetTextColour(), G4VisCommandSetTouchable::G4VisCommandSetTouchable(), G4VisCommandsViewerSet::G4VisCommandsViewerSet(), G4VisCommandViewerCreate::G4VisCommandViewerCreate(), HistoMessenger::HistoMessenger(), RMC01AnalysisManagerMessenger::RMC01AnalysisManagerMessenger(), and TrackingMessenger::TrackingMessenger().

+ Here is the caller graph for this function:

void G4UIparameter::SetWidget ( G4int  theWidget)
inline

Definition at line 134 of file G4UIparameter.hh.

G4String G4UIparameter::TokenToStr ( G4int  token)
private
G4int G4UIparameter::TypeCheck ( const char *  newValue)
private

Definition at line 191 of file G4UIparameter.cc.

References G4String::data(), G4cerr, G4endl, IsDouble(), IsInt(), parameterType, and G4String::toUpper().

Referenced by CheckNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

yystype G4UIparameter::UnaryExpression ( void  )
private

Definition at line 485 of file G4UIparameter.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:

+ Here is the caller graph for this function:

tokenNum G4UIparameter::Yylex ( void  )
private

Definition at line 667 of file G4UIparameter.cc.

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

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4int G4UIparameter::bp
private

Definition at line 173 of file G4UIparameter.hh.

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

G4bool G4UIparameter::currentAsDefaultFlag
private

Definition at line 79 of file G4UIparameter.hh.

Referenced by G4UIparameter(), GetCurrentAsDefault(), and List().

G4String G4UIparameter::defaultValue
private

Definition at line 74 of file G4UIparameter.hh.

Referenced by G4UIparameter(), GetDefaultValue(), List(), and SetDefaultValue().

yystype G4UIparameter::newVal
private

Definition at line 176 of file G4UIparameter.hh.

Referenced by Eval2(), and RangeCheck().

G4bool G4UIparameter::omittable
private

Definition at line 78 of file G4UIparameter.hh.

Referenced by G4UIparameter(), IsOmittable(), and List().

G4String G4UIparameter::parameterCandidate
private
G4String G4UIparameter::parameterGuidance
private

Definition at line 73 of file G4UIparameter.hh.

Referenced by G4UIparameter(), GetParameterGuidance(), and List().

G4String G4UIparameter::parameterName
private

Definition at line 72 of file G4UIparameter.hh.

Referenced by Eval2(), G4UIparameter(), GetParameterName(), List(), and Yylex().

G4String G4UIparameter::parameterRange
private
char G4UIparameter::parameterType
private

Definition at line 77 of file G4UIparameter.hh.

Referenced by Eval2(), G4UIparameter(), GetParameterType(), List(), RangeCheck(), and TypeCheck().

G4String G4UIparameter::rangeBuf
private

Definition at line 172 of file G4UIparameter.hh.

G4int G4UIparameter::widget
private

Definition at line 80 of file G4UIparameter.hh.

Referenced by G4UIparameter().

yystype G4UIparameter::yylval
private

Definition at line 175 of file G4UIparameter.hh.

Referenced by PrimaryExpression(), and Yylex().


The documentation for this class was generated from the following files: