summaryrefslogtreecommitdiff
path: root/src/journal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/journal.h')
-rw-r--r--src/journal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/journal.h b/src/journal.h
index 2711c3b5..e54814aa 100644
--- a/src/journal.h
+++ b/src/journal.h
@@ -44,6 +44,7 @@
#include "utils.h"
#include "times.h"
+#include "mask.h"
namespace ledger {
@@ -58,6 +59,11 @@ typedef std::list<xact_t *> xacts_list;
typedef std::list<auto_xact_t *> auto_xacts_list;
typedef std::list<period_xact_t *> period_xacts_list;
+typedef std::pair<mask_t, string> payee_mapping_t;
+typedef std::list<payee_mapping_t> payee_mappings_t;
+typedef std::pair<mask_t, account_t *> account_mapping_t;
+typedef std::list<account_mapping_t> account_mappings_t;
+
class journal_t : public noncopyable
{
public:
@@ -110,6 +116,8 @@ public:
period_xacts_list period_xacts;
std::list<fileinfo_t> sources;
bool was_loaded;
+ payee_mappings_t payee_mappings;
+ account_mappings_t account_mappings;
journal_t();
journal_t(const path& pathname);