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/lib/api/requests/universal.cpp

23 lines
661 B
C++
Raw Normal View History

/** Universal Data-exchange API request
*
* @file
* @author Steffen Vogel <svogel2@eonerc.rwth-aachen.de>
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC
2022-07-04 18:20:03 +02:00
* @license 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());
}