1#ifndef __HIVE_CPPPLUGIN_H__
2#define __HIVE_CPPPLUGIN_H__
7#define HIVE_SETVALUEFROMJSONSTRING(member,jsonObj,jsonName) do { \
8auto jsonValue = jsonObj.get(jsonName); \
9if(!jsonValue.is<picojson::null>()) \
10member = jsonValue.get<std::string>(); \
13#define HIVE_SETVALUEFROMJSONNUMBER(member,type,jsonObj,jsonName) do { \
14auto jsonValue = jsonObj.get(jsonName); \
15if(!jsonValue.is<picojson::null>()) \
16member = static_cast<type>(jsonValue.get<double>()); \
21std::string to_string(
const long long value);
22std::string to_string(
const int value);
23std::string to_string(
const double value);
26class HIVESDK_DLLEXPORT HiveCppPlugin
30 static picojson::object createParam(std::string className, std::string methodName);
33 static picojson::value callNative(picojson::object jsonParam);
34 static picojson::value callNative(std::string jsonParam);
37 static void callEngine(std::string jsonParamString);