Astarte device API for C++ 0.8.1
Astarte device SDK for C++
Loading...
Searching...
No Matches
astarte::device::PropertyIndividual Class Reference

Representing the Astarte individual property data. More...

#include <property.hpp>

Public Member Functions

 PropertyIndividual (const std::optional< Data > &data)
 Constructor for the PropertyIndividual class.
 
auto get_value () const -> const std::optional< Data > &
 Gets the value contained within the object.
 
auto operator== (const PropertyIndividual &other) const -> bool
 Overloader for the comparison operator ==.
 
auto operator!= (const PropertyIndividual &other) const -> bool
 Overloader for the comparison operator !=.
 

Detailed Description

Representing the Astarte individual property data.

Constructor & Destructor Documentation

◆ PropertyIndividual()

astarte::device::PropertyIndividual::PropertyIndividual ( const std::optional< Data > & data)
explicit

Constructor for the PropertyIndividual class.

Parameters
[in]dataThe wrapped Astarte data type.

Member Function Documentation

◆ get_value()

auto astarte::device::PropertyIndividual::get_value ( ) const -> const std::optional< Data > &
nodiscard

Gets the value contained within the object.

Returns
A constant reference to the data, if any.

◆ operator!=()

auto astarte::device::PropertyIndividual::operator!= ( const PropertyIndividual & other) const -> bool
nodiscard

Overloader for the comparison operator !=.

Parameters
[in]otherThe object to compare to.
Returns
True when different, false otherwise.

◆ operator==()

auto astarte::device::PropertyIndividual::operator== ( const PropertyIndividual & other) const -> bool
nodiscard

Overloader for the comparison operator ==.

Parameters
[in]otherThe object to compare to.
Returns
True when equal, false otherwise.

The documentation for this class was generated from the following file: