|
IOLink
IOL_v1.6.1_release
|
3 #include <iolink/IOLinkAPI.h>
4 #include <iolink/storage/StreamAccess.h>
20 inline static bool isStreamAccess(std::shared_ptr<DataAccess> accessor) noexcept
22 return (
dynamic_cast<const StreamAccess*
>(accessor.get()) !=
nullptr);
30 inline static std::shared_ptr<StreamAccess>
toStream(std::shared_ptr<DataAccess> storage) noexcept
32 return std::dynamic_pointer_cast<StreamAccess>(storage);
Mother interface for all stream-like data accessors.
Definition: StreamAccess.h:59
All IOLink symbols are enclosed in this namespace.
Definition: ArrayX.h:7
Utility class to check and convert a DataAccess into a StreamAccess.
Definition: StreamAccessProvider.h:14
static bool isStreamAccess(std::shared_ptr< DataAccess > accessor) noexcept
Checks if DataAccess is a StreamAccess.
Definition: StreamAccessProvider.h:20
static std::shared_ptr< StreamAccess > toStream(std::shared_ptr< DataAccess > storage) noexcept
Definition: StreamAccessProvider.h:30