mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
binpac: Initial import of Bro's binpac subdirectory from SVN r7088.
This commit is contained in:
parent
5a1c4fd5fe
commit
c8665318e6
113 changed files with 15630 additions and 0 deletions
38
tools/binpac/src/pac_withinput.h
Normal file
38
tools/binpac/src/pac_withinput.h
Normal file
|
@ -0,0 +1,38 @@
|
|||
#ifndef pac_withinput_h
|
||||
#define pac_withinput_h
|
||||
|
||||
#include "pac_datadep.h"
|
||||
#include "pac_decl.h"
|
||||
#include "pac_field.h"
|
||||
|
||||
class WithInputField : public Field, public Evaluatable
|
||||
{
|
||||
public:
|
||||
WithInputField(ID* id, Type *type, InputBuffer* input);
|
||||
virtual ~WithInputField();
|
||||
|
||||
InputBuffer *input() const { return input_; }
|
||||
|
||||
void Prepare(Env* env);
|
||||
|
||||
// void GenPubDecls(Output* out, Env* env);
|
||||
// void GenPrivDecls(Output* out, Env* env);
|
||||
|
||||
// void GenInitCode(Output* out, Env* env);
|
||||
// void GenCleanUpCode(Output* out, Env* env);
|
||||
|
||||
void GenParseCode(Output* out, Env* env);
|
||||
|
||||
// Instantiate the Evaluatable interface
|
||||
void GenEval(Output* out, Env* env);
|
||||
|
||||
bool RequiresAnalyzerContext() const;
|
||||
|
||||
protected:
|
||||
bool DoTraverse(DataDepVisitor *visitor);
|
||||
|
||||
protected:
|
||||
InputBuffer *input_;
|
||||
};
|
||||
|
||||
#endif // pac_withinput_h
|
Loading…
Add table
Add a link
Reference in a new issue