hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
PocoJSONExtractor.hpp
Go to the documentation of this file.
1 
14 #ifndef POCOJSONEXTRACTOR_HPP_
15 #define POCOJSONEXTRACTOR_HPP_
16 
17 #include <Poco/JSON/Object.h>
18 
19 namespace HCE
20 {
21 namespace reduce_convertors
22 {
23 
25 public:
26  PocoJSONExtractor(const std::string& json);
27  virtual ~PocoJSONExtractor();
28 
29  int extractAsInt(const std::string& key);
30  std::string extractAsString(const std::string& key);
31 
32 private:
33  Poco::JSON::Object::Ptr obj;
34 
36 };
37 
38 }
39 }
40 
41 #endif