Astarte device API for C++ 0.8.1
Astarte device SDK for C++
Loading...
Searching...
No Matches
data.hpp File Reference

Astarte data class and its related methods. More...

#include <chrono>
#include <cstdint>
#include <optional>
#include <ostream>
#include <string>
#include <string_view>
#include <type_traits>
#include <variant>
#include <vector>
#include "astarte_device_sdk/formatter.hpp"
#include "astarte_device_sdk/type.hpp"

Go to the source code of this file.

Classes

class  astarte::device::Data
 Represents a single Astarte data value. More...
 
struct  astarte_fmt::formatter< astarte::device::Data >
 astarte_fmt::formatter specialization for astarte::device::Data. More...
 

Namespaces

namespace  astarte
 Global namespace for all Astarte related functionality.
 
namespace  astarte::device
 Umbrella namespace for the Astarte device library.
 

Concepts

concept  astarte::device::DataAllowedType
 C++ concept to restrict the allowed types for instances of an Astarte data class.
 

Functions

auto operator<< (std::ostream &out, const astarte::device::Data &data) -> std::ostream &
 Stream insertion operator for Data.
 

Detailed Description

Astarte data class and its related methods.

This file defines the container class for data exchanged with the Astarte platform, handling type mapping between C++ and Astarte's data model.

Function Documentation

◆ operator<<()

auto operator<< ( std::ostream & out,
const astarte::device::Data & data ) -> std::ostream&
inline

Stream insertion operator for Data.

Parameters
[in,out]outThe output stream.
[in]dataThe Data object to output.
Returns
A reference to the output stream.