mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
well, it compiles. and perhaps it sends an event. billiant.
This commit is contained in:
parent
0eafeb0369
commit
f8be3519c7
5 changed files with 63 additions and 7 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue