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

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

#include <optional>
#include <ostream>
#include <string>
#include <string_view>
#include <utility>
#include <variant>
#include "astarte_device_sdk/formatter.hpp"
#include "astarte_device_sdk/individual.hpp"
#include "astarte_device_sdk/object.hpp"
#include "astarte_device_sdk/property.hpp"

Go to the source code of this file.

Classes

class  astarte::device::Message
 Astarte message class, represents a full message for/from Astarte. More...
 
struct  astarte_fmt::formatter< astarte::device::Message >
 astarte_fmt::formatter specialization for astarte::device::Message. More...
 

Namespaces

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

Functions

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

Detailed Description

Astarte message class and its related methods.

This file defines the message container used to represent data packets exchanged with the Astarte platform, encapsulating interface names, paths, and payloads.

Function Documentation

◆ operator<<()

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

Stream insertion operator for Message.

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