1 #include <Poco/JSON/Object.h>
2 #include <Poco/JSON/Array.h>
3 #include <Poco/JSON/JSON.h>
4 #include <Poco/JSON/Stringifier.h>
5 #include <Poco/JSON/Parser.h>
6 #include <Poco/JSON/JSONException.h>
7 #include <Poco/Dynamic/Var.h>
60 std::string lhsCpy(lhs);
61 std::string rhsCpy(rhs);
62 std::transform(lhsCpy.begin(), lhsCpy.end(), lhsCpy.begin(), tolower);
63 std::transform(rhsCpy.begin(), rhsCpy.end(), rhsCpy.begin(), tolower);
64 return (lhsCpy == rhsCpy);
69 Poco::Timestamp tsStop;
70 Poco::Timestamp::TimeDiff diff = tsStop-tsStart;
71 return static_cast<size_t>(diff/1000);
81 Poco::JSON::Parser parser;
82 Poco::Dynamic::Var res = parser.parse(env);
83 Poco::JSON::Object::Ptr
pObj = res.extract<Poco::JSON::Object::Ptr>();
87 Poco::Dynamic::Var tmp;
88 std::vector<std::string> names;
89 pObj->getNames(names);
90 for (
size_t k=0;k<names.size();++k)
92 tmp = pObj->get(names[k]);
94 environments.push_back(std::make_pair(names[k], tmp.convert<std::string>()));
99 catch(Poco::JSON::JSONException& e)
105 catch(Poco::Exception& e)
124 pTaskRequestSetExecute->
setSessionOptions(std::forward<SessionOptions>(sessionOptions));