Warning, /include/Geant4/tools/nostream 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_nostream
0005 #define tools_nostream
0006
0007 // dummy ostream class in case we need
0008 // to pass a std::ostream as argument
0009 // but having no concrete implementation
0010 // at hand.
0011
0012 #include <ostream>
0013
0014 namespace tools {
0015
0016 class nostream : public std::ostream {
0017 public:
0018 nostream()
0019 :std::ostream(0)
0020 {}
0021 virtual ~nostream(){}
0022 private:
0023 nostream(const nostream&)
0024 :std::basic_ios<char, std::char_traits<char> >()
0025 #ifdef TOOLS_STL
0026 ,std::basic_streambuf<char, std::char_traits<char> >()
0027 #endif
0028 ,std::ostream(0){}
0029 nostream& operator=(const nostream&){return *this;}
0030 };
0031
0032 }
0033
0034 #endif