32 #include <boost/python.hpp> 33 #include "G4String.hh" 42 return ostr << astr.c_str();
50 class_<G4String>(
"G4String",
"string class")
51 .def(init<const G4String&>())
52 .def(init<const char*>())
53 .def(self_ns::str(
self))
56 .def(
self += other<const char*>())
58 .def(
self == other<const char*>())
60 .def(
self != other<const char*>())
63 implicitly_convertible<G4String, const char*>();
64 implicitly_convertible<const char* ,G4String>();
66 implicitly_convertible<G4String, std::string>();
67 implicitly_convertible<std::string ,G4String>();
std::ostream & operator<<(std::ostream &ostr, const G4String &astr)