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

Ownership definitions for communication with Astarte. More...

#include <cstdint>
#include <ostream>
#include <string>
#include "astarte_device_sdk/errors.hpp"
#include "astarte_device_sdk/formatter.hpp"

Go to the source code of this file.

Classes

struct  astarte_fmt::formatter< astarte::device::Ownership >
 astarte_fmt::formatter specialization for astarte::device::Ownership. More...
 

Namespaces

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

Enumerations

enum  astarte::device::Ownership : int8_t { astarte::device::kDevice , astarte::device::kServer }
 Possible Astarte ownership. More...
 

Functions

auto astarte::device::ownership_from_str (const std::string &ownership) -> astarte_tl::expected< Ownership, Error >
 Converts a string to an Ownership enum.
 
auto operator<< (std::ostream &out, const astarte::device::Ownership ownership) -> std::ostream &
 Stream insertion operator for Ownership.
 

Detailed Description

Ownership definitions for communication with Astarte.

Function Documentation

◆ operator<<()

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

Stream insertion operator for Ownership.

Parameters
[in,out]outThe output stream.
[in]ownershipThe Ownership enum to output.
Returns
A reference to the output stream.