18 auto& attributeList =
m_iter->second.get_child(
"attributes");
38 std::stringstream sout;
41 boost::property_tree::read_json(sout,
m_root);
42 }
catch (boost::property_tree::json_parser_error
const& ex) {
62 std::stringstream varList;
64 varList <<
"&fields=";
73 m_url = baseUrl +
"/" +
function;
81 for (
auto v : varNames)
91 m_result = std::make_unique<OMSServiceResult>();
108 return std::make_unique<OMSServiceQuery>(
m_baseUrl,
function);
persistency::Exception Exception
OMSServiceQuery & addOutputVars(const std::initializer_list< const char * > &varNames)
tuple ret
prodAgent to be discontinued
OMSServiceResultRef()=delete
boost::property_tree::ptree * m_data
std::string getAttribute(const std::string &attributeName)
OMSServiceQuery & addOutputVar(const std::string &varName)
OMSServiceResultRef operator*()
constexpr char const * varNames[]
OMSServiceResultIterator begin() const
bool operator!=(const OMSServiceResultIterator &rhs)
OMSServiceResult & result()
boost::property_tree::ptree::const_iterator m_iter
const boost::property_tree::ptree * m_row
bool operator==(const OMSServiceResultIterator &rhs)
unsigned long httpGet(const std::string &urlString, std::string &info)
OMSServiceResultIterator & operator++()
OMSServiceResultIterator()=delete
void addVar(const std::string &varName)
std::unique_ptr< OMSServiceResult > m_result
char data[epos_bytes_allocation]
size_t parseData(const std::string &data)
void connect(const std::string &baseUrl)
boost::property_tree::ptree m_root
OMSServiceResultIterator end() const
std::unique_ptr< OMSServiceQuery > query(const std::string &function) const