1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00
VILLASnode/lib/api/requests/universal.cpp
Alexandra b39e4a0ace feat: new smu node-type
Signed-off-by: Alexandra <alexandra.bach@eonerc.rwth-aachen.de>
2025-01-14 14:42:39 +00:00

21 lines
634 B
C++

/* Universal Data-exchange API request.
*
* 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
*/
#include <villas/api/requests/universal.hpp>
using namespace villas::node;
using namespace villas::node::api;
using namespace villas::node::api::universal;
void UniversalRequest::prepare() {
NodeRequest::prepare();
api_node = dynamic_cast<APINode *>(node);
if (!api_node)
throw BadRequest("Node {} is not an univeral API node!",
node->getNameShort());
}