14 #ifndef DRCE_DEFAULT_JSON_HPP
15 #define DRCE_DEFAULT_JSON_HPP
28 explicit DRCEDefaultJSON(
unsigned int dataItemsCount=0,
unsigned int filesCount=0);
31 bool makeJSON(
unsigned int dataItemsCount=0,
unsigned int filesCount=0);
39 void setJsonNodeHost(
const std::string& jsonNodeHost_) {jsonNodeHost=jsonNodeHost_;}
42 void setJsonNodeName(
const std::string& jsonNodeName_) {jsonNodeName=jsonNodeName_;}
45 void setJsonNodePort(
const std::string& jsonNodePort_) {jsonNodePort=jsonNodePort_;}
54 const std::string&
getJSON(
void)
const {
return json;}
57 bool isError(
void)
const {
return _isError;}
59 bool fillResultData(
DRCEResultData& resultData,
unsigned int dataItemsCount,
unsigned int filesCount);
63 unsigned int errorCode;
66 std::string jsonErrorMessage;
67 unsigned int jsonErrorCode;
68 std::string jsonNodeHost;
69 std::string jsonNodeName;
70 std::string jsonNodePort;
71 unsigned int jsonState;
72 unsigned int jsonRequestType;
82 #endif // DRCE_DEFAULT_JSON_HPP