CMS 3D CMS Logo

PerformanceRecordPlugin.cc
Go to the documentation of this file.
2 
6 
9 
13 
15 
16 namespace cond {
17  template <> std::unique_ptr<PerformancePayload> deserialize<PerformancePayload>( const std::string& payloadType,
18  const Binary& payloadData,
19  const Binary& streamerInfoData ){
20  // DESERIALIZE_BASE_CASE( PerformancePayload ); abstract
24  // here we come if none of the deserializations above match the payload type:
25  throwException(std::string("Type mismatch, target object is type \"")+payloadType+"\"",
26  "createPayload" );
27  }
28 }
29 
30 namespace {
31  struct InitPerformancePayload {void operator()(PerformancePayload& e){ e.initialize();}};
32 }
33 
std::unique_ptr< PerformancePayload > deserialize< PerformancePayload >(const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData)
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:21
virtual void initialize()
#define DESERIALIZE_POLIMORPHIC_CASE(BASETYPENAME, DERIVEDTYPENAME)
Definition: plugin.cc:24
#define REGISTER_PLUGIN(record_, type_)
#define REGISTER_PLUGIN_INIT(record_, type_, initializer_)