Factory object for creating device objects. More...
#include <cvb/device_factory.hpp>
Static Public Member Functions | |
template<class T > | |
static std::shared_ptr< T > | Open (const String &provider, AcquisitionStack acquisitionStack=AcquisitionStack::PreferVin) |
Opens a device with the given provider with its default board and port (if applicable). More... | |
static DevicePtr | Open (const String &provider, AcquisitionStack acquisitionStack=AcquisitionStack::PreferVin) |
Opens a device with the given provider with its default board and port (if applicable). More... | |
template<class T > | |
static std::shared_ptr< T > | Open (const String &provider, int port, int board) |
Opens a device with the given provider. More... | |
static DevicePtr | Open (const String &provider, int port, int board) |
Opens a device with the given provider. More... | |
template<class T > | |
static std::shared_ptr< T > | OpenBoard (const String &provider, int board) |
Open a device with the given provider and board. More... | |
static DevicePtr | OpenBoard (const String &provider, int board) |
Open a device with the given provider and board. More... | |
template<class T > | |
static std::shared_ptr< T > | OpenPort (const String &provider, int port) |
Open a device with the given provider and port. More... | |
static DevicePtr | OpenPort (const String &provider, int port) |
Open a device with the given provider and port. More... | |
static std::vector< DiscoveryInformation > | Discover () |
Discovers available devices (not vins) with a default time span of 300ms. More... | |
static std::vector< DiscoveryInformation > | Discover (DiscoverFlags flags) |
Discovers available devices/nodes depending on the given flags, with a default time span of 300ms. More... | |
template<class Rep , class Period > | |
static std::vector< DiscoveryInformation > | Discover (DiscoverFlags flags, const std::chrono::duration< Rep, Period > &timeSpan) |
Discovers available devices/nodes depending on the given flags. More... | |
template<class Rep , class Period > | |
static std::vector< DiscoveryInformation > | Discover (const String &accessToken, DiscoverFlags flags, const std::chrono::duration< Rep, Period > &timeSpan) |
Discovers available nodes starting on level of the given access token. More... | |
static std::vector< DiscoveryInformation > | Discover (const String &accessToken, DiscoverFlags flags) |
Discovers available nodes starting on level of the given access token with a default time span of 300ms. More... | |
static std::vector< DiscoveryInformation > | Discover (const String &accessToken) |
Discovers available nodes starting on level of the given access token with a default time span of 300ms. More... | |
static std::vector< DiscoveryInformation > | Discover (const DiscoveryInformation &info) |
Discovers available nodes starting on level of the given discovery info with a default time span of 300ms. More... | |
static std::vector< DiscoveryInformation > | Discover (const DiscoveryInformation &info, DiscoverFlags flags) |
Discovers available nodes starting on level of the given info with a default time span of 300ms. More... | |
template<class Rep , class Period > | |
static std::vector< DiscoveryInformation > | Discover (const DiscoveryInformation &info, DiscoverFlags flags, const std::chrono::duration< Rep, Period > &timeSpan) |
Discovers available nodes starting on level of the given info. More... | |
Factory object for creating device objects.
|
inlinestatic |
Discovers available devices (not vins) with a default time span of 300ms.
Any | exception derived from std::exception including CvbException. |
This method behaves like the CVB Management Console when discovering devices: It lists all GenICam devices (like GigE Vision and USB3 Vision) and filters out the STEMMER IMAGING Socket Driver devices for GigE Vision (only shows Filter Driver devices).
This method does not throw if the wait time is exceeded: it just waits for the time span. If a device answers after this span it is not in the returned list.
|
inlinestatic |
Discovers available nodes starting on level of the given discovery info with a default time span of 300ms.
[in] | info | Start level and parameter set for query. |
Any | exception derived from std::exception including CvbException. |
This method does not throw if the wait time is exceeded: it just waits for the time span. If a device answers after this span it is not in the returned list.
|
inlinestatic |
Discovers available nodes starting on level of the given info with a default time span of 300ms.
[in] | info | Start level and parameter set for query. |
[in] | flags | Discovery control flags. |
Any | exception derived from std::exception including CvbException. |
This method does not throw a if the wait time is exceeded: it just waits for the time span. If a device answers after this span it is not in the returned list.
|
inlinestatic |
Discovers available nodes starting on level of the given info.
[in] | info | |
[in] | flags | Discovery control flags. |
[in] | timeSpan | Time to wait for discovery answers from devices. |
Any | exception derived from std::exception including CvbException. |
This method does not throw a if the wait time is exceeded: it just waits for the time span. If a device answers after this span it is not in the returned list.
|
inlinestatic |
Discovers available nodes starting on level of the given access token with a default time span of 300ms.
[in] | accessToken | Start level and parameter set for query. |
Any | exception derived from std::exception including CvbException. |
This method does not throw if the wait time is exceeded: it just waits for the time span. If a device answers after this span it is not in the returned list.
|
inlinestatic |
Discovers available nodes starting on level of the given access token with a default time span of 300ms.
[in] | accessToken | Start level and parameter set for query. |
[in] | flags | Discovery control flags. |
Any | exception derived from std::exception including CvbException. |
This method does not throw a if the wait time is exceeded: it just waits for the time span. If a device answers after this span it is not in the returned list.
|
static |
Discovers available nodes starting on level of the given access token.
[in] | accessToken | |
[in] | flags | Discovery control flags. |
[in] | timeSpan | Time to wait for discovery answers from devices. |
Any | exception derived from std::exception including CvbException. |
This method does not throw a if the wait time is exceeded: it just waits for the time span. If a device answers after this span it is not in the returned list.
|
inlinestatic |
Discovers available devices/nodes depending on the given flags, with a default time span of 300ms.
[in] | flags | Discovery control flags. |
Any | exception derived from std::exception including CvbException. |
This method does not throw a if the wait time is exceeded: it just waits for the time span. If a device answers after this span it is not in the returned list.
|
inlinestatic |
Discovers available devices/nodes depending on the given flags.
[in] | flags | Discovery control flags. |
[in] | timeSpan | Time to wait for discovery answers from devices. |
Any | exception derived from std::exception including CvbException. |
This method does not throw a if the wait time is exceeded: it just waits for the time span. If a device answers after this span it is not in the returned list.
|
inlinestatic |
Opens a device with the given provider with its default board and port (if applicable).
[in] | provider | The provider sting, which may be a path to vin-driver. |
[in] | acquisitionStack | Optional flag to select which acquisition stack should be use for the device. If omitted the latest available stack is used. |
Any | exception derived from std::exception including CvbException. |
The opened board/port need not necessary be 0 as this depends on the driver configuration!
|
inlinestatic |
Opens a device with the given provider with its default board and port (if applicable).
[in] | provider | The provider sting, which may be a path to vin-driver. |
[in] | acquisitionStack | Optional flag to select which acquisition stack should be use for the device. If omitted the latest available stack is used. |
Any | exception derived from std::exception including CvbException. |
The opened board/port need not necessary be 0 as this depends on the driver configuration!
|
inlinestatic |
Opens a device with the given provider.
[in] | provider | The provider sting, which must be a path to vin-driver. |
[in] | port | Port number to open. |
[in] | board | Board number to open. |
Any | exception derived from std::exception including CvbException. |
For this method the provider is a vin-driver on which a specific board and port is to be opened.
If the driver does not support either one of the board / port interfaces, you can set the board or port parameters to 0. For non-zero values an exception will be thrown.
Opens a device with the given provider.
[in] | provider | The provider sting, which must be a path to vin-driver. |
[in] | port | Port number to open. |
[in] | board | Board number to open. |
Any | exception derived from std::exception including CvbException. |
For this method the provider is a vin-driver on which a specific board and port is to be opened.
If the driver does not support either one of the board/port select interfaces, you can set the board or port parameters to 0. For non-zero values an exception will be thrown.
|
inlinestatic |
Open a device with the given provider and board.
[in] | provider | The provider sting, which must be a path to vin-driver. |
[in] | board | Board number to open. |
Any | exception derived from std::exception including CvbException. |
Open a device with the given provider and board.
[in] | provider | The provider sting, which must be a path to vin-driver. |
[in] | board | Board number to open. |
Any | exception derived from std::exception including CvbException. |
|
inlinestatic |
Open a device with the given provider and port.
[in] | provider | The provider sting, which must be a path to vin-driver. |
[in] | port | Port number to open. |
Any | exception derived from std::exception including CvbException. |
Open a device with the given provider and port.
[in] | provider | The provider sting, which must be a path to vin-driver. |
[in] | port | Port number to open. |
Any | exception derived from std::exception including CvbException. |