2023-09-04 12:21:37 +02:00
|
|
|
/* Universal Data-exchange API request.
|
2022-03-28 18:06:47 +02:00
|
|
|
*
|
|
|
|
* Author: Steffen Vogel <post@steffenvogel.de>
|
|
|
|
* 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
|
2022-03-28 18:06:47 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <villas/api/requests/universal.hpp>
|
|
|
|
|
|
|
|
using namespace villas::node;
|
|
|
|
using namespace villas::node::api;
|
2022-12-14 17:39:50 +01:00
|
|
|
using namespace villas::node::api::universal;
|
2022-03-28 18:06:47 +02:00
|
|
|
|
2023-09-07 11:46:39 +02:00
|
|
|
void UniversalRequest::prepare() {
|
|
|
|
NodeRequest::prepare();
|
2022-03-28 18:06:47 +02:00
|
|
|
|
2023-09-07 11:46:39 +02:00
|
|
|
api_node = dynamic_cast<APINode *>(node);
|
|
|
|
if (!api_node)
|
|
|
|
throw BadRequest("Node {} is not an univeral API node!",
|
|
|
|
node->getNameShort());
|
2022-03-28 18:06:47 +02:00
|
|
|
}
|