Added optional item_handler::title() method

This commit is contained in:
John Wiegley 2010-05-30 02:27:25 -06:00
parent 4d372a8e1e
commit 3215fd71a4

View file

@ -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);
}
}