|
Astarte device API for C++ 0.8.1
Astarte device SDK for C++
|
Types definitions for communication with Astarte. More...
#include <cstdint>#include <ostream>#include <string>#include <string_view>#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::Type > |
| astarte_fmt::formatter specialization for astarte::device::Type. 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::Type : int8_t { astarte::device::kBinaryBlob , astarte::device::kBoolean , astarte::device::kDatetime , astarte::device::kDouble , astarte::device::kInteger , astarte::device::kLongInteger , astarte::device::kString , astarte::device::kBinaryBlobArray , astarte::device::kBooleanArray , astarte::device::kDatetimeArray , astarte::device::kDoubleArray , astarte::device::kIntegerArray , astarte::device::kLongIntegerArray , astarte::device::kStringArray } |
| Enumeration of supported Astarte data types. More... | |
Functions | |
| auto | astarte::device::astarte_type_from_str (const std::string &type) -> astarte_tl::expected< Type, Error > |
| Converts a string representation of a type to a Type enum. | |
| auto | operator<< (std::ostream &out, const astarte::device::Type typ) -> std::ostream & |
| Stream insertion operator for Type. | |
Types definitions for communication with Astarte.
This file defines the enumeration of supported Astarte data types and provides utility functions for string conversion and formatting, enabling type-safe data handling within the SDK.
|
inline |
Stream insertion operator for Type.
| [in,out] | out | The output stream to write to. |
| [in] | typ | The Type enum to output. |