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;
87 std::stringstream pageLimit;
93 pageLimit <<
"page[limit]=" <<
value;
103 m_result = std::make_unique<OMSServiceResult>();
120 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
constexpr char const * varNames[]
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)