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