summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
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);