Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyG4String.cc File Reference
#include <boost/python.hpp>
#include "G4String.hh"
Include dependency graph for pyG4String.cc:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &ostr, const G4String &astr)
 
void export_G4String ()
 

Function Documentation

void export_G4String ( )

Definition at line 48 of file pyG4String.cc.

49 {
50  class_<G4String>("G4String", "string class")
51  .def(init<const G4String&>())
52  .def(init<const char*>())
53  .def(self_ns::str(self))
54  .def(self + self)
55  .def(self += self)
56  .def(self += other<const char*>())
57  .def(self == self)
58  .def(self == other<const char*>())
59  .def(self != self)
60  .def(self != other<const char*>())
61  ;
62 
63  implicitly_convertible<G4String, const char*>();
64  implicitly_convertible<const char* ,G4String>();
65 
66  implicitly_convertible<G4String, std::string>();
67  implicitly_convertible<std::string ,G4String>();
68 }

Here is the caller graph for this function:

std::ostream& operator<< ( std::ostream &  ostr,
const G4String astr 
)

Definition at line 40 of file pyG4String.cc.

41 {
42  return ostr << astr.c_str();
43 }