OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
link_format_parser.hpp
1#pragma once
2#include <ossia/detail/variant.hpp>
3
4#include <boost/container/flat_map.hpp>
5
6#include <cstdint>
7#include <optional>
8#include <string>
9#include <string_view>
10#include <vector>
11
12namespace ossia::coap
13{
14
15struct link_format
16{
17 struct resource
18 {
19 std::string path;
20 boost::container::flat_map<
21 std::string, ossia::variant<ossia::monostate, int64_t, std::string>>
22 options;
23 };
24
25 std::vector<resource> resources;
26};
27
28}
29
30namespace ossia::coap
31{
33std::optional<ossia::coap::link_format> parse_link_format(std::string_view str);
34}