Represents a GenTL Device module, i.e. a local virtual Device proxy for the actual hardware RemoteDevice. More...
#include <peak/device/peak_device.hpp>
Public Member Functions | |
| Device ()=delete | |
| ~Device () override | |
| Device (const Device &other)=delete | |
| Device & | operator= (const Device &other)=delete |
| Device (Device &&other)=delete | |
| Device & | operator= (Device &&other)=delete |
| PEAK_COMMON_NO_DISCARD std::string | Key () const |
| Returns the unique key. | |
| PEAK_COMMON_NO_DISCARD RawInformation | Info (int32_t infoCommand) const |
| Delivers information based on the given GenTL info command. | |
| PEAK_COMMON_NO_DISCARD std::string | ID () const |
| Returns the ID. | |
| PEAK_COMMON_NO_DISCARD std::string | DisplayName () const |
| Returns the display name. | |
| PEAK_COMMON_NO_DISCARD std::string | VendorName () const |
| Returns the vendor name. | |
| PEAK_COMMON_NO_DISCARD std::string | ModelName () const |
| Returns the model name. | |
| PEAK_COMMON_NO_DISCARD std::string | Version () const |
| Returns the version. | |
| PEAK_COMMON_NO_DISCARD std::string | TLType () const |
| Returns the TL (transport layer) type. | |
| PEAK_COMMON_NO_DISCARD std::string | UserDefinedName () const |
| Returns the user defined name. | |
| PEAK_COMMON_NO_DISCARD std::string | SerialNumber () const |
| Returns the serial number. | |
| PEAK_COMMON_NO_DISCARD DeviceAccessStatus | AccessStatus () const |
| Returns the access status. | |
| PEAK_COMMON_NO_DISCARD uint64_t | TimestampTickFrequency () const |
| Returns the timestamp tick frequency. | |
| PEAK_COMMON_NO_DISCARD std::shared_ptr< class RemoteDevice > | RemoteDevice () const |
| Returns the remote device of the device. | |
| PEAK_COMMON_NO_DISCARD std::vector< std::shared_ptr< DataStreamDescriptor > > | DataStreams () const |
| Returns the data stream list of the device. | |
| PEAK_COMMON_NO_DISCARD std::shared_ptr< Interface > | ParentInterface () const |
| Returns the parent interface. | |
| PEAK_COMMON_NO_DISCARD PEAK_DEVICE_HANDLE | Handle () const |
| Get the backend handle. | |
| Public Member Functions inherited from peak::core::EventSupportingModule | |
| EventSupportingModule ()=default | |
| ~EventSupportingModule () override=default | |
| EventSupportingModule (const EventSupportingModule &other)=delete | |
| EventSupportingModule & | operator= (const EventSupportingModule &other)=delete |
| EventSupportingModule (EventSupportingModule &&other)=delete | |
| EventSupportingModule & | operator= (EventSupportingModule &&other)=delete |
| PEAK_COMMON_NO_DISCARD std::unique_ptr< EventController > | EnableEvents (EventType type) |
| Enables events of the given event type. | |
| Public Member Functions inherited from peak::core::Module | |
| Module ()=default | |
| virtual | ~Module ()=default |
| Module (const Module &other)=delete | |
| Module & | operator= (const Module &other)=delete |
| Module (Module &&other)=delete | |
| Module & | operator= (Module &&other)=delete |
| PEAK_COMMON_NO_DISCARD std::vector< std::shared_ptr< NodeMap > > | NodeMaps () const |
| Returns the module's node maps. | |
| PEAK_COMMON_NO_DISCARD std::shared_ptr< class Port > | Port () const |
| Returns the module's port. | |
Represents a GenTL Device module, i.e. a local virtual Device proxy for the actual hardware RemoteDevice.
This class allows to query information about a GenTL Device module and to enumerate its DataStreamDescriptors, which allows to open the corresponding DataStream.
Additionally, it allows access to its RemoteDevice, i.e. the actual hardware device. To change hardware settings, you typically need to work with the NodeMap of the RemoteDevice. E.g. to change the exposure time:
|
delete |
|
inlineoverride |
|
delete |
|
delete |
|
inline |
Returns the access status.
| NotFoundException | Device could not be found. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the data stream list of the device.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the display name.
| NotFoundException | Device could not be found. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Get the backend handle.
Use this to use the c interface directly (not recommended)
|
inline |
|
inline |
Delivers information based on the given GenTL info command.
| [in] | infoCommand | The GenTL info command. |
This function can be used to query information going beyond the predefined info functions, based on the GenTL info commands of the corresponding module.
Example (error handling is omitted):
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the unique key.
The returned key is unique even across different producer libraries.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the model name.
| NotFoundException | Device could not be found. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the parent interface.
| NotFoundException | Device could not be found. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the remote device of the device.
This function returns the remote device which provides the access to the physical device. In contrast, this class acts only as a proxy for the physical device.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the serial number.
| NotFoundException | Device could not be found. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the timestamp tick frequency.
| NotFoundException | Device could not be found. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the TL (transport layer) type.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the user defined name.
| NotFoundException | Device could not be found. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the vendor name.
| NotFoundException | Device could not be found. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the version.
| NotFoundException | Device could not be found. |
| InternalErrorException | An internal error has occurred. |