summaryrefslogtreecommitdiff
path: root/config.h
blob: 799e1d303f681425ef34285eb288ae4829464f4b (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 _AUTOXACT_H
#define _AUTOXACT_H

#include "ledger.h"

#include <iostream>
#include <memory>

namespace ledger {

extern const std::string bal_fmt;
extern const std::string reg_fmt;
extern const std::string plot_value_fmt;
extern const std::string plot_total_fmt;
extern const std::string print_fmt;
extern const 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