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 
19 using namespace std;
20 
21 class dlcanbus {
22 public:
23  dlcanbus();
24  ~dlcanbus();
26 
27  bool openInterface(char *ncomponect);
28 private:
29  string componentName;
30 #ifdef WIN32
31  HMODULE p_libComponent;
32 #else
34 #endif
35 
36  static const unsigned int BUF_SIZE = 1024;
37 
38 };