summaryrefslogtreecommitdiff
path: root/xact.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-31 04:28:58 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-31 04:28:58 -0400
commit8276b51f5692796bfdf75dd64f709e0de1c7caaf (patch)
tree8f2a964080d2ee7e90400e158d3f89e9ffdbfa75 /xact.h
parent208c414ab9600eca4852034a923418948629ced0 (diff)
downloadfork-ledger-8276b51f5692796bfdf75dd64f709e0de1c7caaf.tar.gz
fork-ledger-8276b51f5692796bfdf75dd64f709e0de1c7caaf.tar.bz2
fork-ledger-8276b51f5692796bfdf75dd64f709e0de1c7caaf.zip
A new binary_cache_t object has been creating to manage saving and restoring a
Ledger session from a cache file. It doesn't work at all yet, though at least the major structures are in place now.
Diffstat (limited to 'xact.h')
-rw-r--r--xact.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/xact.h b/xact.h
index 319e4ad8..2078dabd 100644
--- a/xact.h
+++ b/xact.h
@@ -38,13 +38,14 @@
namespace ledger {
// These flags persist with the object
-#define XACT_NORMAL 0x0000
-#define XACT_VIRTUAL 0x0001
-#define XACT_BALANCE 0x0002
-#define XACT_AUTO 0x0004
-#define XACT_BULK_ALLOC 0x0008
-#define XACT_CALCULATED 0x0010
-#define XACT_GENERATED 0x0020
+#define XACT_NORMAL 0x0000 // no flags at all, a basic transaction
+#define XACT_VIRTUAL 0x0001 // the account was specified with (parens)
+#define XACT_BALANCE 0x0002 // the account was specified with [brackets]
+#define XACT_AUTO 0x0004 // transaction created by automated entry
+#define XACT_IN_CACHE 0x0008 // transaction allocated by the binary cache
+#define XACT_CALCULATED 0x0010 // transaction's amount was auto-calculated
+#define XACT_GENERATED 0x0020 // transaction was not found in a journal
+#define XACT_TEMP 0x0040 // transaction is a temporary object
class entry_t;
class account_t;