Import Geant4 11.0.0.beta source tree
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
// Copyright (C) 2010, Guy Barrand. All rights reserved.
|
||||
// See the file tools.license for terms.
|
||||
|
||||
#ifndef tools_sout
|
||||
#define tools_sout
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace tools {
|
||||
|
||||
/*
|
||||
inline std::string sout(const std::string& a_string) {
|
||||
return "\""+a_string+"\"";
|
||||
}
|
||||
*/
|
||||
|
||||
class sout : public std::string {
|
||||
typedef std::string parent;
|
||||
public:
|
||||
sout(const std::string& a_value) {
|
||||
parent::operator+=("\"");
|
||||
parent::operator+=(a_value);
|
||||
parent::operator+=("\"");
|
||||
}
|
||||
public:
|
||||
sout(const sout& a_from):parent(a_from){}
|
||||
sout& operator=(const sout& a_from){parent::operator=(a_from);return *this;}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user