ChimeraTK-ControlSystemAdapter-OPCUAAdapter 04.00.05
Loading...
Searching...
No Matches
csa_additionalvariable.h
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-2020 Andreas Ebner <Andreas.Ebner@iosb.fraunhofer.de>
20 */
21
22#pragma once
23
24#include "ua_mapped_class.h"
25
26using namespace std;
27
28namespace ChimeraTK {
37 private:
38 string value;
39 string name;
40 string description;
41
46 UA_NodeId ownNodeId{};
47
52 UA_StatusCode mapSelfToNamespace();
53
54 public:
63 ua_additionalvariable(UA_Server* server, UA_NodeId basenodeid, string name, string value, string description);
64
66
67 UA_DateTime getSourceTimeStamp();
68
69 static UA_StatusCode ua_readproxy_ua_additionalvariable_getValue(UA_Server* server, const UA_NodeId* sessionId,
70 void* sessionContext, const UA_NodeId* nodeId, void* nodeContext, UA_Boolean includeSourceTimeStamp,
71 const UA_NumericRange* range, UA_DataValue* value);
72
73 string getValue();
74 };
75} // namespace ChimeraTK
This class represent a additional variable from <variableMap.xml> in the information model of a OPC U...
static UA_StatusCode ua_readproxy_ua_additionalvariable_getValue(UA_Server *server, const UA_NodeId *sessionId, void *sessionContext, const UA_NodeId *nodeId, void *nodeContext, UA_Boolean includeSourceTimeStamp, const UA_NumericRange *range, UA_DataValue *value)
UA_DateTime getSourceTimeStamp()
Get the SourceTimeStamp from node in the OPC UA server Virtual methode which returned Timestamp is se...
This class mapped all inforamtion into the opca server.