Geant4-11
Namespaces | Functions
pyG4UIcommand.cc File Reference
#include <boost/python.hpp>
#include "G4UIcommand.hh"
#include "G4UImessenger.hh"

Go to the source code of this file.

Namespaces

namespace  pyG4UIcommand
 

Functions

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

Function Documentation

◆ export_G4UIcommand()

void export_G4UIcommand ( )

Definition at line 62 of file pyG4UIcommand.cc.

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}
std::size_t GetParameterEntries() const
Definition: G4UIcommand.hh:138
const G4String & GetGuidanceLine(G4int i) const
Definition: G4UIcommand.hh:132
G4UIparameter * GetParameter(G4int i) const
Definition: G4UIcommand.hh:139
const G4String GetTitle() const
Definition: G4UIcommand.hh:165
const G4String & GetCommandPath() const
Definition: G4UIcommand.hh:136
G4bool IsAvailable()
Definition: G4UIcommand.cc:343
std::size_t GetGuidanceEntries() const
Definition: G4UIcommand.hh:128
virtual void List()
Definition: G4UIcommand.cc:410
const G4String & GetCommandName() const
Definition: G4UIcommand.hh:137
const G4String & GetRange() const
Definition: G4UIcommand.hh:127
G4String GetCurrentValue()
Definition: G4UIcommand.cc:282
list f_GetStateList(G4UIcommand *acommand)

References pyG4UIcommand::f_GetStateList(), G4UIcommand::GetCommandName(), G4UIcommand::GetCommandPath(), G4UIcommand::GetCurrentValue(), G4UIcommand::GetGuidanceEntries(), G4UIcommand::GetGuidanceLine(), G4UIcommand::GetParameter(), G4UIcommand::GetParameterEntries(), G4UIcommand::GetRange(), G4UIcommand::GetTitle(), G4UIcommand::IsAvailable(), and G4UIcommand::List().

Referenced by BOOST_PYTHON_MODULE().