summaryrefslogtreecommitdiff
path: root/src/journal.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-03-17 06:22:43 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-03-17 06:22:43 -0400
commit7ca8149ec5c7fa88d98df83e6260210372223036 (patch)
tree4c5741d682e89b1ea4e567c32a78d32ba17737db /src/journal.h
parent3bb4cb6b6055f180112f357cf23463a1b8c186c5 (diff)
parent8dd362b57cf2b49c5268e72898ae873522d8756f (diff)
downloadfork-ledger-7ca8149ec5c7fa88d98df83e6260210372223036.tar.gz
fork-ledger-7ca8149ec5c7fa88d98df83e6260210372223036.tar.bz2
fork-ledger-7ca8149ec5c7fa88d98df83e6260210372223036.zip
Merge branch 'next'
Diffstat (limited to 'src/journal.h')
-rw-r--r--src/journal.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/journal.h b/src/journal.h
index 8d59e3b4..e54814aa 100644
--- a/src/journal.h
+++ b/src/journal.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003-2009, John Wiegley. All rights reserved.
+ * Copyright (c) 2003-2010, John Wiegley. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -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);