 |
ATLAS Offline Software
|
Go to the documentation of this file.
12 #ifndef TRIGCONFIO_TRIGDBLOADER_H
13 #define TRIGCONFIO_TRIGDBLOADER_H
21 #include "boost/property_tree/ptree_fwd.hpp"
34 class QueryDefinition;
43 TrigDBLoader(
const std::string & loaderName,
const std::string & connection);
96 const std::map<size_t, QueryDefinition> & queries)
const;
100 const std::string & query_type)
const;
104 const std::map<size_t, QueryDefinition> & queries)
const;
size_t schemaVersion(coral::ISessionProxy *session) const
access to TriggerDB schema version
Loader of trigger configurations from the Trigger database.
void loadFromCrest(unsigned int key, boost::property_tree::ptree &pt, const std::string &outFileName, const std::string &description, const std::string &query_type) const
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
Forward iterator to traverse the main components of the trigger configuration.
std::string m_crestTrigDb
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
MSGTC::Level outputLevel() const
MsgStreamTC & msg() const
The standard message stream.
void setCrestTrigDB(const std::string &crestTrigDB)
set trigger db for the crest connection
MSGTC::Level level()
Return message level of stream.
boost::property_tree::ptree ptree
Class to provide easy access to TrigConf::MsgStream for TrigConf classes.
std::string m_crestVersion
std::string getTrigDataCrest(const std::string &type, int key) const
Get trigger configuration from the TriggerDB through Crest.
virtual ~TrigDBLoader()
Destructor - cannot be defined here because QueryDefinition is an incomplete type.
void setLevel(MSGTC::Level lvl)
std::string m_crestServer
Messaging base class for TrigConf code shared with Lvl1 ( AthMessaging)
void setLevel(MSGTC::Level lvl)
Set message level of stream.
std::unique_ptr< coral::ISessionProxy > createDBSession() const
create (if needed) DB session and return the session proxy
std::string description
glabal timer - how long have I taken so far?
QueryDefinition getQueryDefinition(size_t schemaVersion, const std::map< size_t, QueryDefinition > &queries) const
return query for given schemaVersion from possible queries
TrigDBLoader(const std::string &loaderName, const std::string &connection)
Constructor.