Astarte device API for C++ 0.7.1
Astarte device SDK for C++
Loading...
Searching...
No Matches
AstarteDeviceSdk::AstartePropertyIndividual Class Reference

Representing the Astarte individual datastream data. More...

#include <property.hpp>

Public Member Functions

 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.
 
auto operator== (const AstartePropertyIndividual &other) const -> bool
 Overloader for the comparison operator ==.
 
auto operator!= (const AstartePropertyIndividual &other) const -> bool
 Overloader for the comparison operator !=.
 

Detailed Description

Representing the Astarte individual datastream data.

Constructor & Destructor Documentation

◆ AstartePropertyIndividual()

AstarteDeviceSdk::AstartePropertyIndividual::AstartePropertyIndividual ( const std::optional< AstarteData > & data)
explicit

Constructor for the AstarteDatastreamIndividual class.

Parameters
dataThe wrapped Astarte data type.

Member Function Documentation

◆ get_value()

auto AstarteDeviceSdk::AstartePropertyIndividual::get_value ( ) const -> const std::optional< AstarteData > &
nodiscard

Get the value contained within the object.

Returns
A constant reference to the data, if any.

◆ operator!=()

auto AstarteDeviceSdk::AstartePropertyIndividual::operator!= ( const AstartePropertyIndividual & other) const -> bool
nodiscard

Overloader for the comparison operator !=.

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

◆ operator==()

auto AstarteDeviceSdk::AstartePropertyIndividual::operator== ( const AstartePropertyIndividual & other) const -> bool
nodiscard

Overloader for the comparison operator ==.

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

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