CVB++ 14.1
EmuDevice Class Reference

A device representing an image stream based on single image files. More...

#include <cvb/driver/emu_device.hpp>

Inherits Device.

Public Member Functions

std::chrono::milliseconds FrameTime () const
 Gets the time when frame is valid. More...
 
template<class Rep , class Period >
void SetFrameTime (const std::chrono::duration< Rep, Period > &frameTime)
 Sets the time one frame is valid. More...
 
- Public Member Functions inherited from Device
void * Handle () const noexcept
 Classic API device handle. More...
 
String ResourceLocator () const noexcept
 Gets the access token or path of the file name including its extension. More...
 
DeviceControlPtr DeviceControl () const
 Gets the DeviceControl interface if present. More...
 
DigitalIOPtr DigitalIO () const
 Gets the DigitalIO interface if present. More...
 
SoftwareTriggerPtr SoftwareTrigger () const
 Gets the SoftwareTrigger interface if present. More...
 
ImageRectPtr ImageRect () const
 Gets the ImageRect interface if present. More...
 
virtual StreamPtr Stream () const
 Get the stream for this device. More...
 
int StreamCount () const noexcept
 Get the number of streams. More...
 
template<class T >
std::shared_ptr< T > DeviceImage () const
 Gets, if available, the device image pointing to the last synchronized image. More...
 
DeviceImagePtr DeviceImage () const
 Gets, if available, the device image pointing to the latest synchronized image. More...
 
NodeMapPtr NodeMap (const String &name) const
 Gets the NodeMap with the given name. More...
 
std::map< String, NodeMapPtr > NodeMaps () const
 Gets the dictionary holding all available NodeMaps. More...
 
NotifyObservablePtr NotifyObservable (int id) const
 Get the observable for a given id. More...
 
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. More...
 
void UnregisterConnectionStateChangedEvent (EventCookie eventCookie) noexcept
 Manually unregister a listener to the OnDisconnect event. More...
 

Detailed Description

A device representing an image stream based on single image files.

Member Function Documentation

◆ FrameTime()

std::chrono::milliseconds FrameTime ( ) const
inline

Gets the time when frame is valid.

Returns
Current frame time.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ SetFrameTime()

void SetFrameTime ( const std::chrono::duration< Rep, Period > &  frameTime)
inline

Sets the time one frame is valid.

Parameters
[in]frameTimeThe new frame time.
Exceptions
Anyexception derived from std::exception including CvbException.