Files
geant4/source/analysis/g4tools/include/tools/nostream
T
2016-06-10 14:11:04 +02:00

35 lines
682 B
Plaintext

// Copyright (C) 2010, Guy Barrand. All rights reserved.
// See the file tools.license for terms.
#ifndef tools_nostream
#define tools_nostream
// dummy ostream class in case we need
// to pass a std::ostream as argument
// but having no concrete implementation
// at hand.
#include <ostream>
namespace tools {
class nostream : public std::ostream {
public:
nostream()
:std::ostream(0)
{}
virtual ~nostream(){}
private:
nostream(const nostream&)
:std::basic_ios<char, std::char_traits<char> >()
#ifdef TOOLS_STL
,std::basic_streambuf<char, std::char_traits<char> >()
#endif
,std::ostream(0){}
nostream& operator=(const nostream&){return *this;}
};
}
#endif