5#include "composite_stream_base.hpp"
6#include "../composite.hpp"
24 using GuardType = HandleGuard<CompositeStreamBase>;
38 template<
class Rep,
class Period>
41 return CreateWaitResult(InternalWaitFor<Composite>(timeSpan, token));
50 template<
class Rep,
class Period>
53 return CreateWaitResult(InternalWaitFor<Composite>(timeSpan));
64 return CreateWaitResult(InternalWait<Composite>(token));
74 return CreateWaitResult(InternalWait<Composite>());
81 HandleGuard<Composite> guard(
nullptr);
83 std::tie(guard, waitStatus) = std::move(waitResultBase);
96using Driver::CompositeStream;
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:104
Base class of all composite based streams.
Definition: decl_composite_stream_base.hpp:32
Streams composites.
Definition: composite_stream.hpp:21
WaitResultTuple< Composite > Wait()
Waits for ever for the next acquired composite.
Definition: composite_stream.hpp:72
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:51
WaitResultTuple< Composite > Wait(const CancellationToken &token)
Waits for ever for the next acquired composite.
Definition: composite_stream.hpp:62
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:39
Lazy enumeration of node maps.
Definition: node_map_enumerator.hpp:31
static NodeMapEnumerator FromObject(const T &object)
Create a node map enumerator for a given object.
Definition: node_map_enumerator.hpp:71
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24
WaitStatus
Status after waiting for an image to be returned.
Definition: global.hpp:351
std::shared_ptr< Composite > CompositePtr
Convenience shared pointer for Composite.
Definition: global.hpp:98