Parse/encode JSON message holding PrfOsJson.
More...
#include <JsonSerializer.h>
|
| PrfOsJson (const rapidjson::Value &val) |
| parametric constructor More...
|
|
virtual | ~PrfOsJson () |
|
std::string | encodeResponse (const std::string &errStr) override |
| DpaTask overriden method. More...
|
|
int | parseBinary (uint8_t *to, const std::string &from, int maxlen) |
| Parse binary data encoded hexa. More...
|
|
template<typename T > |
void | parseHexaNum (T &to, const std::string &from) |
| Parse templated ordinary type T encoded hexa. More...
|
|
void | encodeHexaNum (std::string &to, uint8_t from) |
| Encode uint_8 to hexa string. More...
|
|
void | encodeHexaNum (std::string &to, uint16_t from) |
| Encode uint_16 to hexa string. More...
|
|
void | encodeBinary (std::string &to, const uint8_t *from, int len) |
| Encode binary data to hexa string. More...
|
|
void | encodeTimestamp (std::string &to, std::chrono::time_point< std::chrono::system_clock > from) |
| Encode timestamp. More...
|
|
Parse/encode JSON message holding PrfOsJson.
Class to be passed to parser as creator of PrfOsJson object from incoming JSON. It will be probably reimplemented. See: https://github.com/iqrfsdk/iqrf-daemon/wiki/JsonStructureDpa-v1#predefined-embedded-perifery-types
◆ PrfOsJson()
PrfOsJson::PrfOsJson |
( |
const rapidjson::Value & |
val | ) |
|
|
explicit |
parametric constructor
- Parameters
-
◆ ~PrfOsJson()
virtual PrfOsJson::~PrfOsJson |
( |
| ) |
|
|
inlinevirtual |
◆ encodeResponse()
std::string PrfOsJson::encodeResponse |
( |
const std::string & |
errStr | ) |
|
|
override |
DpaTask overriden method.
- Parameters
-
[in] | errStr | result of DpaTask handling in IQRF mesh to be stored in message |
- Returns
- encoded message
The documentation for this class was generated from the following files: