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

Represents the Astarte individual datastream data. More...

#include <individual.hpp>

Public Member Functions

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

Detailed Description

Represents the Astarte individual datastream data.

This class acts as a wrapper around the Astarte Data class, specifically intended for use with interfaces using individual datastream aggregation.

Constructor & Destructor Documentation

◆ DatastreamIndividual()

astarte::device::DatastreamIndividual::DatastreamIndividual ( Data data)
explicit

Constructor for the DatastreamIndividual class.

Parameters
[in]dataThe wrapped Astarte data type.

Member Function Documentation

◆ get_value()

auto astarte::device::DatastreamIndividual::get_value ( ) const -> const Data &
nodiscard

Gets the value contained within the object.

Returns
A constant reference to the underlying data.

◆ operator!=()

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

Overloader for the comparison operator !=.

Parameters
[in]otherThe object to compare to.
Returns
True if the objects are different, false otherwise.

◆ operator==()

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

Overloader for the comparison operator ==.

Parameters
[in]otherThe object to compare to.
Returns
True if the objects are equal, false otherwise.

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