compiles. sill doesn't do much.

This commit is contained in:
Bernhard Amann 2011-10-21 14:01:18 -07:00
parent 9c8b0dec3b
commit 3654060246
9 changed files with 117 additions and 29 deletions

View file

@ -5,7 +5,7 @@
InputReader::InputReader()
{
disabled = true; // disabled will be set correcty in init.
}
InputReader::~InputReader()
@ -18,17 +18,18 @@ void InputReader::Error(const char *msg)
input_mgr->Error(this, msg);
}
bool InputReader::Init(string source, string eventName) {
//EventHandler* handler = event_registry->Lookup(eventName.c_str());
//if ( handler == 0 ) {
// reporter->Error("Event %s not found", eventName.c_str());
// return false;
//}
//val_list* vl = new val_list;
//vl->append(new Val(12, TYPE_COUNT));
//mgr.Dispatch(new Event(handler, vl));
return true;
bool InputReader::Init(string arg_source, int arg_num_fields,
const LogField* const * arg_fields)
{
source = arg_source;
num_fields = arg_num_fields;
fields = arg_fields;
// disable if DoInit returns error.
disabled = !DoInit(arg_source, arg_num_fields, arg_fields);
return !disabled;
}
void InputReader::Finish() {
DoFinish();
}