|
PcapPlusPlus
Next
|
#include <Serializers.h>
Public Member Functions | |
| FieldDescriptor (uint16_t fieldId, std::string fieldName, std::vector< FieldDescriptor >(*fieldChildren)()=nullptr) | |
| bool | hasChildren () const |
Public Attributes | |
| const uint16_t | id |
| Stable numeric identifier of the field. | |
| const std::string | name |
| Name of the field. | |
| std::vector< FieldDescriptor >(*const | getChildren )() |
| Function returning the descriptors of the field's children, or nullptr if the field has no children. | |
Describes a serializable field.
|
inline |
Create a field descriptor.
| [in] | fieldId | The stable numeric identifier of the field |
| [in] | fieldName | The name of the field |
| [in] | fieldChildren | A function returning the field's child descriptors, or nullptr if the field has no children |
|
inline |
Check whether the field has child fields.