diff options
author | John Wiegley <johnw@newartisans.com> | 2010-05-30 02:27:25 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-05-30 02:38:33 -0600 |
commit | 3215fd71a499648f5ff8e992bd1ff66e963858a0 (patch) | |
tree | d0cd5444795cf53a8e986361b097d86723c82009 /src/chain.h | |
parent | 4d372a8e1ecd4203fe8d9de24e945ef793e4f039 (diff) | |
download | fork-ledger-3215fd71a499648f5ff8e992bd1ff66e963858a0.tar.gz fork-ledger-3215fd71a499648f5ff8e992bd1ff66e963858a0.tar.bz2 fork-ledger-3215fd71a499648f5ff8e992bd1ff66e963858a0.zip |
Added optional item_handler::title() method
Diffstat (limited to 'src/chain.h')
-rw-r--r-- | src/chain.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/chain.h b/src/chain.h index fbde9f0a..935f2935 100644 --- a/src/chain.h +++ b/src/chain.h @@ -65,14 +65,19 @@ public: TRACE_DTOR(item_handler); } + virtual void title(const string& str) { + if (handler) + handler->title(str); + } + virtual void flush() { - if (handler.get()) + if (handler) handler->flush(); } virtual void operator()(T& item) { - if (handler.get()) { + if (handler) { check_for_signal(); - (*handler.get())(item); + (*handler)(item); } } |