CMS 3D CMS Logo

Namespaces | Macros | Functions
CondDBImport.cc File Reference
#include "CondCore/CondDB/interface/Serialization.h"
#include "CondCore/Utilities/interface/CondDBImport.h"
#include "CondCore/CondDB/interface/Exception.h"
#include "CondFormats.h"
#include <memory>
#include <sstream>

Go to the source code of this file.

Namespaces

 cond
 
 cond::persistency
 

Macros

#define IMPORT_PAYLOAD_CASE(TYPENAME)
 

Functions

std::pair< std::string, std::shared_ptr< void > > cond::persistency::fetchIfExists (const cond::Hash &payloadId, Session &session, bool &exists)
 
cond::Hash cond::persistency::import (Session &source, const cond::Hash &sourcePayloadId, const std::string &inputTypeName, const void *inputPtr, Session &destination)
 

Macro Definition Documentation

#define IMPORT_PAYLOAD_CASE (   TYPENAME)
Value:
if( inputTypeName == #TYPENAME ){ \
match = true; \
const TYPENAME& obj = *static_cast<const TYPENAME*>( inputPtr ); \
payloadId = destination.storePayload( obj, boost::posix_time::microsec_clock::universal_time() ); \
}

Definition at line 4 of file CondDBImport.cc.

Referenced by cond::persistency::import().