CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Macros | Functions
CondDBImport.cc File Reference
#include "CondCore/CondDB/interface/Serialization.h"
#include "CondFormats/External/interface/DetID.h"
#include "CondFormats/External/interface/EcalDetID.h"
#include "CondFormats/External/interface/SMatrix.h"
#include "CondFormats/External/interface/L1GtLogicParser.h"
#include "CondFormats/External/interface/Timestamp.h"
#include "CondFormats/External/interface/HLTPrescaleTable.h"
#include "CondCore/Utilities/interface/CondDBImport.h"
#include "CondCore/CondDB/interface/Exception.h"
#include "CondFormats.h"
#include <sstream>

Go to the source code of this file.

Namespaces

 cond
 
 cond::persistency
 

Macros

#define FETCH_PAYLOAD_CASE(TYPENAME)
 
#define IGNORE_FOR_IMPORT_CASE(TYPENAME)
 
#define IMPORT_PAYLOAD_CASE(TYPENAME)
 

Functions

std::pair< std::string,
boost::shared_ptr< void > > 
cond::persistency::fetch (const cond::Hash &payloadId, Session &session)
 
std::pair< std::string,
boost::shared_ptr< void > > 
cond::persistency::fetchIfExists (const cond::Hash &payloadId, Session &session, bool &exists)
 
std::pair< std::string,
boost::shared_ptr< void > > 
cond::persistency::fetchOne (const std::string &payloadTypeName, const cond::Binary &data, const cond::Binary &streamerInfo, boost::shared_ptr< void > payloadPtr, bool isOra)
 
cond::Hash cond::persistency::import (Session &source, const cond::Hash &sourcePayloadId, const std::string &inputTypeName, const void *inputPtr, Session &destination)
 

Macro Definition Documentation

#define FETCH_PAYLOAD_CASE (   TYPENAME)
Value:
if( payloadTypeName == #TYPENAME ){ \
auto payload = deserialize<TYPENAME>( payloadTypeName, data, streamerInfo, isOra ); \
payloadPtr = payload; \
match = true; \
}
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:6

Definition at line 19 of file CondDBImport.cc.

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

#define IGNORE_FOR_IMPORT_CASE (   TYPENAME)
Value:
if( inputTypeName == #TYPENAME ){ \
match = true; \
payloadId = 0; \
newInsert = false; \
std::cout <<"WARNING: typename "<<inputTypeName<<" will be skipped in the import."<<std::endl; \
}
tuple cout
Definition: gather_cfg.py:121
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:6

Definition at line 11 of file CondDBImport.cc.

#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() ); \
}
string destination
string const
Definition: compareJSON.py:14
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:6

Definition at line 4 of file CondDBImport.cc.

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