33 #include <boost/python.hpp>
34 #include "G4String.hh"
36 using namespace boost::python;
43 return ostr << astr.c_str();
51 class_<G4String>(
"G4String",
"string class")
52 .def(init<const G4String&>())
53 .def(init<const char*>())
54 .def(self_ns::str(
self))
57 .def(
self += other<const char*>())
59 .def(
self == other<const char*>())
61 .def(
self != other<const char*>())
64 implicitly_convertible<G4String, const char*>();
65 implicitly_convertible<const char* ,G4String>();
67 implicitly_convertible<G4String, std::string>();
68 implicitly_convertible<std::string ,G4String>();