00001 #ifndef SCTDATA_IO_RESPONSECURVESTREAMER_H 00002 #define SCTDATA_IO_RESPONSECURVESTREAMER_H 00003 00004 #include "Sct/Streamable.h" 00005 #include "Sct/Streamer.h" 00006 #include "Sct/LogicErrors.h" 00007 #include "Sct/IoExceptions.h" 00008 00009 using namespace Sct; 00010 00011 namespace SctData { 00012 namespace IO { 00013 00014 class ResponseCurveStreamer_v1 : public virtual Streamer { 00015 public: 00016 //Streamer_v1 overrides 00017 virtual void write(OStream& out, const Streamable& ob, const IOManager& manager) const throw(LogicError, IoError); 00018 virtual shared_ptr<Streamable> read(IStream& in, const IOManager& manager) const throw(LogicError, IoError); 00019 virtual void read(IStream& in, Streamable& ob, const IOManager& manager) const throw(LogicError, IoError); 00020 virtual unsigned getVersion() const throw() {return s_version;} 00021 00022 private: 00023 ResponseCurveStreamer_v1() throw(); 00024 static unsigned s_version; 00025 static bool inMap; 00026 }; 00027 } 00028 } 00029 #endif //#ifndef SCTDATA_IO_RESPONSECURVESTREAMER_H