LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
pyG4UIcommand.cc File Reference
#include <boost/python.hpp>
#include "G4UIcommand.hh"
#include "G4UImessenger.hh"

Go to the source code of this file.

Namespaces

 pyG4UIcommand
 

Functions

list pyG4UIcommand::f_GetStateList (G4UIcommand *acommand)
 
void export_G4UIcommand ()
 

Function Documentation

void export_G4UIcommand ( )

Definition at line 63 of file pyG4UIcommand.cc.

References pyG4UIcommand::f_GetStateList().

Referenced by BOOST_PYTHON_MODULE().

64 {
65  class_<G4UIcommand, G4UIcommand*>
66  ("G4UIcommand", "UI command")
67  .def(init<const char*, G4UImessenger*>())
68  // ---
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>())
84  .def("GetStateList", f_GetStateList)
85  .def("GetTitle", &G4UIcommand::GetTitle)
86  ;
87 }
list f_GetStateList(G4UIcommand *acommand)