File meta_data.hpp

Core API objects - meta data.

Helper functions for slamcore::MetaDataID

template<class Archive>
static inline void load_minimal(const Archive&, MetaDataID &obj, const std::string &value)
template<class Archive>
static inline std::string save_minimal(const Archive&, const MetaDataID &obj)
static inline std::ostream &operator<<(std::ostream &os, const MetaDataID obj)

Enums

enum class MetaDataID : EnumBaseT

Various supported MetaData variables.

Values:

enumerator NumFeatures
enumerator TrackedFeatures
enumerator DistanceTravelled
enumerator ProcessedFrameRate
enumerator TotalDroppedFrames
enumerator Count
template<typename T>
struct TypeTraits<T, typename enable_if_is_base_of<MetaDataInterface, T>::type>
#include <meta_data.hpp>

Public Static Attributes

static constexpr ObjectType EnumType = ObjectType::MetaData
namespace slamcore

Helper conversion methods

slamcore::ImageFormat \(\leftrightarrow\) BytesPerChannel

Helper functions for slamcore::MetaDataID

template<class Archive>
static inline void load_minimal(const Archive&, MetaDataID &obj, const std::string &value)
template<class Archive>
static inline std::string save_minimal(const Archive&, const MetaDataID &obj)
static inline std::ostream &operator<<(std::ostream &os, const MetaDataID obj)

Get information about the client library

Enums

enum class MetaDataID : EnumBaseT

Various supported MetaData variables.

Values:

enumerator NumFeatures
enumerator TrackedFeatures
enumerator DistanceTravelled
enumerator ProcessedFrameRate
enumerator TotalDroppedFrames
enumerator Count
class MetaDataInterface
#include <meta_data.hpp>

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* = nullptr) const
template<typename T>
inline std::error_code getValue(T &val, typename std::enable_if<std::is_enum<T>::value, T>::type* = nullptr) const
template<typename T>
inline std::error_code getValue(T &val, typename std::enable_if<std::is_floating_point<T>::value, T>::type* = nullptr) 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.

Protected Functions

virtual std::error_code getValueImpl(int64_t &val) const = 0
virtual std::error_code getValueImpl(double &val) const = 0
virtual std::error_code getValueImpl(std::string &val) const = 0
template<typename T> type >
#include <meta_data.hpp>

Public Static Attributes

static constexpr ObjectType EnumType = ObjectType::MetaData