diff options
author | John Wiegley <johnw@newartisans.com> | 2009-03-04 23:53:43 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-03-04 23:53:43 -0400 |
commit | c11d32571246e51f401deee88f4ebd752b467fdc (patch) | |
tree | ccfe6c759d1f2f46a501495eeedecc8c679865d7 /src/journal.h | |
parent | 9a47298d811496816903515bdba7652e275cc32a (diff) | |
download | fork-ledger-c11d32571246e51f401deee88f4ebd752b467fdc.tar.gz fork-ledger-c11d32571246e51f401deee88f4ebd752b467fdc.tar.bz2 fork-ledger-c11d32571246e51f401deee88f4ebd752b467fdc.zip |
Reduced the #include dependency tree to a minimum
Diffstat (limited to 'src/journal.h')
-rw-r--r-- | src/journal.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/journal.h b/src/journal.h index b8af8b00..43309590 100644 --- a/src/journal.h +++ b/src/journal.h @@ -48,13 +48,21 @@ #include "utils.h" #include "hooks.h" -#include "xact.h" namespace ledger { typedef std::list<path> paths_list; +class xact_t; +class auto_xact_t; +class xact_finalizer_t; +class period_xact_t; class account_t; +class scope_t; + +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; /** * @brief Brief @@ -64,9 +72,9 @@ class account_t; class journal_t : public noncopyable { public: - account_t * master; - account_t * basket; - xacts_list xacts; + account_t * master; + account_t * basket; + xacts_list xacts; auto_xacts_list auto_xacts; period_xacts_list period_xacts; @@ -104,8 +112,6 @@ public: bool valid() const; }; -extern const string version; - } // namespace ledger #endif // _JOURNAL_H |