mirror of
https://github.com/fmang/opustags.git
synced 2025-03-13 08:00:07 +01:00
warn when a handler didn't complete its job
issue #16 for some reason I couldn't get it to work it looked like the options weren't properly parsed
This commit is contained in:
parent
4de88d0ed2
commit
2ef9a825da
@ -1,5 +1,7 @@
|
||||
#include "tags_handlers/stream_tags_handler.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
using namespace opustags;
|
||||
|
||||
const int StreamTagsHandler::ALL_STREAMS = -1;
|
||||
@ -41,6 +43,12 @@ bool StreamTagsHandler::done()
|
||||
return work_finished;
|
||||
}
|
||||
|
||||
void StreamTagsHandler::end_of_file()
|
||||
{
|
||||
if (!work_finished && streamno != ALL_STREAMS)
|
||||
std::cerr << "warning: stream " << streamno << " wasn't found" << std::endl;
|
||||
}
|
||||
|
||||
void StreamTagsHandler::list_impl(const Tags &)
|
||||
{
|
||||
}
|
||||
|
@ -19,6 +19,7 @@ namespace opustags {
|
||||
void list(const int streamno, const Tags &) override;
|
||||
bool edit(const int streamno, Tags &) override;
|
||||
bool done() override;
|
||||
void end_of_file() override;
|
||||
|
||||
protected:
|
||||
virtual void list_impl(const Tags &);
|
||||
|
Loading…
x
Reference in New Issue
Block a user