void read(T &t) { try { switch (mProtocol) { case 1: mInProtocol1 >> t; break; case 2: mInProtocol2 >> t; break; case 3: mInProtocol3 >> t; break; case 4: mInProtocol4 >> t; break; #ifdef RCF_USE_BOOST_XML_SERIALIZATION case 5: mInProtocol5 >> boost::serialization::make_nvp("Dummy", t); break; #else case 5: mInProtocol5 >> t; break; #endif default: RCF_ASSERT(0)(mProtocol); } } catch(const RCF::Exception &e) { RCF_UNUSED_VARIABLE(e); throw; } catch(const std::exception &e) { RCF::SerializationException se( _RcfError_Deserialization( typeid(t).name(), typeid(e).name(), e.what())); RCF_THROW(se); } }
void read(T &t) { try { switch (mProtocol) { case 1: mInProtocol1 >> t; break; case 2: mInProtocol2 >> t; break; case 3: mInProtocol3 >> t; break; case 4: mInProtocol4 >> t; break; case 5: mInProtocol5 >> t; break; default: RCF_ASSERT(0)(mProtocol); } } catch(const RCF::Exception &e) { RCF_UNUSED_VARIABLE(e); throw; } catch(const std::exception &e) { RCF::SerializationException se( _RcfError_Deserialization( typeid(t).name(), typeid(e).name(), e.what())); RCF_THROW(se); } }