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())))
97 using Driver::ImageStream;
WaitStatus
Status after waiting for an image to be returned.
Definition: global.hpp:350
Streams images.
Definition: image_stream.hpp:18
Base class of all composite based streams.
Definition: decl_composite_stream_base.hpp:30
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
Root namespace for the Image Manager interface.
Definition: version.hpp:11
Lazy enumeration of node maps.
Definition: node_map_enumerator.hpp:30
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
WaitResultTuple< MultiPartImage > Wait()
Waits for ever for the next acquired image.
Definition: image_stream.hpp:71
static NodeMapEnumerator FromObject(const T &object)
Create a node map enumerator for a given object.
Definition: node_map_enumerator.hpp:71
std::shared_ptr< MultiPartImage > MultiPartImagePtr
Convenience shared pointer for StreamImage.
Definition: driver.hpp:88
A token to enable cancellation on wait operations.
Definition: cancellation_token.hpp:19
WaitResultTuple< MultiPartImage > Wait(const CancellationToken &token)
Waits for ever for the next acquired image.
Definition: image_stream.hpp:61