IOLink IOL_v1.8.0_release
Loading...
Searching...
No Matches
MultiImageViewProvider.h
1#pragma once
2
3#include <iolink/view/MultiImageView.h>
4
5namespace iolink
6{
7
12{
13public:
17 inline static bool isMultiImage(std::shared_ptr<View> view) noexcept
18 {
19 return (dynamic_cast<const MultiImageView*>(view.get()) != nullptr);
20 }
21
27 inline static std::shared_ptr<MultiImageView> toMultiImage(std::shared_ptr<View> view) noexcept
28 {
29 return std::dynamic_pointer_cast<MultiImageView>(view);
30 }
31};
32
33} // end namespace iolink