1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-23 00:00:01 +01:00
VILLASnode/include/villas/formats/json_reserve.hpp

29 lines
609 B
C++
Raw Normal View History

/* JSON serializtion for RESERVE project.
*
* Author: Steffen Vogel <post@steffenvogel.de>
* SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
2021-05-10 00:12:30 +02:00
#include <villas/formats/json.hpp>
2021-05-10 00:12:30 +02:00
namespace villas {
namespace node {
2021-05-10 00:12:30 +02:00
class JsonReserveFormat : public JsonFormat {
2021-05-10 00:12:30 +02:00
protected:
2021-10-04 11:07:23 +02:00
virtual
int packSample(json_t **j, const struct Sample *smp);
2021-10-04 11:07:23 +02:00
virtual
int unpackSample(json_t *json_smp, struct Sample *smp);
2021-05-10 00:12:30 +02:00
public:
using JsonFormat::JsonFormat;
};
} // namespace node
} // namespace villas