way less compile errors.

This commit is contained in:
Bernhard Amann 2012-02-06 16:14:39 -08:00
parent e726bfe301
commit 833e724400
9 changed files with 257 additions and 151 deletions

View file

@ -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 */