00001 #include "ConfigurationVariableStreamer_v1.h"
00002 #include "../ConfigurationVariable.h"
00003
00004
00005 namespace SctData {
00006 namespace IO {
00007
00008
00009 unsigned ConfigurationVariableStreamer_v1::s_version=1;
00010
00011 bool ConfigurationVariableStreamer_v1::inMap = IOManager::addToMap("SctData::ConfigurationVariable", std::auto_ptr<Streamer>(new ConfigurationVariableStreamer_v1()));
00012 ConfigurationVariableStreamer_v1::ConfigurationVariableStreamer_v1() throw() {}
00013
00014 void ConfigurationVariableStreamer_v1::write(OStream& out, const Streamable& ob, const IOManager& manager) const throw(LogicError, IoError) {
00015 const ConfigurationVariable& var = dynamic_cast<const ConfigurationVariable&>(ob);
00016 out << ConfigurationVariableIOHelper::getTypeRep(var);
00017 }
00018
00019 shared_ptr<Streamable> ConfigurationVariableStreamer_v1::read(IStream& in, const IOManager& manager) const throw(LogicError, IoError) {
00020 unsigned short rep = 0;
00021 in >> rep;
00022 return ConfigurationVariableIOHelper::getFromTypeRep(rep);
00023 }
00024
00025 void ConfigurationVariableStreamer_v1::read(IStream& in, Streamable& ob, const IOManager& manager) const throw(LogicError, IoError) {
00027 }
00028
00029 }
00030 }