mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
read vector.
still missing: enums, empty fields for optional parameters.
This commit is contained in:
parent
fb5f26e7fc
commit
821878835a
5 changed files with 83 additions and 36 deletions
|
@ -12,15 +12,15 @@
|
|||
struct FieldMapping {
|
||||
string name;
|
||||
TypeTag type;
|
||||
TypeTag set_type;
|
||||
TypeTag subtype;
|
||||
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 string& arg_name, const TypeTag& arg_type, const TypeTag& arg_subtype, int arg_position);
|
||||
FieldMapping(const FieldMapping& arg);
|
||||
FieldMapping() { position = -1; }
|
||||
|
||||
FieldMapping setType();
|
||||
FieldMapping subType();
|
||||
bool IsEmpty() { return position == -1; }
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue