5#ifndef ASTARTE_DEVICE_SDK_INDIVIDUAL_H
6#define ASTARTE_DEVICE_SDK_INDIVIDUAL_H
76 template <
typename ParseContext>
77 constexpr auto parse(ParseContext& ctx)
const {
88 template <
typename FormatContext>
90 return astarte_fmt::format_to(ctx.out(),
"{}", data.
get_value());
103 out << astarte_fmt::format(
"{}", data);
Represents a single Astarte data value.
Definition data.hpp:61
Represents the Astarte individual datastream data.
Definition individual.hpp:29
DatastreamIndividual(Data data)
Constructor for the DatastreamIndividual class.
auto get_value() const -> const Data &
Gets the value contained within the object.
Astarte data class and its related methods.
auto operator<<(std::ostream &out, const astarte::device::Data &data) -> std::ostream &
Stream insertion operator for Data.
Definition data.hpp:243
Umbrella namespace for the Astarte device library.
Definition data.hpp:29
Namespace alias for the formatting library (std or fmt).
Definition formatter.hpp:45
Global namespace for all Astarte related functionality.
Definition data.hpp:29