#pragma once #include #include #include namespace hocon { /** * This exists because sometimes null is not the same as missing. Specifically, * if a value is set to null we can give a better error message (indicating * where it was set to null) in case someone asks for the value. Also, null * overrides values set "earlier" in the search path, while missing values do * not. */ class config_null : public config_value { public: config_null(shared_origin origin); config_value::type value_type() const override; std::string transform_to_string() const override; unwrapped_value unwrapped() const override; bool operator==(config_value const& other) const override; protected: shared_value new_copy(shared_origin) const override; void render(std::string& result, int indent, bool at_root, config_render_options options) const override; }; } // namespace hocon