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

@ -8,16 +8,22 @@
#include "InputMgr.h"
#include "BroString.h"
#include "LogMgr.h"
class InputReader {
public:
InputReader();
virtual ~InputReader();
bool Init(string source, string eventName);
bool Init(string arg_source, int num_fields, const LogField* const* fields);
void Finish();
protected:
// Methods that have to be overwritten by the individual readers
virtual bool DoInit(string arg_source, int num_fields, const LogField* const * fields) = 0;
virtual void DoFinish() = 0;
// Reports an error to the user.
void Error(const char *msg);
@ -29,6 +35,8 @@ private:
friend class InputMgr;
string source;
int num_fields;
const LogField* const * fields;
// When an error occurs, this method is called to set a flag marking the
// writer as disabled.