5#include "composite_stream_base.hpp"
6#include "../composite.hpp"
18 class CompositeStream :
public CompositeStreamBase
21 using GuardType = HandleGuard<CompositeStreamBase>;
23 CompositeStream(HandleGuard<CompositeStreamBase> &&guard, PrivateTag,
const DevicePtr &device = {})
24 : CompositeStreamBase(device,
std::move(guard))
35 template <
class Rep,
class Period>
39 return CreateWaitResult(InternalWaitFor<Composite>(timeSpan, token));
48 template <
class Rep,
class Period>
51 return CreateWaitResult(InternalWaitFor<Composite>(timeSpan));
62 return CreateWaitResult(InternalWait<Composite>(token));
72 return CreateWaitResult(InternalWait<Composite>());
78 HandleGuard<Composite> guard(
nullptr);
18 class CompositeStream :
public CompositeStreamBase {
…};
A token to enable cancellation on wait operations.
Definition cancellation_token.hpp:20
static std::unique_ptr< Composite > FromHandle(HandleGuard< Composite > &&guard)
Creates a composite from a classic API handle.
Definition decl_composite.hpp:103
Streams composites.
Definition composite_stream.hpp:19
WaitResultTuple< Composite > Wait()
Waits for ever for the next acquired composite.
Definition composite_stream.hpp:70
WaitResultTuple< Composite > WaitFor(const std::chrono::duration< Rep, Period > &timeSpan)
Waits for the given time span for the next acquired composite.
Definition composite_stream.hpp:49
WaitResultTuple< Composite > Wait(const CancellationToken &token)
Waits for ever for the next acquired composite.
Definition composite_stream.hpp:60
WaitResultTuple< Composite > WaitFor(const std::chrono::duration< Rep, Period > &timeSpan, const CancellationToken &token)
Waits for the given time span for the next acquired composite.
Definition composite_stream.hpp:36
Lazy enumeration of node maps.
Definition node_map_enumerator.hpp:30
static NodeMapEnumerator FromObject(const T &object)
Create a node map enumerator for a given object.
Definition node_map_enumerator.hpp:98
Namespace for driver or device related operations.
Definition decl_composite.hpp:26
std::tuple< std::shared_ptr< T >, WaitStatus, NodeMapEnumerator > WaitResultTuple
Tuple holding multiple return values after waiting for a specific payload data.
Definition driver.hpp:579
Root namespace for the Image Manager interface.
Definition c_barcode.h:15
WaitStatus
Status after waiting for an image to be returned.
Definition global.hpp:375
@ Ok
Everything is fine, a new image arrived.
Definition global.hpp:377
std::shared_ptr< Device > DevicePtr
Convenience shared pointer for Device.
Definition global.hpp:94
std::shared_ptr< Composite > CompositePtr
Convenience shared pointer for Composite.
Definition global.hpp:98