very basic input to event working...

This commit is contained in:
Bernhard Amann 2011-10-25 14:11:21 -07:00
parent d7a3b85fcd
commit 5b0c307f87
5 changed files with 42 additions and 8 deletions

View file

@ -5,6 +5,8 @@
InputReader::InputReader()
{
buf = 0;
buf_len = 1024;
disabled = true; // disabled will be set correcty in init.
}
@ -18,6 +20,11 @@ void InputReader::Error(const char *msg)
input_mgr->Error(this, msg);
}
void InputReader::Error(const string &msg)
{
input_mgr->Error(this, msg.c_str());
}
bool InputReader::Init(string arg_source, int arg_num_fields,
const LogField* const * arg_fields)
{
@ -38,6 +45,10 @@ bool InputReader::Update() {
return DoUpdate();
}
void InputReader::SendEvent(const string& name, const int num_vals, const LogVal* const *vals) {
input_mgr->SendEvent(name, num_vals, vals);
}
// stolen from logwriter
const char* InputReader::Fmt(const char* format, ...)
{