IDS peak genericC++ v1.17.0
Loading...
Searching...
No Matches
Device Discovery

Provides classes and functions to discover and enumerate devices, interfaces, and GenTL producer libraries, allowing users to query available hardware and system modules. More...

Classes

class  peak::core::Interface
 Represents a GenTL Interface module. More...
class  peak::core::InterfaceDescriptor
 Encapsulates the GenTL functions associated with a GenTL Interface module's ID. More...
class  peak::DeviceManager
 The global DeviceManager (singleton) searches all installed producer libraries (*.cti) and enumerates the modules contained in them. More...
class  peak::core::ProducerLibrary
 Represents a GenTL producer library (CTI). More...
class  peak::core::System
 Represents a GenTL System module. More...
class  peak::core::SystemDescriptor
 Encapsulates the GenTL functions associated with the GenTL System module's ID. More...

Functions

static PEAK_COMMON_NO_DISCARD std::vector< std::string > peak::core::EnvironmentInspector::CollectCTIPaths ()
 Collects producer library paths found in the current environment.

Detailed Description

Provides classes and functions to discover and enumerate devices, interfaces, and GenTL producer libraries, allowing users to query available hardware and system modules.

Function Documentation

◆ CollectCTIPaths()

std::vector< std::string > peak::core::EnvironmentInspector::CollectCTIPaths ( )
inlinestatic

Collects producer library paths found in the current environment.

Select a *.cti file from this list of paths and use it with ProducerLibrary::Open().

Note
This function depends on the architecture your application is compiled for. This means you are getting the paths for the 32-bit producer libraries if your application is compiled for a 32-bit system and the paths for the 64-bit producer libraries if your application is compiled for a 64-bit system.
Returns
Producer library paths found in the current environment
Since
1.0
Exceptions
InternalErrorExceptionAn internal error has occurred.
NotFoundExceptionThe environment variable GENICAM_GENTL32_PATH / GENICAM_GENTL64_PATH was not found or was empty when scanning for environment ProducerLibraries.