inlib  1.2.0
/Users/barrand/private/dev/softinex/old/inexlib-1.2/inlib/inlib/nostream
Go to the documentation of this file.
00001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
00002 // See the file inlib.license for terms.
00003 
00004 #ifndef inlib_nostream
00005 #define inlib_nostream
00006 
00007 // dummy ostream class in case we need
00008 // to pass a std::ostream as argument
00009 // but having no concrete implementation
00010 // at hand.
00011 
00012 #include <ostream>
00013 
00014 namespace inlib {
00015 
00016 class nostream : public std::ostream {
00017 public:
00018   nostream()
00019   :std::ostream(0)
00020   {}
00021   virtual ~nostream(){}
00022 private:
00023   nostream(const nostream&)
00024   :std::basic_ios<char, std::char_traits<char> >()
00025   ,std::ostream(0){}
00026   nostream& operator=(const nostream&){return *this;}
00027 };
00028 
00029 }
00030 
00031 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines