OpcUaCanOpen
CANopen OPC-UA server
CanLibLoader.h
Go to the documentation of this file.
1 
24 #pragma once
25 #include <string>
26 #include <map>
27 #include "CCanAccess.h"
28 #include "ExportDefinition.h"
29 
30 namespace CanModule
31 {
33  {
34  protected:
35  //Empty constructor
36  CanLibLoader(const std::string& libName);
37 
38  public:
39  //Will cleanup the loaded dynamic library
40  virtual ~CanLibLoader();
42 
45 
46  // LogIt handle
48 
49 
50  protected:
51  //Load a dynamic library.
52  virtual void dynamicallyLoadLib(const std::string& libName) = 0;
53  //Uses the loaded library to create a HAL object and store it in p_halInstance
54  virtual CCanAccess* createCanAccess() = 0;
55 
56  private:
57 
58  };
59 }