Go to the documentation of this file.
52 std::vector<std::string> ret;
58 std::stringstream in(paths);
65 if (path.size() > 4 && path.compare(path.size()-4, 4,
".cti") == 0)
76 DIR *p=opendir(path.c_str());
80 struct dirent *entry=readdir(p);
84 std::string name=entry->d_name;
86 if (name.size() >= 4 && name.compare(name.size()-4, 4,
".cti") == 0)
88 ret.push_back(path+
"/"+name);
113 lib=dlopen(filename.c_str(), RTLD_NOW | RTLD_DEEPBIND);
117 throw std::invalid_argument(std::string(
"Cannot open GenTL library: ")+dlerror());
124 *
reinterpret_cast<void**
>(&
GCInitLib)=dlsym(
lib,
"GCInitLib");
125 *
reinterpret_cast<void**
>(&
GCCloseLib)=dlsym(
lib,
"GCCloseLib");
129 *
reinterpret_cast<void**
>(&
GCGetInfo)=dlsym(
lib,
"GCGetInfo");
131 *
reinterpret_cast<void**
>(&
GCReadPort)=dlsym(
lib,
"GCReadPort");
132 *
reinterpret_cast<void**
>(&
GCWritePort)=dlsym(
lib,
"GCWritePort");
141 *
reinterpret_cast<void**
>(&
EventFlush)=dlsym(
lib,
"EventFlush");
142 *
reinterpret_cast<void**
>(&
EventKill)=dlsym(
lib,
"EventKill");
143 *
reinterpret_cast<void**
>(&
TLOpen)=dlsym(
lib,
"TLOpen");
144 *
reinterpret_cast<void**
>(&
TLClose)=dlsym(
lib,
"TLClose");
145 *
reinterpret_cast<void**
>(&
TLGetInfo)=dlsym(
lib,
"TLGetInfo");
151 *
reinterpret_cast<void**
>(&
IFClose)=dlsym(
lib,
"IFClose");
152 *
reinterpret_cast<void**
>(&
IFGetInfo)=dlsym(
lib,
"IFGetInfo");
159 *
reinterpret_cast<void**
>(&
DevGetPort)=dlsym(
lib,
"DevGetPort");
163 *
reinterpret_cast<void**
>(&
DevGetInfo)=dlsym(
lib,
"DevGetInfo");
164 *
reinterpret_cast<void**
>(&
DevClose)=dlsym(
lib,
"DevClose");
171 *
reinterpret_cast<void**
>(&
DSGetInfo)=dlsym(
lib,
"DSGetInfo");
173 *
reinterpret_cast<void**
>(&
DSClose)=dlsym(
lib,
"DSClose");
192 const char *err=dlerror();
198 throw std::invalid_argument(std::string(
"Cannot resolve GenTL symbol: ")+tmp);
std::vector< std::string > getAvailableGenTLs(const char *paths)
The function uses the given list files of paths that is separated by colons or semicolons,...
GenTL::PGCInitLib GCInitLib
GenTL::PDSGetBufferPartInfo DSGetBufferPartInfo
GenTL::PEventGetInfo EventGetInfo
GenTL::PDSGetParentDev DSGetParentDev
GenTL::PGCRegisterEvent GCRegisterEvent
GenTL::PDevClose DevClose
GenTL::PTLGetInfo TLGetInfo
GenTL::PDSGetBufferInfo DSGetBufferInfo
GenTL::PTLGetInterfaceID TLGetInterfaceID
GenTL::PEventKill EventKill
GenTL::PDevOpenDataStream DevOpenDataStream
GenTL::PGCCloseLib GCCloseLib
GenTL::PDSGetBufferID DSGetBufferID
GenTL::PGCWritePortStacked GCWritePortStacked
GenTL::PIFGetDeviceInfo IFGetDeviceInfo
GenTL::PGCUnregisterEvent GCUnregisterEvent
GenTL::PDSRevokeBuffer DSRevokeBuffer
GenTL::PDevGetDataStreamID DevGetDataStreamID
GenTL::PGCReadPort GCReadPort
GenTL::PEventFlush EventFlush
GenTL::PGCGetPortInfo GCGetPortInfo
GenTL::PEventGetData EventGetData
GenTL::PGCWritePort GCWritePort
std::istream & getline(std::istream &is, GENICAM_NAMESPACE::gcstring &str)
STL getline.
GenTL::PTLOpenInterface TLOpenInterface
GenTL::PGCReadPortStacked GCReadPortStacked
GenTL::PTLGetInterfaceInfo TLGetInterfaceInfo
GenTL::PDSGetNumBufferParts DSGetNumBufferParts
GenTL::PDSGetInfo DSGetInfo
GenTL::PIFGetNumDevices IFGetNumDevices
GenTL::PGCGetPortURL GCGetPortURL
GenTL::PGCGetInfo GCGetInfo
GenTL::PDSGetBufferChunkData DSGetBufferChunkData
GenTL::PGCGetPortURLInfo GCGetPortURLInfo
GenTL::PDevGetPort DevGetPort
GenTL::PDSFlushQueue DSFlushQueue
GenTL::PDevGetNumDataStreams DevGetNumDataStreams
GenTL::PDevGetInfo DevGetInfo
GenTL::PGCGetLastError GCGetLastError
GenTL::PIFGetParentTL IFGetParentTL
GenTL::PDSAllocAndAnnounceBuffer DSAllocAndAnnounceBuffer
GenTL::PDSQueueBuffer DSQueueBuffer
GenTL::PTLUpdateInterfaceList TLUpdateInterfaceList
GenTL::PTLGetNumInterfaces TLGetNumInterfaces
GenTL::PIFOpenDevice IFOpenDevice
GenTL::PGCGetNumPortURLs GCGetNumPortURLs
GenTL::PIFGetDeviceID IFGetDeviceID
GenTL::PDSStartAcquisition DSStartAcquisition
GenTLWrapper(const std::string &filename)
GenTL::PDevGetParentIF DevGetParentIF
GenTL::PIFGetInfo IFGetInfo
GenTL::PEventGetDataInfo EventGetDataInfo
GenTL::PDSAnnounceBuffer DSAnnounceBuffer
GenTL::PIFUpdateDeviceList IFUpdateDeviceList
GenTL::PDSStopAcquisition DSStopAcquisition
rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:11