31#include <boost/python.hpp>
35using namespace boost::python;
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*>())
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>())
std::size_t GetParameterEntries() const
const G4String & GetGuidanceLine(G4int i) const
G4UIparameter * GetParameter(G4int i) const
const G4String GetTitle() const
const G4String & GetCommandPath() const
std::size_t GetGuidanceEntries() const
std::vector< G4ApplicationState > * GetStateList()
const G4String & GetCommandName() const
const G4String & GetRange() const
G4String GetCurrentValue()
list f_GetStateList(G4UIcommand *acommand)
void export_G4UIcommand()