18 auto& attributeList =
m_iter->second.get_child(
"attributes");
37 auto& attributeList =
m_data->front().second.get_child(
"attributes");
42 auto& attributeList =
m_data->back().second.get_child(
"attributes");
48 std::stringstream sout;
51 boost::property_tree::read_json(sout,
m_root);
52 }
catch (boost::property_tree::json_parser_error
const& ex) {
72 std::stringstream varList;
74 varList <<
"&fields=";
83 m_url = baseUrl +
"/" +
function;
97 std::stringstream pageLimit;
103 pageLimit <<
"page[limit]=" <<
value;
113 m_result = std::make_unique<OMSServiceResult>();
130 return std::make_unique<OMSServiceQuery>(
m_baseUrl,
function);
persistency::Exception Exception
OMSServiceQuery & addOutputVars(const std::initializer_list< const char *> &varNames)
OMSServiceResultRef()=delete
boost::property_tree::ptree * m_data
std::string getAttribute(const std::string &attributeName)
OMSServiceQuery & addOutputVar(const std::string &varName)
OMSServiceResultRef operator*()
std::unique_ptr< OMSServiceQuery > query(const std::string &function) const
ret
prodAgent to be discontinued
OMSServiceResultRef front() const
constexpr char const * varNames[]
OMSServiceResultRef back() 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 end() const
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)
OMSServiceResultIterator begin() const
boost::property_tree::ptree m_root
OMSServiceQuery & limit(int value)