Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

NullStream.h

Go to the documentation of this file.
00001 #ifndef ABUSE_NULLSTREAM_H
00002 #define ABUSE_NULLSTREAM_H
00003 #include <abuse/VirtStream.h>
00004 
00005 class NullStream: public VirtStream
00006 {
00007  public:
00008   virtual VirtStream& operator<<(end e){return *this;}
00009   virtual VirtStream& operator<<(const char* c){return *this;}
00010   virtual VirtStream& operator<<(const std::string& s){return *this;}
00011   virtual VirtStream& operator<<(int n){return *this;}
00012   virtual VirtStream& operator<<(double n){return *this;}
00013   virtual VirtStream& operator<<(char c){return *this;}
00014   virtual VirtStream* clone(){return new NullStream();}
00015   virtual VirtStream& endl(){return *this;}
00016 };
00017 
00018 #endif

Generated on Thu Jun 16 00:13:14 2005 for Netlib for Abuse! by  doxygen 1.4.3