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
{
32
class
CanLibLoader
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
();
41
SHARED_LIB_EXPORT_DEFN
static
CanLibLoader
*
createInstance
(
const
std::string
& libName);
42
43
SHARED_LIB_EXPORT_DEFN
CanModule::CCanAccess
*
openCanBus
(
std::string
name
,
std::string
parameters);
44
SHARED_LIB_EXPORT_DEFN
void
closeCanBus
(
CanModule::CCanAccess
*cca);
45
46
// LogIt handle
47
Log::LogComponentHandle
lh
;
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
}
CanModule
CanLibLoader
include
CanLibLoader.h
Generated on Fri Sep 11 2020 14:29:48 for OpcUaCanOpen by
1.8.14