#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 & | filterGE (const std::string &varName, const T &value) |
template<typename T > | |
OMSServiceQuery & | filterGT (const std::string &varName, const T &value) |
template<typename T > | |
OMSServiceQuery & | filterLE (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 & | limit (int value) |
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 | GE = "GE" |
static constexpr const char *const | GT = "GT" |
static constexpr const char *const | LE = "LE" |
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::string | m_limit |
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 98 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 186 of file OMSAccess.h.
References fileCollector::cmp, m_filter, m_limit, and cond::impl::to_string().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 206 of file OMSAccess.h.
References NEQ, and relativeConstraints::value.
Referenced by filterNotNull().
|
inline |
Definition at line 226 of file OMSAccess.h.
References filterNEQ(), and SNULL.
OMSServiceQuery & cond::OMSServiceQuery::limit | ( | int | value | ) |
Definition at line 86 of file OMSAccess.cc.
References m_filter, m_limit, and relativeConstraints::value.
OMSServiceResult & cond::OMSServiceQuery::result | ( | ) |
Definition at line 112 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 173 of file OMSAccess.h.
Referenced by filterGE().
|
static |
Definition at line 172 of file OMSAccess.h.
Referenced by filterGT().
|
static |
Definition at line 171 of file OMSAccess.h.
Referenced by filterLE().
|
static |
Definition at line 170 of file OMSAccess.h.
Referenced by filterLT().
|
private |
Definition at line 248 of file OMSAccess.h.
|
private |
Definition at line 249 of file OMSAccess.h.
|
private |
Definition at line 251 of file OMSAccess.h.
|
private |
Definition at line 252 of file OMSAccess.h.
|
private |
Definition at line 247 of file OMSAccess.h.
Referenced by OMSServiceQuery(), and url().
|
private |
Definition at line 250 of file OMSAccess.h.
|
static |
Definition at line 168 of file OMSAccess.h.
Referenced by filterNEQ().
|
static |
Definition at line 174 of file OMSAccess.h.
Referenced by filterNotNull().