blob: b9053c04f84caea2c5bd69eb45dbdaa069f4cd38 [file] [log] [blame]
Václav Kubernát627f6152018-08-29 13:23:56 +02001/*
2 * Copyright (C) 2018 CESNET, https://photonics.cesnet.cz/
3 * Copyright (C) 2018 FIT CVUT, https://fit.cvut.cz/
4 *
5 * Written by Václav Kubernát <kubervac@fit.cvut.cz>
6 *
7*/
8#pragma once
9
10#include <boost/variant.hpp>
11
12struct enum_ {
13 enum_();
14 enum_(const std::string& value);
15 bool operator==(const enum_& b) const;
16 std::string m_value;
17};
18
Václav Kubernátab538992019-03-06 15:30:50 +010019struct binary_ {
20 binary_();
21 binary_(const std::string& value);
22 bool operator==(const binary_& b) const;
23 std::string m_value;
24};
25
Václav Kubernát627f6152018-08-29 13:23:56 +020026using leaf_data_ = boost::variant<enum_,
Václav Kubernátab538992019-03-06 15:30:50 +010027 binary_,
Václav Kubernát627f6152018-08-29 13:23:56 +020028 double,
29 bool,
30 int32_t,
31 uint32_t,
32 std::string>;