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