ChimeraTK-ControlSystemAdapter-OPCUAAdapter 04.00.05
Loading...
Searching...
No Matches
ua_map_types.cpp
Go to the documentation of this file.
1/*
2 * This file is part of ChimeraTKs ControlSystem-OPC-UA-Adapter.
3 *
4 * ChimeraTKs ControlSystem-OPC-UA-Adapter is free software: you can
5 * redistribute it and/or modify it under the terms of the Lesser GNU
6 * General Public License as published by the Free Software Foundation,
7 * either version 3 of the License, or (at your option) any later version.
8 *
9 * ChimeraTKs ControlSystem-OPC-UA-Adapter is distributed in the hope
10 * that it will be useful, but WITHOUT ANY WARRANTY; without even the
11 * implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 * See the Lesser GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with Foobar. If not, see https://www.gnu.org/licenses/lgpl.html
16 *
17 * Copyright (c) 2016 Chris Iatrou <Chris_Paul.Iatrou@tu-dresden.de>
18 * Copyright (c) 2016 Julian Rahm <Julian.Rahm@tu-dresden.de>
19 * Copyright (c) 2019-2023 Andreas Ebner <Andreas.Ebner@iosb.fraunhofer.de>
20 */
21
22#include "ua_map_types.h"
23
24#include <iostream>
25
26using namespace std;
27
28namespace ChimeraTK {
29 // ToDo move function to remove proxies file
30 UA_StatusCode ua_mapInstantiatedNodes(UA_NodeId objectId, UA_NodeId definitionId, void* handle) {
31 auto* lst = static_cast<nodePairList*>(handle);
32
33 auto* thisNode = new UA_NodeId_pair;
34
35 UA_NodeId_copy(&definitionId, &thisNode->sourceNodeId);
36 UA_NodeId_copy(&objectId, &thisNode->targetNodeId);
37 lst->push_back(std::move(thisNode));
38
39 return UA_STATUSCODE_GOOD;
40 }
41} // namespace ChimeraTK
std::list< UA_NodeId_pair * > nodePairList
UA_StatusCode ua_mapInstantiatedNodes(UA_NodeId objectId, UA_NodeId definitionId, void *handle)
Node function and proxy mapping for new nodes.
struct ChimeraTK::UA_NodeId_pair_t UA_NodeId_pair