OpcUaCanOpen
CANopen OPC-UA server
CanBusAccess.h
Go to the documentation of this file.
1
23
#ifndef CANBUSACCESS_H
24
#define CANBUSACCESS_H
25
26
#include "
CanLibLoader.h
"
27
#include "
CCanAccess.h
"
28
#include <map>
29
#include <string>
30
31
#pragma once
32
33
using namespace
std
;
34
35
namespace
CanModule
36
{
42
class
CanBusAccess
{
43
44
public
:
45
CanBusAccess
() : m_Component(), m_ScanManagers() {};
46
CCanAccess
* openCanBus(
string
name
,
string
parameters);
47
void
closeCanBus(
CCanAccess
*cca);
48
49
private
:
50
bool
isCanPortOpen
(
string
pn) {
return
(m_ScanManagers.find(pn) != m_ScanManagers.end()); }
51
map<string, CanLibLoader *>
m_Component
;
52
map<string, CCanAccess *>
m_ScanManagers
;
53
};
54
}
55
#endif // CANBUSACCESS_H
CanModule
CanInterface
include
CanBusAccess.h
Generated on Fri Sep 11 2020 14:29:43 for OpcUaCanOpen by
1.8.14