CMS 3D CMS Logo

Classes | Namespaces | Macros | Typedefs | Functions
Serialization.h File Reference
#include "CondCore/CondDB/interface/Binary.h"
#include "CondCore/CondDB/interface/Exception.h"
#include "CondCore/CondDB/interface/Utils.h"
#include <sstream>
#include <iostream>
#include <memory>
#include "CondFormats/Serialization/interface/Archive.h"

Go to the source code of this file.

Classes

class  cond::StreamerInfo
 

Namespaces

 cond
 

Macros

#define DESERIALIZE_BASE_CASE(BASETYPENAME)
 
#define DESERIALIZE_POLIMORPHIC_CASE(BASETYPENAME, DERIVEDTYPENAME)
 

Typedefs

typedef cond::serialization::InputArchive cond::CondInputArchive
 
typedef cond::serialization::OutputArchive cond::CondOutputArchive
 

Functions

template<typename T >
Tcond::createPayload (const std::string &payloadTypeName)
 
template<>
std::string * cond::createPayload< std::string > (const std::string &payloadTypeName)
 
template<typename T >
std::shared_ptr< Tcond::default_deserialize (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData)
 
template<typename T >
std::shared_ptr< Tcond::deserialize (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData)
 
template<typename T >
std::pair< Binary, Binary > cond::serialize (const T &payload)
 

Macro Definition Documentation

#define DESERIALIZE_BASE_CASE (   BASETYPENAME)
Value:
if( payloadType == #BASETYPENAME ){ \
return default_deserialize<BASETYPENAME>( payloadType, payloadData, streamerInfoData ); \
}

Definition at line 121 of file Serialization.h.

Referenced by cond::deserialize< BaseKeyed >().

#define DESERIALIZE_POLIMORPHIC_CASE (   BASETYPENAME,
  DERIVEDTYPENAME 
)
Value:
if( payloadType == #DERIVEDTYPENAME ){ \
return std::dynamic_pointer_cast<BASETYPENAME>( default_deserialize<DERIVEDTYPENAME>( payloadType, payloadData, streamerInfoData ) ); \
}

Definition at line 126 of file Serialization.h.

Referenced by cond::deserialize< BaseKeyed >(), cond::deserialize< condex::Efficiency >(), cond::deserialize< CSCReadoutMapping >(), cond::deserialize< CSCReadoutMappingForSliceTest >(), and cond::deserialize< PerformancePayload >().