36 #include <boost/python.hpp>
40 using namespace boost::python;
45 namespace pyG4UImanager {
61 G4int returnVal= UImgr-> ApplyCommand(cmdstr);
64 G4int paramIndex= returnVal % 100;
65 G4int commandStatus= returnVal - paramIndex;
67 switch(commandStatus) {
72 G4cout <<
"command <" << UImgr-> SolveAlias(cmdstr)
73 <<
"> not found" <<
G4endl;
77 G4cout <<
"illegal application state -- command refused"
85 G4cout <<
"Parameter is out of candidate list (index "
91 G4cout <<
"Parameter is wrong type and/or is not omittable (index "
92 << paramIndex <<
")" <<
G4endl;
99 G4cout <<
"command refused (" << commandStatus <<
")" <<
G4endl;
115 using namespace pyG4UImanager;
122 class_<G4UImanager, boost::noncopyable>
123 (
"G4UImanager",
"UI manager class", no_init)
125 return_value_policy<reference_existing_object>())
126 .staticmethod(
"GetUIpointer")
135 return_value_policy<return_by_value>())
145 return_value_policy<reference_existing_object>())