mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
way less compile errors.
This commit is contained in:
parent
e726bfe301
commit
833e724400
9 changed files with 257 additions and 151 deletions
|
@ -0,0 +1,54 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#ifndef INPUT_READERFRONTEND_H
|
||||
#define INPUT_READERFRONTEND_H
|
||||
|
||||
#include "Manager.h"
|
||||
|
||||
#include "threading/MsgThread.h"
|
||||
|
||||
namespace input {
|
||||
|
||||
class ReaderBackend;
|
||||
|
||||
class ReaderFrontend {
|
||||
public:
|
||||
ReaderFrontend(bro_int_t type);
|
||||
|
||||
virtual ~ReaderFrontend();
|
||||
|
||||
void Init(string arg_source);
|
||||
|
||||
void Update();
|
||||
|
||||
void AddFilter( int id, int arg_num_fields, const threading::Field* const* fields );
|
||||
|
||||
void Finish();
|
||||
|
||||
/**
|
||||
* Returns a descriptive name for the reader, including the type of
|
||||
* the backend and the source used.
|
||||
*
|
||||
* This method is safe to call from any thread.
|
||||
*/
|
||||
string Name() const;
|
||||
|
||||
|
||||
protected:
|
||||
friend class Manager;
|
||||
|
||||
const string Source() const { return source; }
|
||||
|
||||
string ty_name; // Name of the backend type. Set by the manager.
|
||||
|
||||
private:
|
||||
string source;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif /* INPUT_READERFRONTEND_H */
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue