Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

 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(), 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().

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 }
G4bool IsAvailable()
Definition: G4UIcommand.cc:275
const G4String & GetRange() const
Definition: G4UIcommand.hh:133
list f_GetStateList(G4UIcommand *acommand)
const G4String GetTitle() const
Definition: G4UIcommand.hh:170
const G4String & GetGuidanceLine(G4int i) const
Definition: G4UIcommand.hh:137
G4UIparameter * GetParameter(G4int i) const
Definition: G4UIcommand.hh:145
const G4String & GetCommandPath() const
Definition: G4UIcommand.hh:139
const G4String & GetCommandName() const
Definition: G4UIcommand.hh:141
virtual void List()
Definition: G4UIcommand.cc:334
G4int GetGuidanceEntries() const
Definition: G4UIcommand.hh:135
G4int GetParameterEntries() const
Definition: G4UIcommand.hh:143
G4String GetCurrentValue()
Definition: G4UIcommand.cc:220