hce-node application
1.4.3
HCE Hierarchical Cluster Engine node application
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
PocoJSONBuilder.cpp
Go to the documentation of this file.
1
#include "
PocoJSONBuilder.hpp
"
2
#include <Poco/JSON/Stringifier.h>
3
4
namespace
HCE {
5
6
namespace
reduce_convertors {
7
8
using namespace
std;
9
using namespace
Poco;
10
11
PocoJSONBuilder::PocoJSONBuilder
() {
12
obj =
new
JSON::Object();
13
}
14
15
PocoJSONBuilder::~PocoJSONBuilder
() {
16
}
17
18
std::string
PocoJSONBuilder::build
()
19
{
20
stringstream ostr;
21
JSON::Stringifier::stringify(obj, ostr);
22
string
json = ostr.str();
23
24
return
json;
25
}
26
27
void
PocoJSONBuilder::add
(
const
std::string &
key
,
const
Poco::Dynamic::Var & value)
28
{
29
obj->set(key, value);
30
}
31
32
}
33
}
sources
utils
reduceHandler
src
PocoJSONBuilder.cpp
Generated on Tue Jun 30 2015 19:42:14 for hce-node application by
1.8.1.2