31 #include <boost/python.hpp>
35 using namespace boost::python;
40 namespace pyG4UIcommand {
46 std::vector<G4ApplicationState>* stateList= acommand->
GetStateList();
48 for(
size_t i=0; i< stateList->size(); i++) {
49 pyStateList.append(&(*stateList)[i]);
57 using namespace pyG4UIcommand;
64 class_<G4UIcommand, G4UIcommand*>
65 (
"G4UIcommand",
"UI command")
66 .def(init<const char*, G4UImessenger*>())
72 return_value_policy<return_by_value>())
75 return_value_policy<return_by_value>())
77 return_value_policy<return_by_value>())
79 return_value_policy<return_by_value>())
82 return_value_policy<reference_existing_object>())