blob: b9053c04f84caea2c5bd69eb45dbdaa069f4cd38 [file] [log] [blame]
/*
* Copyright (C) 2018 CESNET, https://photonics.cesnet.cz/
* Copyright (C) 2018 FIT CVUT, https://fit.cvut.cz/
*
* Written by Václav Kubernát <kubervac@fit.cvut.cz>
*
*/
#pragma once
#include <boost/variant.hpp>
struct enum_ {
enum_();
enum_(const std::string& value);
bool operator==(const enum_& b) const;
std::string m_value;
};
struct binary_ {
binary_();
binary_(const std::string& value);
bool operator==(const binary_& b) const;
std::string m_value;
};
using leaf_data_ = boost::variant<enum_,
binary_,
double,
bool,
int32_t,
uint32_t,
std::string>;