blob: 7da0f73e26012cd8bb687f8910d9fa4084bcd8b9 (
plain)
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
45
46
47
48
49
50
51
52
53
54
55
|
#ifndef _CONFIG_H
#define _CONFIG_H
#include "ledger.h"
#include <iostream>
#include <memory>
namespace ledger {
extern std::string bal_fmt;
extern std::string reg_fmt;
extern std::string plot_value_fmt;
extern std::string plot_total_fmt;
extern std::string print_fmt;
extern std::string equity_fmt;
struct config_t
{
strings_list price_settings;
std::string init_file;
std::string data_file;
std::string cache_file;
std::string price_db;
std::string output_file;
std::string account;
std::string predicate;
std::string display_predicate;
std::string interval_text;
std::string format_string;
std::string date_format;
std::string sort_string;
std::string value_expr;
std::string total_expr;
unsigned long pricing_leeway;
bool show_collapsed;
bool show_subtotal;
bool show_related;
bool show_inverted;
bool show_empty;
bool days_of_the_week;
bool show_revalued;
bool show_revalued_only;
bool download_quotes;
config_t();
};
extern config_t * config;
void option_help(std::ostream& out);
} // namespace ledger
#endif // _CONFIG_H
|