Represents information about a dissected packet field.
More...
#include <field_information.h>
Represents information about a dissected packet field.
◆ FieldInformation() [1/2]
| FieldInformation::FieldInformation |
( |
field_info * |
fi, |
|
|
QObject * |
parent = Q_NULLPTR |
|
) |
| |
|
explicit |
◆ FieldInformation() [2/2]
| FieldInformation::FieldInformation |
( |
const ProtoNode * |
node, |
|
|
QObject * |
parent = Q_NULLPTR |
|
) |
| |
|
explicit |
◆ appendix()
Retrieves the position of the field's appendix (if any).
- Returns
- A Position structure with the start and length of the appendix.
◆ fieldInfo()
| field_info * FieldInformation::fieldInfo |
( |
| ) |
const |
◆ flag()
| unsigned FieldInformation::flag |
( |
unsigned |
mask | ) |
|
Retrieves a specific flag value based on a mask.
- Parameters
-
| mask | The bitmask to apply to the field's flags. |
- Returns
- The flag value.
◆ headerInfo()
Retrieves the header information for the field.
- Returns
- A HeaderInfo structure containing the data.
◆ isLink()
| bool FieldInformation::isLink |
( |
| ) |
const |
Checks if the field represents a link.
- Returns
- True if it is a link, false otherwise.
◆ isValid()
| bool FieldInformation::isValid |
( |
| ) |
const |
Checks if the field information is valid.
- Returns
- True if valid, false otherwise.
◆ moduleName()
| const QString FieldInformation::moduleName |
( |
| ) |
|
Retrieves the name of the module that registered this field.
- Returns
- The module name as a QString.
◆ parentField()
◆ position()
Retrieves the position of the field within the data source.
- Returns
- A Position structure with the start and length.
◆ printableData()
| const QByteArray FieldInformation::printableData |
( |
| ) |
|
|
virtual |
Gets the printable data for the field.
- Returns
- A QByteArray containing the printable data.
Implements IDataPrintable.
◆ setParentField()
| void FieldInformation::setParentField |
( |
field_info * |
fi | ) |
|
Sets the parent field for this field.
- Parameters
-
◆ toString()
| QString FieldInformation::toString |
( |
| ) |
|
Converts the field information to a string representation.
- Returns
- The string representation of the field.
◆ treeType()
| int FieldInformation::treeType |
( |
| ) |
|
Gets the tree type associated with this field.
- Returns
- The tree type identifier.
◆ tvbContains()
Checks if the TVB associated with this field contains the given field.
- Parameters
-
- Returns
- True if this field's TVB contains the specified field, false otherwise.
◆ url()
| QString FieldInformation::url |
( |
| ) |
|
Retrieves a URL related to this field, if available.
- Returns
- The URL string.
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/utils/field_information.h
- /builds/wireshark/wireshark/ui/qt/utils/field_information.cpp