Class Field¶
Defined in File peafowl.hpp
Class Documentation¶
-
class
peafowl::Field¶ A generic field extracted by peafowl.
Public Functions
-
Field()¶ Constructs an empty field.
-
bool
isPresent() const¶ Checks if the field was present in the packet.
- Return
True if the field was present, false otherwise.
-
std::string
getString() const¶ Gets the field (as a string).
- Return
The field (as a string).
-
int64_t
getNumber() const¶ Gets the field (as a number).
- Return
The field (as a number).
-
pfwl_field_t
getNative() const¶ Gets the C representation of the field.
- Return
The C representation of the field.
-