-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathconfig_render_options.cc
44 lines (32 loc) · 1.42 KB
/
config_render_options.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include <hocon/config_render_options.hpp>
namespace hocon {
config_render_options::config_render_options(bool origin_comments, bool comments, bool formatted, bool json) :
_origin_comments(origin_comments), _comments(comments), _formatted(formatted), _json(json) { }
config_render_options config_render_options::concise() {
return config_render_options(false, false, false, true);
}
config_render_options config_render_options::set_origin_comments(bool value) {
return config_render_options(value, _comments, _formatted, _json);
}
bool config_render_options::get_origin_comments() const {
return _origin_comments;
}
config_render_options config_render_options::set_comments(bool value) {
return config_render_options(_origin_comments, value, _formatted, _json);
}
bool config_render_options::get_comments() const {
return _comments;
}
config_render_options config_render_options::set_formatted(bool value) {
return config_render_options(_origin_comments, _comments, value, _json);
}
bool config_render_options::get_formatted() const {
return _formatted;
}
config_render_options config_render_options::set_json(bool value) {
return config_render_options(_origin_comments, _comments, _formatted, value);
}
bool config_render_options::get_json() const {
return _json;
}
} // namespace hocon