mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
InputReader can read Sets.
This commit is contained in:
parent
cde8153c18
commit
4a3c992325
6 changed files with 310 additions and 162 deletions
|
@ -12,11 +12,15 @@
|
|||
struct FieldMapping {
|
||||
string name;
|
||||
TypeTag type;
|
||||
TypeTag set_type;
|
||||
int position;
|
||||
|
||||
FieldMapping(const string& arg_name, const TypeTag& arg_type, int arg_position);
|
||||
FieldMapping(const string& arg_name, const TypeTag& arg_type, const TypeTag& arg_set_type, int arg_position);
|
||||
FieldMapping(const FieldMapping& arg);
|
||||
FieldMapping() { position = -1; }
|
||||
|
||||
FieldMapping setType();
|
||||
bool IsEmpty() { return position == -1; }
|
||||
};
|
||||
|
||||
|
@ -38,6 +42,7 @@ protected:
|
|||
|
||||
private:
|
||||
bool ReadHeader();
|
||||
LogVal* EntryToVal(string s, FieldMapping type);
|
||||
|
||||
bool GetLine(string& str);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue