#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 174 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 71 of file OMSAccess.cc.
References m_varList.
Referenced by addOutputVar(), and addOutputVars().
bool cond::OMSServiceQuery::execute | ( | ) |
Definition at line 108 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 195 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 215 of file OMSAccess.h.
References NEQ, and relativeConstraints::value.
Referenced by filterNotNull().
|
inline |
Definition at line 235 of file OMSAccess.h.
References filterNEQ(), and SNULL.
OMSServiceQuery & cond::OMSServiceQuery::limit | ( | int | value | ) |
Definition at line 96 of file OMSAccess.cc.
References m_filter, m_limit, and relativeConstraints::value.
OMSServiceResult & cond::OMSServiceQuery::result | ( | ) |
Definition at line 122 of file OMSAccess.cc.
References m_result.
unsigned long cond::OMSServiceQuery::status | ( | ) |
std::string cond::OMSServiceQuery::url | ( | ) |
|
static |
Definition at line 178 of file OMSAccess.h.
Referenced by filterEQ().
|
static |
Definition at line 182 of file OMSAccess.h.
Referenced by filterGE().
|
static |
Definition at line 181 of file OMSAccess.h.
Referenced by filterGT().
|
static |
Definition at line 180 of file OMSAccess.h.
Referenced by filterLE().
|
static |
Definition at line 179 of file OMSAccess.h.
Referenced by filterLT().
|
private |
Definition at line 257 of file OMSAccess.h.
|
private |
Definition at line 258 of file OMSAccess.h.
|
private |
Definition at line 260 of file OMSAccess.h.
|
private |
Definition at line 261 of file OMSAccess.h.
|
private |
Definition at line 256 of file OMSAccess.h.
Referenced by OMSServiceQuery(), and url().
|
private |
Definition at line 259 of file OMSAccess.h.
|
static |
Definition at line 177 of file OMSAccess.h.
Referenced by filterNEQ().
|
static |
Definition at line 183 of file OMSAccess.h.
Referenced by filterNotNull().