IOLink IOL_v1.8.0_release
Loading...
Searching...
No Matches
VariantDataValue.h
1#pragma once
2
3#include <memory>
4
5#include <iolink/DataType.h>
6#include <iolink/IOLinkAPI.h>
7
8namespace iolink
9{
10
18class IOLINK_INTERFACE_API VariantDataValue
19{
20public:
21 virtual ~VariantDataValue() = default;
22
26 virtual std::shared_ptr<VariantDataValue> clone() const = 0;
27
31 virtual DataType type() const = 0;
32
36 virtual size_t count() const = 0;
37
46 virtual const void* raw() const = 0;
47};
48
49} // end namespace iolink