3 #include <hocon/config_value.hpp>
4 #include <internal/simple_config_origin.hpp>
13 std::string original_text);
15 std::string transform_to_string()
const override;
18 virtual int64_t long_value()
const = 0;
19 virtual double double_value()
const = 0;
20 bool is_whole()
const;
24 bool operator==(
config_value const& other)
const override;
26 int int_value_range_checked(std::string
const&
path)
const;
28 static std::shared_ptr<config_number> new_number(
29 shared_origin
origin, int64_t
value, std::string original_text);
31 static std::shared_ptr<config_number> new_number(
32 shared_origin
origin,
double value, std::string original_text);
35 std::string _original_text;
config_value::type value_type() const override
The type of the value; matches the JSON type schema.
An immutable value, following the JSON type schema.
type
The type of a configuration value (following the JSON type schema).
virtual shared_origin const & origin() const
The origin of the value (file, line number, etc.), for debugging and error messages.
Factory for creating config_document instances.