Namespaces | |
auth | |
payloadInspector | |
persistency | |
RelationalAuthenticationService | |
serialization | |
service | |
time | |
XMLAuthenticationService | |
Classes | |
struct | AuthorizationData |
class | BaseKeyed |
class | BasicPayload |
class | Binary |
class | BTransitionAnalyzer |
class | CoralServiceFactory |
class | CoralServiceManager |
struct | CredentialData |
class | CredentialStore |
class | CSScopedSession |
class | DataProxyWrapperBase |
struct | DefaultInitializer |
class | EmptyIOVSource |
class | FileReader |
class | GenericSummary |
class | GTEntry_t |
struct | GTMetadata_t |
struct | Iov_t |
class | IOVDescription |
class | IOVKeysDescription |
class | IOVProvenance |
class | IOVUserMetaData |
class | KeyedElement |
struct | LessFrame |
struct | LogDBEntry_t |
struct | PrincipalData |
struct | RealTimeType |
struct | RealTimeType< hash > |
struct | RealTimeType< lumiid > |
struct | RealTimeType< runnumber > |
struct | RealTimeType< timestamp > |
struct | RealTimeType< userid > |
struct | RunInfo_t |
class | SmallWORMDict |
class | StreamerInfo |
class | Summary |
struct | Tag_t |
struct | TagInfo_t |
struct | TagMetadata_t |
struct | TimeTypeSpecs |
struct | TimeTypeTraits |
class | UnregisteredRecordException |
struct | UserLogInfo |
class | Utilities |
class | UtilitiesError |
Typedefs | |
typedef cond::serialization::InputArchive | CondInputArchive |
typedef cond::serialization::OutputArchive | CondOutputArchive |
typedef edmplugin::PluginFactory< coral::Service *(const std::string &) > | CoralServicePluginFactory |
typedef persistency::Exception | Exception |
typedef std::string | Hash |
typedef edmplugin::PluginFactory< cond::DataProxyWrapperBase *() > | ProxyFactory |
typedef TagInfo_t | TagInfo |
typedef unsigned long long | Time_t |
typedef unsigned long long | uint64_t |
typedef std::pair< unsigned int, unsigned int > | UnpackedTime |
typedef std::pair< Time_t, Time_t > | ValidityInterval |
Enumerations | |
enum | SynchronizationType { SYNCH_ANY = 0, SYNCH_VALIDATION, SYNCH_OFFLINE, SYNCH_MC, SYNCH_RUNMC, SYNCH_HLT, SYNCH_EXPRESS, SYNCH_PROMPT, SYNCH_PCL } |
enum | TimeType { invalid =-1, runnumber =0, timestamp, lumiid, hash, userid } |
Functions | |
std::string | classNameForTypeId (const std::type_info &typeInfo) |
template<typename T > | |
T * | createPayload (const std::string &payloadTypeName) |
template<> | |
HcalCalibrationQIEData * | createPayload< HcalCalibrationQIEData > (const std::string &payloadTypeName) |
template<> | |
std::string * | createPayload< std::string > (const std::string &payloadTypeName) |
template<typename T > | |
std::shared_ptr< T > | default_deserialize (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
template<typename T > | |
std::shared_ptr< T > | deserialize (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
template<> | |
std::shared_ptr< BaseKeyed > | deserialize< BaseKeyed > (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
template<> | |
std::shared_ptr< condex::Efficiency > | deserialize< condex::Efficiency > (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
template<> | |
std::shared_ptr< CSCReadoutMapping > | deserialize< CSCReadoutMapping > (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
template<> | |
std::shared_ptr< CSCReadoutMappingForSliceTest > | deserialize< CSCReadoutMappingForSliceTest > (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
template<> | |
std::shared_ptr< PerformancePayload > | deserialize< PerformancePayload > (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
const TimeTypeSpecs & | findSpecs (std::string const &name) |
std::string | getLoginName () |
unsigned long long | hash64 (unsigned char *k, unsigned long long length, unsigned long long level) |
const Time_t | invalidTime (0) |
const std::string | invalidToken (" ") |
Iov_t | makeIov (cond::Time_t since, const Hash &payloadId) |
void | parseLineForNamedParams (const std::string &line, std::map< std::string, std::string > ¶ms) |
const char * | pluginCategory () |
char | randomChar () |
std::string | schemaLabel (const std::string &serviceName, const std::string &userName) |
std::string | schemaLabelForCredentialStore (const std::string &connectionString) |
bool | selectAuthorization (coral::ISchema &schema, int principalId, const std::string &role, const std::string &connectionString, AuthorizationData &destination) |
bool | selectConnection (coral::ISchema &schema, const std::string &connectionLabel, CredentialData &destination) |
bool | selectPrincipal (coral::ISchema &schema, const std::string &principal, PrincipalData &destination) |
template<typename T > | |
std::pair< Binary, Binary > | serialize (const T &payload) |
SynchronizationType | synchronizationTypeFromName (const std::string &name) |
std::string | synchronizationTypeNames (SynchronizationType type) |
void | throwException (const std::string &message, const std::string &methodName) |
const Time_t | TIMELIMIT (std::numeric_limits< Time_t >::max()) |
std::string const & | timeTypeNames (int) |
Variables | |
static constexpr unsigned int | HASH_SIZE = 40 |
static std::pair< const char *, SynchronizationType > | s_obsoleteSynchronizationTypeArray [] |
static std::pair< const char *, SynchronizationType > | s_synchronizationTypeArray [] |
const unsigned int | TIMETYPE_LIST_MAX =5 |
const cond::TimeType | timeTypeList [TIMETYPE_LIST_MAX] |
const TimeTypeSpecs | timeTypeSpecs [] |
const cond::TimeType | timeTypeValues [] |
Serialization.h CondCore/CondDB/interface/Serialization.h Description: functions for serializing the payload objects.
Definition at line 58 of file Serialization.h.
Definition at line 59 of file Serialization.h.
typedef edmplugin::PluginFactory< coral::Service*(const std::string&) > cond::CoralServicePluginFactory |
Definition at line 24 of file CoralServiceFactory.h.
Definition at line 25 of file Exception.h.
typedef std::string cond::Hash |
typedef edmplugin::PluginFactory< cond::DataProxyWrapperBase* () > cond::ProxyFactory |
Definition at line 29 of file ProxyFactory.h.
typedef TagInfo_t cond::TagInfo |
typedef unsigned long long cond::Time_t |
typedef unsigned long long cond::uint64_t |
typedef std::pair<unsigned int, unsigned int> cond::UnpackedTime |
typedef std::pair<Time_t, Time_t> cond::ValidityInterval |
Enumerator | |
---|---|
SYNCH_ANY | |
SYNCH_VALIDATION | |
SYNCH_OFFLINE | |
SYNCH_MC | |
SYNCH_RUNMC | |
SYNCH_HLT | |
SYNCH_EXPRESS | |
SYNCH_PROMPT | |
SYNCH_PCL |
Definition at line 29 of file Types.h.
enum cond::TimeType |
|
inline |
Definition at line 29 of file PoolDBOutputService.h.
References edm::TypeID::className().
T* cond::createPayload | ( | const std::string & | payloadTypeName | ) |
Definition at line 30 of file Serialization.h.
References AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
HcalCalibrationQIEData* cond::createPayload< HcalCalibrationQIEData > | ( | const std::string & | payloadTypeName | ) |
Definition at line 37 of file plugin.cc.
References MillePedeFileConverter_cfg::e, HcalFrontEndMap::initialize(), HcalSiPMCharacteristics::initialize(), HcalElectronicsMap::initialize(), HcalDcsMap::initialize(), AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
|
inline |
Definition at line 38 of file Serialization.h.
References AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
std::shared_ptr<T> cond::default_deserialize | ( | const std::string & | payloadType, |
const Binary & | payloadData, | ||
const Binary & | streamerInfoData | ||
) |
Definition at line 81 of file Serialization.h.
References cond::Binary::data(), MillePedeFileConverter_cfg::e, cppFunctionSkipper::exception, jets_cff::payload, cond::Binary::size(), AlCaHLTBitMon_QueryRunRegistry::string, cond::StreamerInfo::techVersion(), and throwException().
std::shared_ptr<T> cond::deserialize | ( | const std::string & | payloadType, |
const Binary & | payloadData, | ||
const Binary & | streamerInfoData | ||
) |
std::shared_ptr< BaseKeyed > cond::deserialize< BaseKeyed > | ( | const std::string & | payloadType, |
const Binary & | payloadData, | ||
const Binary & | streamerInfoData | ||
) |
Definition at line 39 of file plugin.cc.
References DESERIALIZE_BASE_CASE, DESERIALIZE_POLIMORPHIC_CASE, MillePedeFileConverter_cfg::e, condex::Efficiency::initialize(), AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
std::shared_ptr<condex::Efficiency> cond::deserialize< condex::Efficiency > | ( | const std::string & | payloadType, |
const Binary & | payloadData, | ||
const Binary & | streamerInfoData | ||
) |
Definition at line 25 of file plugin.cc.
References DESERIALIZE_POLIMORPHIC_CASE, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
std::shared_ptr<CSCReadoutMapping> cond::deserialize< CSCReadoutMapping > | ( | const std::string & | payloadType, |
const Binary & | payloadData, | ||
const Binary & | streamerInfoData | ||
) |
Definition at line 65 of file plugin.cc.
References DESERIALIZE_POLIMORPHIC_CASE, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
std::shared_ptr<CSCReadoutMappingForSliceTest> cond::deserialize< CSCReadoutMappingForSliceTest > | ( | const std::string & | payloadType, |
const Binary & | payloadData, | ||
const Binary & | streamerInfoData | ||
) |
Definition at line 73 of file plugin.cc.
References DESERIALIZE_POLIMORPHIC_CASE, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
std::shared_ptr<PerformancePayload> cond::deserialize< PerformancePayload > | ( | const std::string & | payloadType, |
const Binary & | payloadData, | ||
const Binary & | streamerInfoData | ||
) |
Definition at line 17 of file PerformanceRecordPlugin.cc.
References DESERIALIZE_POLIMORPHIC_CASE, MillePedeFileConverter_cfg::e, PerformancePayload::initialize(), AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
const TimeTypeSpecs & cond::findSpecs | ( | std::string const & | name | ) |
Definition at line 33 of file Time.cc.
References Exception, mps_fire::i, and TIMETYPE_LIST_MAX.
Referenced by cond::TimeTypeTraits< type >::specs(), and cond::time::timeTypeFromName().
std::string cond::getLoginName | ( | ) |
Definition at line 42 of file DecodingKey.cc.
References mps_check::msg, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
Referenced by cond::auth::DecodingKey::init().
ub8 cond::hash64 | ( | unsigned char * | k, |
unsigned long long | length, | ||
unsigned long long | level | ||
) |
Definition at line 45 of file hash64.cc.
References a, b, EnergyCorrector::c, hcalDigis_cfi::level, and mix64.
Referenced by cond::KeyedElement::convert().
const Time_t cond::invalidTime | ( | 0 | ) |
Referenced by cond::TimeTypeTraits< type >::specs().
const std::string cond::invalidToken | ( | " " | ) |
Iov_t cond::makeIov | ( | cond::Time_t | since, |
const Hash & | payloadId | ||
) |
Definition at line 20 of file CondDBPyWrappers.cc.
References cond::Iov_t::payloadId, cond::Iov_t::since, and ntuplemaker::since.
Referenced by BOOST_PYTHON_MODULE().
void cond::parseLineForNamedParams | ( | const std::string & | line, |
std::map< std::string, std::string > & | params | ||
) |
Definition at line 58 of file DecodingKey.cc.
References ItemSeparator, harvestTrackValidationPlots::str, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by cond::auth::DecodingKey::createFromInputFile().
const char * cond::pluginCategory | ( | ) |
Definition at line 33 of file ProxyFactory.cc.
char cond::randomChar | ( | ) |
Definition at line 37 of file DecodingKey.cc.
References b64str, and rand().
Referenced by cond::auth::KeyGenerator::make().
std::string cond::schemaLabel | ( | const std::string & | serviceName, |
const std::string & | userName | ||
) |
std::string defaultConnectionString( const std::string& serviceConnectionString, const std::string& serviceName, const std::string& userName ){ size_t pos = serviceConnectionString.find( serviceName ); std::string technologyPrefix = serviceConnectionString.substr(0,pos); std::stringstream connStr; connStr << technologyPrefix; if( !userName.empty() ) connStr <<"/"<< userName; return connStr.str(); }
Definition at line 164 of file CredentialStore.cc.
References serviceName, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by cond::CredentialStore::importForPrincipal(), and schemaLabelForCredentialStore().
std::string cond::schemaLabelForCredentialStore | ( | const std::string & | connectionString | ) |
Definition at line 172 of file CredentialStore.cc.
References createfilelist::parser, schemaLabel(), serviceName, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by cond::CredentialStore::installAdmin(), and cond::CredentialStore::updatePrincipal().
bool cond::selectAuthorization | ( | coral::ISchema & | schema, |
int | principalId, | ||
const std::string & | role, | ||
const std::string & | connectionString, | ||
AuthorizationData & | destination | ||
) |
Definition at line 301 of file CredentialStore.cc.
References AUTH_ID_COL(), AUTH_KEY_COL(), C_ID_COL(), COND_AUTHORIZATION_TABLE(), cond::AuthorizationData::connectionId, runEdmFileComparison::found, cond::AuthorizationData::id, cond::AuthorizationData::key, P_ID_COL(), das::query(), ROLE_COL(), SCHEMA_COL(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by cond::CredentialStore::setPermission().
bool cond::selectConnection | ( | coral::ISchema & | schema, |
const std::string & | connectionLabel, | ||
CredentialData & | destination | ||
) |
Definition at line 257 of file CredentialStore.cc.
References COND_CREDENTIAL_TABLE(), CONNECTION_ID_COL(), CONNECTION_KEY_COL(), CONNECTION_LABEL_COL(), cond::CredentialData::connectionKey, runEdmFileComparison::found, cond::CredentialData::id, cond::CredentialData::password, PASSWORD_COL(), das::query(), AlCaHLTBitMon_QueryRunRegistry::string, cond::CredentialData::userName, USERNAME_COL(), VERIFICATION_KEY_COL(), and cond::CredentialData::verificationKey.
Referenced by cond::CredentialStore::removeConnection(), cond::CredentialStore::setPermission(), cond::CredentialStore::updateConnection(), and cond::CredentialStore::updatePrincipal().
bool cond::selectPrincipal | ( | coral::ISchema & | schema, |
const std::string & | principal, | ||
PrincipalData & | destination | ||
) |
Definition at line 213 of file CredentialStore.cc.
References ADMIN_KEY_COL(), cond::PrincipalData::adminKey, COND_AUTHENTICATION_TABLE(), runEdmFileComparison::found, cond::PrincipalData::id, PRINCIPAL_ID_COL(), PRINCIPAL_KEY_COL(), PRINCIPAL_NAME_COL(), cond::PrincipalData::principalKey, das::query(), AlCaHLTBitMon_QueryRunRegistry::string, VERIFICATION_COL(), and cond::PrincipalData::verifKey.
Referenced by cond::CredentialStore::importForPrincipal(), cond::CredentialStore::installAdmin(), cond::CredentialStore::removePrincipal(), cond::CredentialStore::setPermission(), cond::CredentialStore::startSession(), cond::CredentialStore::unsetPermission(), and cond::CredentialStore::updatePrincipal().
Definition at line 62 of file Serialization.h.
References MillePedeFileConverter_cfg::e, cppFunctionSkipper::exception, cond::StreamerInfo::jsonString(), jets_cff::payload, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
Referenced by cond::persistency::Session::storePayload< std::string >(), cond::persistency::Session::storePayload(), and RawEventFileWriterForBU::writeJsds().
SynchronizationType cond::synchronizationTypeFromName | ( | const std::string & | name | ) |
Definition at line 50 of file Types.cc.
References mps_fire::i, and throwException().
Referenced by cond::persistency::GetFromRow< cond::SynchronizationType >::operator()().
std::string cond::synchronizationTypeNames | ( | SynchronizationType | type | ) |
Definition at line 46 of file Types.cc.
Referenced by cond::persistency::f_add_attribute(), and cond::persistency::IOVEditor::flush().
void cond::throwException | ( | const std::string & | message, |
const std::string & | methodName | ||
) |
Definition at line 21 of file Exception.cc.
References cond::persistency::Exception::Exception().
Referenced by cond::service::PoolDBOutputService::appendSinceTime(), cond::auth::Cipher::b64decrypt(), cond::service::PoolDBOutputService::closeIOV(), cond::auth::DecodingKey::createFromInputFile(), cond::service::PoolDBOutputService::createNewIOV(), createPayload(), createPayload< HcalCalibrationQIEData >(), createPayload< std::string >(), cond::CredentialStore::createSchema(), cond::RelationalAuthenticationService::RelationalAuthenticationService::credentials(), cond::Binary::data(), default_deserialize(), deserialize< BaseKeyed >(), deserialize< condex::Efficiency >(), deserialize< CSCReadoutMapping >(), deserialize< CSCReadoutMappingForSliceTest >(), deserialize< PerformancePayload >(), cond::auth::DecodingKey::flush(), cond::persistency::getConnectionParams(), getLoginName(), cond::CredentialStore::importForPrincipal(), cond::persistency::importPayload(), cond::auth::DecodingKey::init(), cond::service::PoolDBOutputService::initDB(), cond::CredentialStore::installAdmin(), cond::persistency::KeyList::load(), cond::persistency::IOVEditor::load(), cond::service::PoolDBOutputService::lookUpRecord(), cond::CredentialStore::removeConnection(), cond::CredentialStore::removePrincipal(), serialize(), cond::CredentialStore::setPermission(), cond::CredentialStore::setUpForService(), cond::Binary::size(), synchronizationTypeFromName(), cond::CredentialStore::unsetPermission(), and cond::CredentialStore::updatePrincipal().
Referenced by CondDBESSource::setIntervalFor().
std::string const & cond::timeTypeNames | ( | int | i | ) |
Definition at line 15 of file Time.cc.
References mps_fire::i, DTRecHitQuality_cfi::local, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CondDBESSource::setIntervalFor(), and cond::TimeTypeTraits< type >::specs().
|
static |
|
static |
const unsigned int cond::TIMETYPE_LIST_MAX =5 |
Definition at line 22 of file Time.h.
Referenced by findSpecs().
const cond::TimeType cond::timeTypeList |
const TimeTypeSpecs cond::timeTypeSpecs |
Definition at line 22 of file Time.cc.
Referenced by AlignmentProducerBase::AlignmentProducerBase(), MillePedeAlignmentAlgorithm::areIOVsSpecified(), cond::service::PoolDBOutputService::beginOfTime(), MillePedeAlignmentAlgorithm::beginRun(), RunRangeDependentPedeLabeler::buildRunRangeDependencyMap(), cond::service::PoolDBOutputService::endOfTime(), MillePedeAlignmentAlgorithm::initialize(), align::makeNonOverlappingRunRanges(), align::makeUniqueRunRanges(), CondDBESSource::setIntervalFor(), cond::TimeTypeTraits< type >::specs(), cond::service::PoolDBOutputService::Record::timetypestr(), and CreateIdealTkAlRecords::writeToDB().