Files
geant4/source/externals/g4tools/include/tools/sout
T
2025-12-05 08:54:02 +01:00

27 lines
527 B
Plaintext

// 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 {
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