#include <OMSAccess.h>
Public Member Functions | |
OMSServiceQuery & | addOutputVar (const std::string &varName) |
OMSServiceQuery & | addOutputVars (const std::initializer_list< const char *> &varNames) |
bool | execute () |
template<typename T > | |
OMSServiceQuery & | filter (const char *cmp, const std::string &varName, const T &value) |
template<typename T > | |
OMSServiceQuery & | filterEQ (const std::string &varName, const T &value) |
template<typename T > | |
OMSServiceQuery & | filterGT (const std::string &varName, const T &value) |
template<typename T > | |
OMSServiceQuery & | filterLT (const std::string &varName, const T &value) |
template<typename T > | |
OMSServiceQuery & | filterNEQ (const std::string &varName, const T &value) |
OMSServiceQuery & | filterNotNull (const std::string &varName) |
OMSServiceQuery ()=delete | |
OMSServiceQuery (const std::string &baseUrl, const std::string &function) | |
OMSServiceResult & | result () |
unsigned long | status () |
std::string | url () |
Static Public Attributes | |
static constexpr const char *const | EQ = "EQ" |
static constexpr const char *const | GT = "GT" |
static constexpr const char *const | LT = "LT" |
static constexpr const char *const | NEQ = "NEQ" |
static constexpr const char *const | SNULL = "null" |
Private Member Functions | |
void | addVar (const std::string &varName) |
Private Attributes | |
std::string | m_filter |
std::unique_ptr< OMSServiceResult > | m_result |
unsigned long | m_status = 0 |
std::string | m_url |
std::string | m_varList |
Definition at line 165 of file OMSAccess.h.
|
delete |
cond::OMSServiceQuery::OMSServiceQuery | ( | const std::string & | baseUrl, |
const std::string & | function | ||
) |
OMSServiceQuery & cond::OMSServiceQuery::addOutputVar | ( | const std::string & | varName | ) |
OMSServiceQuery & cond::OMSServiceQuery::addOutputVars | ( | const std::initializer_list< const char *> & | varNames | ) |
|
private |
Definition at line 61 of file OMSAccess.cc.
References m_varList.
Referenced by addOutputVar(), and addOutputVars().
bool cond::OMSServiceQuery::execute | ( | ) |
Definition at line 86 of file OMSAccess.cc.
References cond::httpGet(), m_result, m_status, MillePedeFileConverter_cfg::out, runTheMatrix::ret, AlCaHLTBitMon_QueryRunRegistry::string, and url().
|
inline |
Definition at line 184 of file OMSAccess.h.
References fileCollector::cmp, m_filter, and cond::impl::to_string().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 201 of file OMSAccess.h.
References NEQ, and relativeConstraints::value.
Referenced by filterNotNull().
|
inline |
Definition at line 213 of file OMSAccess.h.
References filterNEQ(), and SNULL.
OMSServiceResult & cond::OMSServiceQuery::result | ( | ) |
Definition at line 100 of file OMSAccess.cc.
References m_result.
unsigned long cond::OMSServiceQuery::status | ( | ) |
std::string cond::OMSServiceQuery::url | ( | ) |
|
static |
Definition at line 169 of file OMSAccess.h.
Referenced by filterEQ().
|
static |
Definition at line 171 of file OMSAccess.h.
Referenced by filterGT().
|
static |
Definition at line 170 of file OMSAccess.h.
Referenced by filterLT().
|
private |
Definition at line 232 of file OMSAccess.h.
|
private |
Definition at line 234 of file OMSAccess.h.
|
private |
Definition at line 235 of file OMSAccess.h.
|
private |
Definition at line 231 of file OMSAccess.h.
Referenced by OMSServiceQuery(), and url().
|
private |
Definition at line 233 of file OMSAccess.h.
|
static |
Definition at line 168 of file OMSAccess.h.
Referenced by filterNEQ().
|
static |
Definition at line 172 of file OMSAccess.h.
Referenced by filterNotNull().