Astarte device API for C++ 0.8.1
Astarte device SDK for C++
Loading...
Searching...
No Matches
property.hpp
1// (C) Copyright 2025, SECO Mind Srl
2//
3// SPDX-License-Identifier: Apache-2.0
4
5#ifndef ASTARTE_DEVICE_SDK_PROPERTY_H
6#define ASTARTE_DEVICE_SDK_PROPERTY_H
7
12
13#include <optional>
14
16
17namespace AstarteDeviceSdk {
18
21 public:
26 explicit AstartePropertyIndividual(const std::optional<AstarteData>& data);
31 [[nodiscard]] auto get_value() const -> const std::optional<AstarteData>&;
37 [[nodiscard]] auto operator==(const AstartePropertyIndividual& other) const -> bool;
43 [[nodiscard]] auto operator!=(const AstartePropertyIndividual& other) const -> bool;
44
45 private:
46 std::optional<AstarteData> data_;
47};
48
49} // namespace AstarteDeviceSdk
50
51#endif // ASTARTE_DEVICE_SDK_PROPERTY_H
Astarte data class, representing the basic Astarte types.
Definition data.hpp:40
AstartePropertyIndividual(const std::optional< AstarteData > &data)
Constructor for the AstarteDatastreamIndividual class.
auto get_value() const -> const std::optional< AstarteData > &
Get the value contained within the object.
Astarte data class and its related methods.
Umbrella namespace for the Astarte device SDK.
Definition data.hpp:23