5 #include <iolink/IOLinkAPI.h>
6 #include <iolink/view/ImageView.h>
24 inline static bool isImage(std::shared_ptr<View> view) noexcept
26 return (
dynamic_cast<const ImageView*
>(view.get()) !=
nullptr);
38 inline static std::shared_ptr<ImageView>
toImage(std::shared_ptr<View> view) noexcept
40 return std::dynamic_pointer_cast<ImageView>(view);
49 static std::shared_ptr<ImageView> toReadOnly(std::shared_ptr<ImageView> image);
57 static std::shared_ptr<ImageView> toWriteOnly(std::shared_ptr<ImageView> image);