implement value.hpp
Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
parent
3395eba331
commit
5d91c89533
6 changed files with 93 additions and 96 deletions
|
|
@ -1,14 +1,13 @@
|
|||
#pragma once
|
||||
|
||||
#include <variant>
|
||||
|
||||
#include <boost/json.hpp>
|
||||
#include <boost/variant2.hpp>
|
||||
|
||||
#include <cppbase/result.hpp>
|
||||
|
||||
struct IkarusValue {
|
||||
public:
|
||||
using Data = std::variant<struct IkarusToggleValue *, struct IkarusNumberValue *, struct IkarusTextValue *>;
|
||||
using Data = boost::variant2::variant<struct IkarusToggleValue *, struct IkarusNumberValue *, struct IkarusTextValue *>;
|
||||
|
||||
public:
|
||||
explicit IkarusValue(Data data);
|
||||
|
|
@ -28,6 +27,5 @@ public:
|
|||
[[nodiscard]] boost::json::value to_json() const;
|
||||
|
||||
public:
|
||||
bool indeterminate{false};
|
||||
Data data;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue