#include <boost/python.hpp>
#include "G4String.hh"
Go to the source code of this file.
Definition at line 48 of file pyG4String.cc.
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 |
|
) |
| |
Definition at line 40 of file pyG4String.cc.
42 return ostr << astr.c_str();