33 #include <boost/python.hpp>
37 using namespace boost::python;
44 class_<G4UnitsTable>(
"G4UnitsTable",
"Units Table")
48 class_<G4UnitsContainer>(
"G4UnitsContainer",
"Units Container")
52 class_<G4UnitDefinition, boost::noncopyable>
53 (
"G4UnitDefinition",
"Unit Definition", no_init)
54 .def(init<const G4String&, const G4String&, const G4String&, G4double>())
57 return_value_policy<return_by_value>())
59 return_value_policy<return_by_value>())
64 .staticmethod(
"BuildUnitsTable")
66 .staticmethod(
"PrintUnitsTable")
68 return_value_policy<reference_existing_object>())
69 .staticmethod(
"GetUnitsTable")
72 .staticmethod(
"GetValueOf")
74 .staticmethod(
"GetCategory")
77 class_<G4UnitsCategory, boost::noncopyable>
78 (
"G4UnitsCategory",
"Units Category", no_init)
79 .def(init<const G4String&>())
82 return_value_policy<return_by_value>())
84 return_value_policy<reference_existing_object>())
92 class_<G4BestUnit>(
"G4BestUnit",
"present best unit", no_init)
93 .def(init<G4double, const G4String&>())
94 .def(init<const G4ThreeVector&, const G4String&>())
97 return_value_policy<return_by_value>())
99 .def(self_ns::str(
self))