25 #ifndef FABLE_SCHEMA_BOOLEAN_HPP_ 26 #define FABLE_SCHEMA_BOOLEAN_HPP_ 40 Boolean(Type* ptr, std::string&& desc);
48 Json serialize(
const Type& x)
const;
49 Type deserialize(
const Conf& c)
const;
56 inline Boolean make_schema(
bool* ptr, std::string&& desc) {
return Boolean(ptr, std::move(desc)); }
61 #endif // FABLE_SCHEMA_BOOLEAN_HPP_
void validate(const Conf &c) const override
Definition: boolean.cpp:42
Json json_schema() const override
Definition: boolean.cpp:34
void reset_ptr() override
Definition: boolean.cpp:58
nlohmann::json Json
Definition: json.hpp:62
virtual Json to_json() const
Definition: interface.hpp:220
Definition: boolean.hpp:36
void from_conf(const Conf &c) override
Definition: boolean.cpp:49
Definition: interface.hpp:354