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;
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;
virtual shared_origin const & origin() const
The origin of the value (file, line number, etc.), for debugging and error messages.
type
The type of a configuration value (following the JSON type schema).
Factory for creating config_document instances.
bool operator==(config_document const &lhs, config_document const &rhs)
Config documents compare via rendered strings.
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.