OpcUaCanOpen
CANopen OPC-UA server
dlcanbus.h
Go to the documentation of this file.
1 // dlcanbus.h
2 
3 #pragma once
4 
5 #include "CCanAccess.h"
6 #include "stdio.h"
7 
8 #include <string>
9 #include <map>
10 
11 #include <iostream>
12 #ifdef WIN32
13 typedef __declspec(dllimport) CCanAccess *create_canObj();
14 #include "Winsock2.h"
15 #else
17 #endif
18 using namespace std;
19 
20 class dlcanbus {
21 public:
22  dlcanbus();
23  ~dlcanbus();
24  create_canObj *maker_CanAccessObj;
25 // CCanAccess *getCanAccess() { return p_canObj; }
26  bool openInterface(char *ncomponect);
27 private:
28  string componentName;
29 #ifdef WIN32
30  HMODULE p_libComponent;
31 #else
32  void *p_libComponent;
33 #endif
34 // CCanAccess *p_canObj;
35  static const unsigned int BUF_SIZE = 1024;
36 
37 };