CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 <boost/shared_ptr.hpp>
#include "CondFormats/Serialization/interface/Archive.h"

Go to the source code of this file.

Classes

class  cond::RootInputArchive
 
class  cond::RootOutputArchive
 

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<typename T >
boost::shared_ptr< Tcond::default_deserialize (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData, bool unpackingOnly)
 
template<typename T >
boost::shared_ptr< Tcond::deserialize (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData, bool unpackingOnly=false)
 
template<typename T >
std::pair< Binary, Binary > cond::serialize (const T &payload, bool packingOnly=false)
 

Macro Definition Documentation

#define DESERIALIZE_BASE_CASE (   BASETYPENAME)
Value:
if( payloadType == #BASETYPENAME ){ \
return default_deserialize<BASETYPENAME>( payloadType, payloadData, streamerInfoData, unpackingOnly ); \
}
return((rh^lh)&mask)

Definition at line 145 of file Serialization.h.

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

#define DESERIALIZE_POLIMORPHIC_CASE (   BASETYPENAME,
  DERIVEDTYPENAME 
)
Value:
if( payloadType == #DERIVEDTYPENAME ){ \
return boost::dynamic_pointer_cast<BASETYPENAME>( default_deserialize<DERIVEDTYPENAME>( payloadType, payloadData, streamerInfoData, unpackingOnly ) ); \
}
return((rh^lh)&mask)

Definition at line 150 of file Serialization.h.

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