From c11d32571246e51f401deee88f4ebd752b467fdc Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 4 Mar 2009 23:53:43 -0400 Subject: Reduced the #include dependency tree to a minimum --- src/journal.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src/journal.h') 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 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 xacts_list; +typedef std::list auto_xacts_list; +typedef std::list 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 -- cgit v1.2.3