OpcUaCanOpen
CANopen OPC-UA server
CanLibLoaderWin.h
Go to the documentation of this file.
1 
24 #pragma once
25 #define _WINSOCKAPI_
26 #include <windows.h>
27 #include <strsafe.h>
28 
29 #include "CanLibLoader.h"
30 
31 namespace CanModule
32 {
34  {
35  public:
36  // system error reporter
37  void ErrorExit(LPTSTR lpszFunction);
38  //Empty constructor
39  CanLibLoaderWin(const std::string& libName);
40  //Will cleanup the loaded dynamic library
41  virtual ~CanLibLoaderWin();
42  protected:
43  //Load a dynamic library.
44  virtual void dynamicallyLoadLib(const std::string& libName);
45  //Uses the loaded library to create a HAL object and store it in p_halInstance
46  virtual CCanAccess* createCanAccess();
47  private:
48  //Pointer to the dynamic library stored on the memory
50  };
51 }