Sha256: 52c4c04a9a2dc7c9e20cf7b9c03a5e4c56989c70ab96a8ffaa1644454080e55b

Contents?: true

Size: 1.3 KB

Versions: 16

Compression:

Stored size: 1.3 KB

Contents

#pragma once

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

namespace hocon {

    class substitution_expression;

    class config_reference : public config_value, public unmergeable {
    public:
        config_reference(shared_origin origin, std::shared_ptr<substitution_expression> expr, int prefix_length = 0);

        /**
        * The type of the value; matches the JSON type schema.
        *
        * @return value's type
        */
        type value_type() const override;
        std::vector<shared_value> unmerged_values() const override;
        resolve_status get_resolve_status() const override;
        unwrapped_value unwrapped() const override;

        std::shared_ptr<substitution_expression> expression() const;

        bool operator==(config_value const& other) const override;

    protected:
        shared_value new_copy(shared_origin origin) const override;
        resolve_result<shared_value> resolve_substitutions(resolve_context const& context, resolve_source const& source) const override;
        bool ignores_fallbacks() const override { return false; }
        void render(std::string& s, int indent, bool at_root, config_render_options options) const override;

    private:
        std::shared_ptr<substitution_expression> _expr;
        int _prefix_length;
    };
}

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_reference.hpp
facter-3.12.1.cfacter.20181031 ext/facter/cpp-hocon/lib/inc/internal/values/config_reference.hpp
facter-3.11.6.cfacter.20181031 ext/facter/cpp-hocon/lib/inc/internal/values/config_reference.hpp
facter-3.12.1.cfacter.20181023 ext/facter/cpp-hocon/lib/inc/internal/values/config_reference.hpp
facter-3.11.5.cfacter.20181022 ext/facter/cpp-hocon/lib/inc/internal/values/config_reference.hpp
facter-3.12.0.cfacter.20181004 ext/facter/cpp-hocon/lib/inc/internal/values/config_reference.hpp
facter-3.12.0.cfacter.20181001 ext/facter/cpp-hocon/lib/inc/internal/values/config_reference.hpp
facter-3.12.0.cfacter.20180918 ext/facter/cpp-hocon/lib/inc/internal/values/config_reference.hpp
facter-3.11.4.cfacter.20180821 ext/facter/cpp-hocon/lib/inc/internal/values/config_reference.hpp
facter-3.11.3.cfacter.20180716 ext/facter/cpp-hocon/lib/inc/internal/values/config_reference.hpp
facter-3.11.2.cfacter.20180612 ext/facter/cpp-hocon/lib/inc/internal/values/config_reference.hpp
facter-3.9.6.cfacter.20180612 ext/facter/cpp-hocon/lib/inc/internal/values/config_reference.hpp
facter-3.11.2.cfacter.20180606 ext/facter/cpp-hocon/lib/inc/internal/values/config_reference.hpp
facter-3.9.6.cfacter.20180606 ext/facter/cpp-hocon/lib/inc/internal/values/config_reference.hpp
facter-3.11.0.cfacter.20180319 ext/facter/cpp-hocon/lib/inc/internal/values/config_reference.hpp
cfacter-3.11.0.rc.20180314 ext/facter/cpp-hocon/lib/inc/internal/values/config_reference.hpp