LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 62 of file pyG4UIcommand.cc.

References pyG4UIcommand::f_GetStateList(), and tca::GetRange().

Referenced by BOOST_PYTHON_MODULE().

63 {
64  class_<G4UIcommand, G4UIcommand*>
65  ("G4UIcommand", "UI command")
66  .def(init<const char*, G4UImessenger*>())
67  // ---
68  .def("GetCurrentValue", &G4UIcommand::GetCurrentValue)
69  .def("IsAvailable", &G4UIcommand::IsAvailable)
70  .def("List", &G4UIcommand::List)
71  .def("GetRange", &G4UIcommand::GetRange,
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>())
83  .def("GetStateList", f_GetStateList)
84  .def("GetTitle", &G4UIcommand::GetTitle)
85  ;
86 }
void GetRange(const PFPStruct &pfp, unsigned short sfIndex, unsigned short &fromPt, unsigned short &npts)
Definition: PFPUtils.cxx:1377
list f_GetStateList(G4UIcommand *acommand)