mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
compiles. sill doesn't do much.
This commit is contained in:
parent
9c8b0dec3b
commit
3654060246
9 changed files with 117 additions and 29 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue