Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Member Functions | List of all members
FrameInformation Class Reference

Provides printable data and dissection information for a single frame. More...

#include <frame_information.h>

Inheritance diagram for FrameInformation:
IDataPrintable

Public Member Functions

 FrameInformation (CaptureFile *cfile, frame_data *fi, QObject *parent=Q_NULLPTR)
 Constructs a new FrameInformation object.
 
virtual ~FrameInformation ()
 Destroys the FrameInformation object.
 
bool isValid ()
 Checks if the frame information is valid and fully loaded.
 
frame_dataframeData () const
 Retrieves the underlying frame data structure.
 
int frameNum () const
 Retrieves the packet or frame number.
 
const QByteArray printableData ()
 Generates the printable data representation of the frame.
 
- Public Member Functions inherited from IDataPrintable
virtual ~IDataPrintable ()
 Destroys the IDataPrintable object.
 

Detailed Description

Provides printable data and dissection information for a single frame.

Constructor & Destructor Documentation

◆ FrameInformation()

FrameInformation::FrameInformation ( CaptureFile cfile,
frame_data fi,
QObject *  parent = Q_NULLPTR 
)
explicit

Constructs a new FrameInformation object.

Parameters
cfilePointer to the capture file containing the frame.
fiPointer to the frame data structure.
parentThe parent QObject, defaults to Q_NULLPTR.

Member Function Documentation

◆ frameData()

frame_data * FrameInformation::frameData ( ) const

Retrieves the underlying frame data structure.

Returns
Pointer to the frame_data.

◆ frameNum()

int FrameInformation::frameNum ( ) const

Retrieves the packet or frame number.

Returns
The frame number.

◆ isValid()

bool FrameInformation::isValid ( )

Checks if the frame information is valid and fully loaded.

Returns
True if valid, false otherwise.

◆ printableData()

const QByteArray FrameInformation::printableData ( )
virtual

Generates the printable data representation of the frame.

Returns
A QByteArray containing the printable frame data.

Implements IDataPrintable.


The documentation for this class was generated from the following files: