summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-04 23:53:43 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-04 23:53:43 -0400
commitc11d32571246e51f401deee88f4ebd752b467fdc (patch)
treeccfe6c759d1f2f46a501495eeedecc8c679865d7 /src/report.h
parent9a47298d811496816903515bdba7652e275cc32a (diff)
downloadledger-c11d32571246e51f401deee88f4ebd752b467fdc.tar.gz
ledger-c11d32571246e51f401deee88f4ebd752b467fdc.tar.bz2
ledger-c11d32571246e51f401deee88f4ebd752b467fdc.zip
Reduced the #include dependency tree to a minimum
Diffstat (limited to 'src/report.h')
-rw-r--r--src/report.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/report.h b/src/report.h
index f83f1745..b39cd53a 100644
--- a/src/report.h
+++ b/src/report.h
@@ -46,11 +46,18 @@
#ifndef _REPORT_H
#define _REPORT_H
-#include "session.h"
+#include "interactive.h"
+#include "expr.h"
#include "chain.h"
+#include "stream.h"
+#include "option.h"
+#include "commodity.h"
namespace ledger {
+class session_t;
+class xact_t;
+
// These are the elements of any report:
//
// 1. Formatting string used for outputting the underlying ReportedType.
@@ -156,11 +163,7 @@ public:
return option.str();
}
- value_t reload_command(call_scope_t&) {
- session.close_journal_files();
- session.read_journal_files();
- return true;
- }
+ value_t reload_command(call_scope_t&);
keep_details_t what_to_keep() {
bool lots = HANDLED(lots) || HANDLED(lots_actual);
@@ -174,9 +177,7 @@ public:
option_t<report_t> * lookup_option(const char * p);
- virtual void define(const string& name, expr_t::ptr_op_t def) {
- session.define(name, def);
- }
+ virtual void define(const string& name, expr_t::ptr_op_t def);
virtual expr_t::ptr_op_t lookup(const string& name);