33 #include <boost/python.hpp>
37 using namespace boost::python;
42 namespace pyG4UIcommand {
48 std::vector<G4ApplicationState>* stateList= acommand->
GetStateList();
50 for(
G4int i=0; i< stateList->size(); i++) {
51 pyStateList.append(&(*stateList)[i]);
59 using namespace pyG4UIcommand;
66 class_<G4UIcommand, G4UIcommand*>
67 (
"G4UIcommand",
"UI command")
68 .def(init<const char*, G4UImessenger*>())
74 return_value_policy<return_by_value>())
77 return_value_policy<return_by_value>())
79 return_value_policy<return_by_value>())
81 return_value_policy<return_by_value>())
84 return_value_policy<reference_existing_object>())