Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyG4UImanager Namespace Reference

Functions

G4int ApplyUICommand_1 (const G4String &cmdstr)
 
G4int ApplyUICommand_2 (const std::string &cmdstr)
 

Variables

G4int(G4UImanager::* f1_ApplyCommand )(const char *) = &G4UImanager::ApplyCommand
 
G4int(G4UImanager::* f2_ApplyCommand )(const G4String &)
 

Function Documentation

G4int pyG4UImanager::ApplyUICommand_1 ( const G4String cmdstr)

Definition at line 56 of file pyG4UImanager.cc.

58 {
60  G4int returnVal= UImgr-> ApplyCommand(cmdstr);
61  if( returnVal == fCommandSucceeded ) return returnVal;
62 
63  G4int paramIndex= returnVal % 100;
64  G4int commandStatus= returnVal - paramIndex;
65 
66  switch(commandStatus) {
67  case fCommandSucceeded:
68  break;
69 
70  case fCommandNotFound:
71  G4cout << "command <" << UImgr-> SolveAlias(cmdstr)
72  << "> not found" << G4endl;
73  break;
74 
76  G4cout << "illegal application state -- command refused"
77  << G4endl;
78  break;
79 
81  break;
82 
84  G4cout << "Parameter is out of candidate list (index "
85  << paramIndex << ")"
86  << G4endl;
87  break;
88 
90  G4cout << "Parameter is wrong type and/or is not omittable (index "
91  << paramIndex << ")" << G4endl;
92  break;
93 
94  case fAliasNotFound:
95  break;
96 
97  default:
98  G4cout << "command refused (" << commandStatus << ")" << G4endl;
99  break;
100  }
101 
102  return returnVal;
103 }
int G4int
Definition: G4Types.hh:78
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:59
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

Here is the caller graph for this function:

G4int pyG4UImanager::ApplyUICommand_2 ( const std::string &  cmdstr)

Definition at line 106 of file pyG4UImanager.cc.

108 {
109  return ApplyUICommand_1(cmdstr);
110 }
string cmdstr
Definition: test.py:123
G4int ApplyUICommand_1(const G4String &cmdstr)

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

G4int(G4UImanager::* pyG4UImanager::f1_ApplyCommand)(const char *) = &G4UImanager::ApplyCommand

Definition at line 47 of file pyG4UImanager.cc.

G4int(G4UImanager::* pyG4UImanager::f2_ApplyCommand)(const G4String &)
Initial value:
=
G4int ApplyCommand(const char *aCommand)
Definition: G4UImanager.cc:447

Definition at line 48 of file pyG4UImanager.cc.