Warning, /include/Geant4/tools/sout is written in an unsupported language. File is not indexed.
0001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
0002 // See the file tools.license for terms.
0003
0004 #ifndef tools_sout
0005 #define tools_sout
0006
0007 #include <string>
0008
0009 namespace tools {
0010
0011 class sout : public std::string {
0012 typedef std::string parent;
0013 public:
0014 sout(const std::string& a_value) {
0015 parent::operator+=("\"");
0016 parent::operator+=(a_value);
0017 parent::operator+=("\"");
0018 }
0019 public:
0020 sout(const sout& a_from):parent(a_from){}
0021 sout& operator=(const sout& a_from){parent::operator=(a_from);return *this;}
0022 };
0023
0024 }
0025
0026 #endif