Class Field

Class Documentation

class peafowl::Field

A generic field extracted by peafowl.

Public Functions

Field()

Constructs an empty field.

Field(pfwl_field_t field)

Copy constructor.

Parameters
  • field: Field to be copied.

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.