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 /*
0012 inline std::string sout(const std::string& a_string) {
0013 return "\""+a_string+"\"";
0014 }
0015 */
0016
0017 class sout : public std::string {
0018 typedef std::string parent;
0019 public:
0020 sout(const std::string& a_value) {
0021 parent::operator+=("\"");
0022 parent::operator+=(a_value);
0023 parent::operator+=("\"");
0024 }
0025 public:
0026 sout(const sout& a_from):parent(a_from){}
0027 sout& operator=(const sout& a_from){parent::operator=(a_from);return *this;}
0028 };
0029
0030 }
0031
0032 #endif