Main Page   Modules   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages  

ConfigurationVariableStreamer.cpp

Go to the documentation of this file.
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 }

Generated on Mon Dec 15 19:36:00 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3