CVB++ 15.0
Loading...
Searching...
No Matches
NonStreamingDevice Class Reference

Represents a device that does not support video data streaming functionality. More...

#include <cvb/driver/non_streaming_device.hpp>

Inherits Device.

Public Member Functions

StreamPtr Stream () const override
 Get the stream for this device.
 
- Public Member Functions inherited from Device
void * Handle () const noexcept
 Classic API device handle.
 
String ResourceLocator () const noexcept
 Gets the access token or path of the file name including its extension.
 
DeviceControlPtr DeviceControl () const
 Gets the DeviceControl interface if present.
 
DigitalIOPtr DigitalIO () const
 Gets the DigitalIO interface if present.
 
SoftwareTriggerPtr SoftwareTrigger () const
 Gets the SoftwareTrigger interface if present.
 
ImageRectPtr ImageRect () const
 Gets the ImageRect interface if present.
 
int StreamCount () const noexcept
 Get the number of streams.
 
template<class T>
std::shared_ptr< T > DeviceImage () const
 Gets, if available, the device image pointing to the last synchronized image.
 
DeviceImagePtr DeviceImage () const
 Gets, if available, the device image pointing to the latest synchronized image.
 
NodeMapPtr NodeMap (const String &name) const
 Gets the NodeMap with the given name.
 
std::map< String, NodeMapPtrNodeMaps () const
 Gets the dictionary holding all available NodeMaps.
 
NotifyObservablePtr NotifyObservable (int id) const
 Get the observable for a given id.
 
Cvb::ConnectionState ConnectionState () const noexcept
 brief Gets the current Cvb::ConnectionState of this Device object.
 
EventCookie RegisterConnectionStateChangedEvent (std::function< void()> handler)
 Register a listener to the OnDisconnect event.
 
void UnregisterConnectionStateChangedEvent (EventCookie eventCookie) noexcept
 Manually unregister a listener to the OnDisconnect event.
 

Detailed Description

Represents a device that does not support video data streaming functionality.

Member Function Documentation

◆ Stream()

StreamPtr Stream ( ) const
inlineoverridevirtual

Get the stream for this device.

Note
This method is not supported by GenICamDevice or NonStreamingDevice.
Deprecated
This method is deprecated for all technologies providing a GenTL. Use the template version with ImageStream, PointCloudStream or CompositeStream instead.
Returns
Pointer to the stream object.
Exceptions
Anyexception derived from std::exception including CvbException.

Reimplemented from Device.