well, it compiles. and perhaps it sends an event. billiant.

This commit is contained in:
Bernhard Amann 2011-10-19 15:41:07 -07:00
parent 0eafeb0369
commit f8be3519c7
5 changed files with 63 additions and 7 deletions

View file

@ -6,16 +6,29 @@
#ifndef INPUTREADER_H
#define INPUTREADER_H
#include "InputMgr.h"
#include "BroString.h"
class InputReader {
public:
InputReader();
virtual ~InputReader();
bool Init(string source, string eventName);
protected:
// Methods that have to be overwritten by the individual readers
// Reports an error to the user.
void Error(const char *msg);
// The following methods return the information as passed to Init().
const string Source() const { return source; }
private:
friend class InputMgr;
string source;
// When an error occurs, this method is called to set a flag marking the
// writer as disabled.