Sha256: 169e73f1d7998e910d798c30816907e2cdec09e24491b12497e7712e203d43d3

Contents?: true

Size: 1.02 KB

Versions: 16

Compression:

Stored size: 1.02 KB

Contents

#pragma once

#include <hocon/config_value.hpp>
#include <internal/simple_config_origin.hpp>

#include <string>

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

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
facter-3.12.2.cfacter.20181217 ext/facter/cpp-hocon/lib/inc/internal/values/config_null.hpp
facter-3.12.1.cfacter.20181031 ext/facter/cpp-hocon/lib/inc/internal/values/config_null.hpp
facter-3.11.6.cfacter.20181031 ext/facter/cpp-hocon/lib/inc/internal/values/config_null.hpp
facter-3.12.1.cfacter.20181023 ext/facter/cpp-hocon/lib/inc/internal/values/config_null.hpp
facter-3.11.5.cfacter.20181022 ext/facter/cpp-hocon/lib/inc/internal/values/config_null.hpp
facter-3.12.0.cfacter.20181004 ext/facter/cpp-hocon/lib/inc/internal/values/config_null.hpp
facter-3.12.0.cfacter.20181001 ext/facter/cpp-hocon/lib/inc/internal/values/config_null.hpp
facter-3.12.0.cfacter.20180918 ext/facter/cpp-hocon/lib/inc/internal/values/config_null.hpp
facter-3.11.4.cfacter.20180821 ext/facter/cpp-hocon/lib/inc/internal/values/config_null.hpp
facter-3.11.3.cfacter.20180716 ext/facter/cpp-hocon/lib/inc/internal/values/config_null.hpp
facter-3.11.2.cfacter.20180612 ext/facter/cpp-hocon/lib/inc/internal/values/config_null.hpp
facter-3.9.6.cfacter.20180612 ext/facter/cpp-hocon/lib/inc/internal/values/config_null.hpp
facter-3.11.2.cfacter.20180606 ext/facter/cpp-hocon/lib/inc/internal/values/config_null.hpp
facter-3.9.6.cfacter.20180606 ext/facter/cpp-hocon/lib/inc/internal/values/config_null.hpp
facter-3.11.0.cfacter.20180319 ext/facter/cpp-hocon/lib/inc/internal/values/config_null.hpp
cfacter-3.11.0.rc.20180314 ext/facter/cpp-hocon/lib/inc/internal/values/config_null.hpp