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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
748 B
C++
Raw Permalink Normal View History

#pragma once
/* Sample value remapping for path source muxing.
*
2022-03-15 09:18:01 -04:00
* Author: Steffen Vogel <post@steffenvogel.de>
2022-03-15 09:28:57 -04:00
* SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
2022-07-04 18:20:03 +02:00
* SPDX-License-Identifier: Apache-2.0
*/
#include <list>
#include <villas/mapping.hpp>
#include <villas/node_list.hpp>
2020-08-17 17:04:55 +02:00
namespace villas {
namespace node {
2020-08-17 17:04:55 +02:00
class MappingList : public std::list<MappingEntry::Ptr> {
2020-08-17 17:04:55 +02:00
public:
int parse(json_t *json);
int prepare(NodeList &nodes);
int remap(struct Sample *remapped, const struct Sample *original) const;
int update(const MappingEntry::Ptr me, struct Sample *remapped,
const struct Sample *original);
};
2020-08-17 17:04:55 +02:00
} // namespace node
} // namespace villas