From 7189b181ef3e0da74d992da87771fa26399391bc Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 15 Aug 2004 17:08:56 -0400 Subject: further restructuring --- config.h | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 config.h (limited to 'config.h') diff --git a/config.h b/config.h new file mode 100644 index 00000000..c026bdec --- /dev/null +++ b/config.h @@ -0,0 +1,54 @@ +#ifndef _AUTOXACT_H +#define _AUTOXACT_H + +#include "ledger.h" + +#include +#include + +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 files; + strings_list price_settings; + std::string init_file; + std::string cache_file; + std::string price_db; + std::string output_file; + 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_subtotals; + bool show_expanded; + 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 std::auto_ptr config; + +void option_help(std::ostream& out); + +} // namespace ledger + +#endif // _CONFIG_H -- cgit v1.2.3