HCE project C++ developers source code library
1.1.1
HCE project developer library
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
reduceHandler
src
PocoJSONBuilder.cpp
Generated on Mon Jan 13 2014 13:08:37 for HCE project C++ developers source code library by
1.8.1.2