Václav Kubernát | 627f615 | 2018-08-29 13:23:56 +0200 | [diff] [blame] | 1 | /* |
| 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 | |
| 12 | struct enum_ { |
| 13 | enum_(); |
| 14 | enum_(const std::string& value); |
| 15 | bool operator==(const enum_& b) const; |
| 16 | std::string m_value; |
| 17 | }; |
| 18 | |
| 19 | using leaf_data_ = boost::variant<enum_, |
| 20 | double, |
| 21 | bool, |
| 22 | int32_t, |
| 23 | uint32_t, |
| 24 | std::string>; |
| 25 | |