LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pyG4UImanager.cc File Reference
#include <boost/python.hpp>
#include "G4UImanager.hh"
#include "G4UIcommandTree.hh"

Go to the source code of this file.

Namespaces

 pyG4UImanager
 

Functions

G4int pyG4UImanager::ApplyUICommand_1 (const G4String &cmdstr)
 
G4int pyG4UImanager::ApplyUICommand_2 (const std::string &cmdstr)
 
void export_G4UImanager ()
 

Variables

G4int(G4UImanager::* pyG4UImanager::f1_ApplyCommand )(const char *) = &G4UImanager::ApplyCommand
 
G4int(G4UImanager::* pyG4UImanager::f2_ApplyCommand )(const G4String &)
 

Function Documentation

void export_G4UImanager ( )

Definition at line 118 of file pyG4UImanager.cc.

References pyG4UImanager::ApplyUICommand_1(), pyG4UImanager::ApplyUICommand_2(), pyG4UImanager::f1_ApplyCommand, and pyG4UImanager::f2_ApplyCommand.

Referenced by BOOST_PYTHON_MODULE().

119 {
120  class_<G4UImanager, boost::noncopyable>
121  ("G4UImanager", "UI manager class", no_init)
122  .def("GetUIpointer", &G4UImanager::GetUIpointer,
123  return_value_policy<reference_existing_object>())
124  .staticmethod("GetUIpointer")
125  // ---
126  .def("GetCurrentValues", &G4UImanager::GetCurrentValues)
127  .def("ExecuteMacroFile", &G4UImanager::ExecuteMacroFile)
128  .def("ApplyCommand", f1_ApplyCommand)
129  .def("ApplyCommand", f2_ApplyCommand)
130  .def("CreateHTML", &G4UImanager::CreateHTML, f_CreateHTML())
131  .def("SetMacroSearchPath", &G4UImanager::SetMacroSearchPath)
132  .def("GetMacroSearchPath", &G4UImanager::GetMacroSearchPath,
133  return_value_policy<return_by_value>())
134  // ---
135  .def("SetPauseAtBeginOfEvent", &G4UImanager::SetPauseAtBeginOfEvent)
136  .def("GetPauseAtBeginOfEvent", &G4UImanager::GetPauseAtBeginOfEvent)
137  .def("SetPauseAtEndOfEvent", &G4UImanager::SetPauseAtEndOfEvent)
138  .def("GetPauseAtEndOfEvent", &G4UImanager::GetPauseAtEndOfEvent)
139  .def("SetVerboseLevel", &G4UImanager::SetVerboseLevel)
140  .def("GetVerboseLevel", &G4UImanager::GetVerboseLevel)
141  // ---
142  .def("GetTree", &G4UImanager::GetTree,
143  return_value_policy<reference_existing_object>())
144  ;
145 
146  // ---
147  def("ApplyUICommand", ApplyUICommand_1);
148  def("ApplyUICommand", ApplyUICommand_2);
149 
150 }
G4int ApplyUICommand_1(const G4String &cmdstr)
G4int ApplyUICommand_2(const std::string &cmdstr)
G4int(G4UImanager::* f2_ApplyCommand)(const G4String &)
G4int(G4UImanager::* f1_ApplyCommand)(const char *)