You’re reading an older version of the Slamcore SDK documenation. The latest one is 23.04.

Class slamcore::MetaDataInterface

class MetaDataInterface

Representing metadata.

Metadata value getters.

template<typename T>
inline std::error_code getValue(T &val, typename std::enable_if<std::is_integral<T>::value, T>::type* = 0) const
template<typename T>
inline std::error_code getValue(T &val, typename std::enable_if<std::is_enum<T>::value, T>::type* = 0) const
template<typename T>
inline std::error_code getValue(T &val, typename std::enable_if<std::is_floating_point<T>::value, T>::type* = 0) const
inline std::error_code getValue(std::string &val) const

Public Types

enum class ValueType : EnumBaseT

Values:

enumerator Integer
enumerator Floating
enumerator String
enumerator Count
using Ptr = std::shared_ptr<MetaDataInterface>
using CPtr = std::shared_ptr<const MetaDataInterface>

Public Functions

virtual ~MetaDataInterface() = default
virtual MetaDataID getID() const = 0

Get MetaData ID

virtual ValueType getValueType() const = 0

Type of the value we store.

inline virtual std::size_t getIndex() const

[OPTIONAL] Get index value.