ChimeraTK-ControlSystemAdapter-OPCUAAdapter  04.00.01
ua_mapped_class.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  */
20 
21 #pragma once
22 
23 extern "C" {
24 #include <open62541/server.h>
25 }
26 
27 #include "ua_map_types.h"
28 
29 namespace ChimeraTK {
34  protected:
36  UA_NodeId baseNodeId{};
37 
38  public:
39  UA_Server* mappedServer;
40 
48  ua_mapped_class(UA_Server* server, UA_NodeId baseNodeId);
49 
52 
54  virtual ~ua_mapped_class();
55 
60  UA_StatusCode ua_mapSelfToNamespace();
61 
66  UA_StatusCode ua_unmapSelfFromNamespace();
67 
73  virtual UA_DateTime getSourceTimeStamp() = 0;
74  };
75 } // namespace ChimeraTK
ChimeraTK::ua_mapped_class::mappedServer
UA_Server * mappedServer
Definition: ua_mapped_class.h:39
ChimeraTK::ua_mapped_class::ua_unmapSelfFromNamespace
UA_StatusCode ua_unmapSelfFromNamespace()
This methode unmapped all nodes.
Definition: ua_mapped_class.cpp:62
ChimeraTK::ua_mapped_class
This class mapped all inforamtion into the opca server.
Definition: ua_mapped_class.h:33
ChimeraTK::ua_mapped_class::baseNodeId
UA_NodeId baseNodeId
Definition: ua_mapped_class.h:36
ChimeraTK::ua_mapped_class::ua_mapSelfToNamespace
UA_StatusCode ua_mapSelfToNamespace()
This methode mapped all own nodes into the opcua server.
Definition: ua_mapped_class.cpp:49
ChimeraTK::ua_mapped_class::ua_mapped_class
ua_mapped_class()
Constructor of the class with parameter.
Definition: ua_mapped_class.cpp:29
ChimeraTK::ua_mapped_class::getSourceTimeStamp
virtual UA_DateTime getSourceTimeStamp()=0
Get the SourceTimeStamp from node in the OPC UA server Virtual methode which returned Timestamp is se...
ChimeraTK::nodePairList
std::list< UA_NodeId_pair * > nodePairList
Definition: ua_map_types.h:42
ChimeraTK::ua_mapped_class::~ua_mapped_class
virtual ~ua_mapped_class()
Destructor of the class.
Definition: ua_mapped_class.cpp:43
ChimeraTK::ua_mapped_class::ownedNodes
nodePairList ownedNodes
Definition: ua_mapped_class.h:35
ua_map_types.h
ChimeraTK
Definition: csa_additionalvariable.h:28