5#include "composite_stream_base.hpp"
6#include "multi_part_image.hpp"
23 using GuardType = HandleGuard<CompositeStreamBase>;
37 template<
class Rep,
class Period>
40 return CreateWaitResult(InternalWaitFor<Image>(timeSpan, token));
49 template<
class Rep,
class Period>
52 return CreateWaitResult(InternalWaitFor<Image>(timeSpan));
63 return CreateWaitResult(InternalWait<Image>(token));
73 return CreateWaitResult(InternalWait<Image>());
80 HandleGuard<Image> guard(
nullptr);
82 std::tie(guard, waitStatus) = std::move(waitResultBase);
87 if (!CVB_CALL_CAPI(IsImage(guard.Handle())))
97using Driver::ImageStream;
A token to enable cancellation on wait operations.
Definition: cancellation_token.hpp:20
Base class of all composite based streams.
Definition: decl_composite_stream_base.hpp:32
Streams images.
Definition: image_stream.hpp:20
WaitResultTuple< MultiPartImage > WaitFor(const std::chrono::duration< Rep, Period > &timeSpan, CancellationToken &token)
Waits for the given time span for the next acquired image.
Definition: image_stream.hpp:38
WaitResultTuple< MultiPartImage > Wait(const CancellationToken &token)
Waits for ever for the next acquired image.
Definition: image_stream.hpp:61
WaitResultTuple< MultiPartImage > Wait()
Waits for ever for the next acquired image.
Definition: image_stream.hpp:71
WaitResultTuple< MultiPartImage > WaitFor(const std::chrono::duration< Rep, Period > &timeSpan)
Waits for the given time span for the next acquired image.
Definition: image_stream.hpp:50
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:88
std::shared_ptr< MultiPartImage > MultiPartImagePtr
Convenience shared pointer for StreamImage.
Definition: driver.hpp:88
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:376
@ Ok
Everything is fine, a new image arrived.