Added optional item_handler::title() method
This commit is contained in:
parent
4d372a8e1e
commit
3215fd71a4
1 changed files with 8 additions and 3 deletions
11
src/chain.h
11
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue