31#include <boost/python.hpp>
34using namespace boost::python;
41 return ostr << astr.c_str();
49 class_<G4String>(
"G4String",
"string class")
50 .def(init<const G4String&>())
51 .def(init<const char*>())
52 .def(self_ns::str(self))
55 .def(self += other<const char*>())
57 .def(self == other<const char*>())
59 .def(self != other<const char*>())
62 implicitly_convertible<G4String, const char*>();
63 implicitly_convertible<const char* ,G4String>();
65 implicitly_convertible<G4String, std::string>();
66 implicitly_convertible<std::string ,G4String>();
std::ostream & operator<<(std::ostream &, const BasicVector3D< float > &)