OpcUaCanOpen
CANopen OPC-UA server
|
#include <CanLibLoaderWin.h>
Inherits CanModule::CanLibLoader.
Public Member Functions | |
void | ErrorExit (LPTSTR lpszFunction) |
Retrieve the system error message for the last-error code this seems to return error code 0 even if lib pointer is NULL. More... | |
CanLibLoaderWin (const std::string &libName) | |
virtual | ~CanLibLoaderWin () |
![]() | |
virtual | ~CanLibLoader () |
SHARED_LIB_EXPORT_DEFN CanModule::CCanAccess * | openCanBus (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) |
The dll is loaded trough LoadLibrary (Windows API) but error reporting is poor. More... | |
virtual CCanAccess * | createCanAccess () |
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... | |
![]() | |
CanLibLoader (const std::string &libName) | |
Private Attributes | |
HMODULE | m_pDynamicLibrary |
Additional Inherited Members | |
![]() | |
static SHARED_LIB_EXPORT_DEFN CanLibLoader * | createInstance (const std::string &libName) |
![]() | |
Log::LogComponentHandle | lh |
Definition at line 33 of file CanLibLoaderWin.h.
CanModule::CanLibLoaderWin::CanLibLoaderWin | ( | const std::string & | libName | ) |
Definition at line 69 of file CanLibLoaderWin.cpp.
|
virtual |
Definition at line 76 of file CanLibLoaderWin.cpp.
|
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 120 of file CanLibLoaderWin.cpp.
|
protectedvirtual |
The dll is loaded trough LoadLibrary (Windows API) but error reporting is poor.
Use extended API method for this to get around the signing at least. ===AnaGate libs are NOT INSTALLED on the system, so make sure the vendor libs in question are in the search path: copy them to the bin exec dir. ===Systec libs are in fact installed into the system C:.dll or so, so for systec nothing has to be done. In fact this is unclean, but that is what they deliver.
Implements CanModule::CanLibLoader.
Definition at line 88 of file CanLibLoaderWin.cpp.
void CanModule::CanLibLoaderWin::ErrorExit | ( | LPTSTR | lpszFunction | ) |
Retrieve the system error message for the last-error code this seems to return error code 0 even if lib pointer is NULL.
Definition at line 38 of file CanLibLoaderWin.cpp.
|
private |
Definition at line 49 of file CanLibLoaderWin.h.