00001 #ifndef SCTDATA_IO_TESTRESULTSTREAMER_H 00002 #define SCTDATA_IO_TESTRESULTSTREAMER_H 00003 00004 #include "Sct/Streamer.h" 00005 #include "Sct/LogicErrors.h" 00006 #include "Sct/IoExceptions.h" 00007 00008 using namespace Sct; 00009 00010 namespace SctData { 00011 namespace IO { 00012 00022 class TestResultStreamer_v1 : public virtual Streamer { 00023 public: 00024 virtual unsigned getVersion() const throw() {return s_version;} 00025 protected: 00026 TestResultStreamer_v1() throw(); 00027 //Streamer_v1 overrides 00028 virtual void write(OStream& out, const Streamable& ob, const IOManager& manager) const throw(LogicError, IoError); 00029 virtual void read(IStream& in, Streamable& ob, const IOManager& manager) const throw(LogicError, IoError); 00030 virtual shared_ptr<Streamable> read(IStream&, const IOManager&) const throw(LogicError, IoError); 00031 static unsigned s_version; 00032 static bool inMap; 00033 00034 }; 00035 00036 00037 } 00038 } 00039 #endif // #ifndef SCTDATA_IO_TESTRESULTSTREAMER_H