cpp-hocon  0.3.0
config_long.hpp
1 #pragma once
2 
3 #include "config_number.hpp"
4 #include <internal/simple_config_origin.hpp>
5 
6 #include <string>
7 
8 namespace hocon {
9 
10  class config_long : public config_number {
11  public:
12  config_long(shared_origin origin, int64_t value, std::string original_text);
13 
14  std::string transform_to_string() const override;
15 
16  unwrapped_value unwrapped() const override;
17 
18  int64_t long_value() const override;
19  double double_value() const override;
20 
21  protected:
22  shared_value new_copy(shared_origin) const override;
23 
24  private:
25  int64_t _value;
26  };
27 
28 } // namespace hocon
hocon::config_value::origin
virtual shared_origin const & origin() const
The origin of the value (file, line number, etc.), for debugging and error messages.
hocon::config_long
Definition: config_long.hpp:10
hocon
Factory for creating config_document instances.
Definition: config.hpp:18
hocon::config_number
Definition: config_number.hpp:10
hocon::value
Definition: tokens.hpp:8