2021-07-19 12:12:26 +02:00
|
|
|
/** JSON serializtion for edgeFlex project.
|
|
|
|
*
|
|
|
|
* @author Manuel Pitz <manuel.pitz@eonerc.rwth-aachen.de>
|
2022-03-15 09:28:57 -04:00
|
|
|
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
|
2022-07-04 18:20:03 +02:00
|
|
|
* @license Apache 2.0
|
2021-07-19 12:12:26 +02:00
|
|
|
*********************************************************************************/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <villas/formats/json.hpp>
|
|
|
|
|
|
|
|
namespace villas {
|
|
|
|
namespace node {
|
|
|
|
|
|
|
|
class JsonEdgeflexFormat : public JsonFormat {
|
|
|
|
|
|
|
|
protected:
|
2021-10-04 11:07:23 +02:00
|
|
|
virtual
|
2021-08-10 10:12:48 -04:00
|
|
|
int packSample(json_t **j, const struct Sample *smp);
|
2021-10-04 11:07:23 +02:00
|
|
|
virtual
|
2021-08-10 10:12:48 -04:00
|
|
|
int unpackSample(json_t *json_smp, struct Sample *smp);
|
2021-07-20 12:23:31 +02:00
|
|
|
|
2021-07-19 12:12:26 +02:00
|
|
|
public:
|
|
|
|
using JsonFormat::JsonFormat;
|
|
|
|
};
|
|
|
|
|
|
|
|
} /* namespace node */
|
|
|
|
} /* namespace villas */
|