OpcUaCanOpen
CANopen OPC-UA server
CanModule::CanLibLoaderLin Class Reference

#include <CanLibLoaderLin.h>

Inherits CanModule::CanLibLoader.

Public Member Functions

 CanLibLoaderLin (const std::string &libName)
 
virtual ~CanLibLoaderLin ()
 
- Public Member Functions inherited from CanModule::CanLibLoader
virtual ~CanLibLoader ()
 
SHARED_LIB_EXPORT_DEFN CanModule::CCanAccessopenCanBus (std::string name, std::string parameters)
 
SHARED_LIB_EXPORT_DEFN void closeCanBus (CanModule::CCanAccess *cca)
 

Protected Member Functions

virtual void dynamicallyLoadLib (const std::string &libName)
 
virtual CCanAccesscreateCanAccess ()
 Once the library is loaded, resolve the function getHalAccess, which will give us an instance of the wanted object: "access" One access instance corresponds to one CAN port (and whatever is needed on the computer side: ethernet, USB, whatnot) More...
 
- Protected Member Functions inherited from CanModule::CanLibLoader
 CanLibLoader (const std::string &libName)
 

Private Attributes

void * p_dynamicLibrary
 

Additional Inherited Members

- Static Public Member Functions inherited from CanModule::CanLibLoader
static SHARED_LIB_EXPORT_DEFN CanLibLoadercreateInstance (const std::string &libName)
 
- Public Attributes inherited from CanModule::CanLibLoader
Log::LogComponentHandle lh
 

Detailed Description

Definition at line 28 of file CanLibLoaderLin.h.

Constructor & Destructor Documentation

◆ CanLibLoaderLin()

CanModule::CanLibLoaderLin::CanLibLoaderLin ( const std::string &  libName)

Definition at line 38 of file CanLibLoaderLin.cpp.

◆ ~CanLibLoaderLin()

CanModule::CanLibLoaderLin::~CanLibLoaderLin ( )
virtual

Definition at line 45 of file CanLibLoaderLin.cpp.

Member Function Documentation

◆ createCanAccess()

CCanAccess * CanModule::CanLibLoaderLin::createCanAccess ( )
protectedvirtual

Once the library is loaded, resolve the function getHalAccess, which will give us an instance of the wanted object: "access" One access instance corresponds to one CAN port (and whatever is needed on the computer side: ethernet, USB, whatnot)

Implements CanModule::CanLibLoader.

Definition at line 75 of file CanLibLoaderLin.cpp.

◆ dynamicallyLoadLib()

void CanModule::CanLibLoaderLin::dynamicallyLoadLib ( const std::string &  libName)
protectedvirtual

Implements CanModule::CanLibLoader.

Definition at line 49 of file CanLibLoaderLin.cpp.

Member Data Documentation

◆ p_dynamicLibrary

void* CanModule::CanLibLoaderLin::p_dynamicLibrary
private

Definition at line 42 of file CanLibLoaderLin.h.


The documentation for this class was generated from the following files: