32 #include <boost/python.hpp>
36 using namespace boost::python;
41 namespace pyG4UIcommand {
47 std::vector<G4ApplicationState>* stateList= acommand->
GetStateList();
49 for(
size_t i=0; i< stateList->size(); i++) {
50 pyStateList.append(&(*stateList)[i]);
58 using namespace pyG4UIcommand;
65 class_<G4UIcommand, G4UIcommand*>
66 (
"G4UIcommand",
"UI command")
67 .def(init<const char*, G4UImessenger*>())
73 return_value_policy<return_by_value>())
76 return_value_policy<return_by_value>())
78 return_value_policy<return_by_value>())
80 return_value_policy<return_by_value>())
83 return_value_policy<reference_existing_object>())
const G4String GetTitle() const
const G4String & GetGuidanceLine(G4int i) const
G4UIparameter * GetParameter(G4int i) const
G4int GetGuidanceEntries() const
const G4String & GetCommandName() const
void export_G4UIcommand()
std::vector< G4ApplicationState > * GetStateList()
const G4String & GetCommandPath() const
list f_GetStateList(G4UIcommand *acommand)
G4int GetParameterEntries() const
G4String GetCurrentValue()
const G4String & GetRange() const