31 #include <boost/python.hpp> 32 #include "G4UIcommand.hh" 33 #include "G4UImessenger.hh" 46 std::vector<G4ApplicationState>* stateList= acommand->GetStateList();
48 for(
size_t i=0; i< stateList->size(); i++) {
49 pyStateList.append(&(*stateList)[i]);
64 class_<G4UIcommand, G4UIcommand*>
65 (
"G4UIcommand",
"UI command")
66 .def(init<const char*, G4UImessenger*>())
68 .def(
"GetCurrentValue", &G4UIcommand::GetCurrentValue)
69 .def(
"IsAvailable", &G4UIcommand::IsAvailable)
70 .def(
"List", &G4UIcommand::List)
72 return_value_policy<return_by_value>())
73 .def(
"GetGuidanceEntries", &G4UIcommand::GetGuidanceEntries)
74 .def(
"GetGuidanceLine", &G4UIcommand::GetGuidanceLine,
75 return_value_policy<return_by_value>())
76 .def(
"GetCommandPath", &G4UIcommand::GetCommandPath,
77 return_value_policy<return_by_value>())
78 .def(
"GetCommandName", &G4UIcommand::GetCommandName,
79 return_value_policy<return_by_value>())
80 .def(
"GetParameterEntries", &G4UIcommand::GetParameterEntries)
81 .def(
"GetParameter", &G4UIcommand::GetParameter,
82 return_value_policy<reference_existing_object>())
84 .def(
"GetTitle", &G4UIcommand::GetTitle)
void export_G4UIcommand()
void GetRange(const PFPStruct &pfp, unsigned short sfIndex, unsigned short &fromPt, unsigned short &npts)
list f_GetStateList(G4UIcommand *acommand)