Serveur OPCUA générique
 Tout Classes Espaces de nommage Fichiers Fonctions Variables Définitions de type Macros
cta_ua_controlunit.h
Aller à la documentation de ce fichier.
1 #ifndef __CTAUACONTROLUNIT_H__
2 #define __CTAUACONTROLUNIT_H__
3 
4 #include "uabasenodes.h"
5 #include "uathread.h"
6 #include "servermanager.h"
7 #include "string"
8 #include <vector>
9 #include <list>
10 
11 #include "../uaclient/uasession.h"
12 #include "cta_ua_nodemanager.h"
13 
14 class CallbackControlUnit: public UaClientSdk::UaSessionCallback,
15  public UaClientSdk::UaSubscriptionCallback {
16 public:
17  std::vector<int> tabControlUnit;
18  std::string m_full;
20 
22  virtual ~CallbackControlUnit();
23  void tabreSize(int nb);
24  void setElement(std::string full);
25  virtual void connectionStatusChanged(OpcUa_UInt32 clientConnectionId,
26  UaClientSdk::UaClient::ServerStatus serverStatus);
27  virtual void dataChange(OpcUa_UInt32 clientSubscriptionHandle,
28  const UaDataNotifications& dataNotifications,
29  const UaDiagnosticInfos& /*diagnosticInfos*/);
30  virtual void subscriptionStatusChanged(
31  OpcUa_UInt32 /*clientSubscriptionHandle*/,
32  const UaStatus& /*status*/);
33  virtual void newEvents(OpcUa_UInt32 clientSubscriptionHandle,
34  UaEventFieldLists& eventFieldList);
35 };
36 #endif
37