summaryrefslogtreecommitdiff
path: root/config.h
blob: 39404e194d013b7f2fbcd3c5389bf13c737dec21 (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
#ifndef _CONFIG_H
#define _CONFIG_H

#include "ledger.h"

namespace ledger {

class config_t
{
 public:
  path init_file;
  path data_file;
  path cache_file;
  path price_db;

  string balance_format;
  string register_format;
  string wide_register_format;
  string plot_amount_format;
  string plot_total_format;
  string print_format;
  string write_hdr_format;
  string write_xact_format;
  string equity_format;
  string prices_format;
  string pricesdb_format;

  string date_input_format;

  string account;
  string pager;

  unsigned long pricing_leeway;

  bool download_quotes;
  bool use_cache;
  bool cache_dirty;
  bool debug_mode;
  bool verbose_mode;
  bool trace_mode;

  config_t();
};

} // namespace ledger

#endif // _CONFIG_H