diff options
author | John Wiegley <johnw@newartisans.com> | 2011-02-28 16:24:15 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2011-02-28 16:24:15 -0500 |
commit | 8388baafd3e2c6e4b2f76878215d503e8842da27 (patch) | |
tree | 246422575a6338acfc946ce501ae4e2df056ccf1 /src/timelog.h | |
parent | 021fc50842a85d8357ca70c13e35b169a4d91e29 (diff) | |
download | fork-ledger-8388baafd3e2c6e4b2f76878215d503e8842da27.tar.gz fork-ledger-8388baafd3e2c6e4b2f76878215d503e8842da27.tar.bz2 fork-ledger-8388baafd3e2c6e4b2f76878215d503e8842da27.zip |
Support Boost 1.46 and Boost.Filesystem v3
Diffstat (limited to 'src/timelog.h')
-rw-r--r-- | src/timelog.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/timelog.h b/src/timelog.h index 92b80edc..020ae4f2 100644 --- a/src/timelog.h +++ b/src/timelog.h @@ -83,21 +83,27 @@ public: } }; -class time_log_t +class time_log_t : public boost::noncopyable { std::list<time_xact_t> time_xacts; journal_t& journal; scope_t& scope; public: + std::size_t * context_count; + time_log_t(journal_t& _journal, scope_t& _scope) - : journal(_journal), scope(_scope) { - TRACE_CTOR(time_log_t, "journal_t&, scope_t&"); + : journal(_journal), scope(_scope), context_count(NULL) { + TRACE_CTOR(time_log_t, "journal_t&, scope_t&, std::size&"); + } + ~time_log_t() { + TRACE_DTOR(time_log_t); } - ~time_log_t(); void clock_in(time_xact_t event); void clock_out(time_xact_t event); + + void close(); }; } // namespace ledger |