34 #include <boost/python.hpp>
38 using namespace boost::python;
43 namespace pyG4UImanager {
59 G4int returnVal= UImgr-> ApplyCommand(cmdstr);
62 G4int paramIndex= returnVal % 100;
63 G4int commandStatus= returnVal - paramIndex;
65 switch(commandStatus) {
70 G4cout <<
"command <" << UImgr-> SolveAlias(cmdstr)
71 <<
"> not found" <<
G4endl;
75 G4cout <<
"illegal application state -- command refused"
83 G4cout <<
"Parameter is out of candidate list (index "
89 G4cout <<
"Parameter is wrong type and/or is not omittable (index "
90 << paramIndex <<
")" <<
G4endl;
97 G4cout <<
"command refused (" << commandStatus <<
")" <<
G4endl;
113 using namespace pyG4UImanager;
120 class_<G4UImanager, boost::noncopyable>
121 (
"G4UImanager",
"UI manager class", no_init)
123 return_value_policy<reference_existing_object>())
124 .staticmethod(
"GetUIpointer")
133 return_value_policy<return_by_value>())
143 return_value_policy<reference_existing_object>())