12#ifndef TRIGCONFIO_TRIGDBLOADER_H
13#define TRIGCONFIO_TRIGDBLOADER_H
21#include "boost/property_tree/ptree_fwd.hpp"
43 TrigDBLoader(
const std::string & loaderName,
const std::string & connection);
96 const std::map<size_t, QueryDefinition> & queries)
const;
98 void loadFromCrest(
unsigned int key, boost::property_tree::ptree & pt,
99 const std::string & outFileName,
const std::string &
description,
100 const std::string & query_type)
const;
102 void loadFromOracle(
unsigned int key, boost::property_tree::ptree & pt,
103 const std::string & outFileName,
const std::string &
description,
104 const std::map<size_t, QueryDefinition> & queries)
const;
Messaging base class for TrigConf code shared with Lvl1 ( AthMessaging)
void setLevel(MSGTC::Level lvl)
Set message level of stream.
MSGTC::Level level()
Return message level of stream.
MsgStreamTC & msg() const
The standard message stream.
TrigConfMessaging(const std::string &name)
Constructor with parameters.
std::unique_ptr< coral::ISessionProxy > createDBSession() const
create (if needed) DB session and return the session proxy
QueryDefinition getQueryDefinition(size_t schemaVersion, const std::map< size_t, QueryDefinition > &queries) const
return query for given schemaVersion from possible queries
std::string getTrigDataCrest(const std::string &type, int key) const
Get trigger configuration from the TriggerDB through Crest.
std::string m_crestVersion
TrigDBLoader(const std::string &loaderName, const std::string &connection)
Constructor.
MSGTC::Level outputLevel() const
std::string m_crestTrigDb
void setLevel(MSGTC::Level lvl)
std::string m_crestServer
void setCrestTrigDB(const std::string &crestTrigDB)
set trigger db for the crest connection
virtual ~TrigDBLoader()
Destructor - cannot be defined here because QueryDefinition is an incomplete type.
void loadFromOracle(unsigned int key, boost::property_tree::ptree &pt, const std::string &outFileName, const std::string &description, const std::map< size_t, QueryDefinition > &queries) const
size_t schemaVersion(coral::ISessionProxy *session) const
access to TriggerDB schema version
void setCrestConnection(const std::string &server, const std::string &version="")
declare CREST as the source of the configuration An empty crest server makes it use Oracle
void loadFromCrest(unsigned int key, boost::property_tree::ptree &pt, const std::string &outFileName, const std::string &description, const std::string &query_type) const
std::string description
glabal timer - how long have I taken so far?
Forward iterator to traverse the main components of the trigger configuration.