Start vault implementation

This commit is contained in:
John Freeman
2024-10-17 10:09:17 -05:00
committed by Bronek Kozicki
parent 1a032f04e3
commit ff8c6491d7
65 changed files with 2128 additions and 231 deletions

View File

@@ -90,6 +90,14 @@ struct JsonOptions
}
};
template <typename T>
requires requires(T const& t) { t.getJson(JsonOptions::none); }
Json::Value
to_json(T const& t)
{
return t.getJson(JsonOptions::none);
}
namespace detail {
class STVar;
}
@@ -155,7 +163,7 @@ public:
virtual std::string
getText() const;
virtual Json::Value getJson(JsonOptions /*options*/) const;
virtual Json::Value getJson(JsonOptions = JsonOptions::none) const;
virtual void
add(Serializer& s) const;