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