diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-15 17:08:56 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-15 17:08:56 -0400 |
commit | 7189b181ef3e0da74d992da87771fa26399391bc (patch) | |
tree | 3c6b677a54161fb63cb169c93d9eade0b316b4da /config.h | |
parent | 78c44b5e795a98baacfbc56943b784370956cbca (diff) | |
download | fork-ledger-7189b181ef3e0da74d992da87771fa26399391bc.tar.gz fork-ledger-7189b181ef3e0da74d992da87771fa26399391bc.tar.bz2 fork-ledger-7189b181ef3e0da74d992da87771fa26399391bc.zip |
further restructuring
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 54 |
1 files changed, 54 insertions, 0 deletions
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 <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 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_t> config; + +void option_help(std::ostream& out); + +} // namespace ledger + +#endif // _CONFIG_H |