PcapPlusPlus  24.09
pcpp::IFileDevice Class Reference

#include <PcapFileDevice.h>

Inheritance diagram for pcpp::IFileDevice:
pcpp::IPcapDevice pcpp::IDevice pcpp::IFilterableDevice pcpp::IFileReaderDevice pcpp::IFileWriterDevice pcpp::PcapFileReaderDevice pcpp::PcapNgFileReaderDevice pcpp::SnoopFileReaderDevice pcpp::PcapFileWriterDevice pcpp::PcapNgFileWriterDevice

Public Member Functions

std::string getFileName () const
 
void close () override
 
- Public Member Functions inherited from pcpp::IPcapDevice
virtual void getStatistics (PcapStats &stats) const =0
 
virtual bool setFilter (std::string filterAsString)
 
bool clearFilter ()
 
virtual bool setFilter (GeneralFilter &filter)
 
virtual bool setFilter (std::string filterAsString)=0
 
- Public Member Functions inherited from pcpp::IDevice
virtual bool open ()=0
 
bool isOpened ()
 
- Public Member Functions inherited from pcpp::IFilterableDevice
virtual bool setFilter (GeneralFilter &filter)
 

Additional Inherited Members

- Static Public Member Functions inherited from pcpp::IPcapDevice
static std::string getPcapLibVersionInfo ()
 
static bool matchPacketWithFilter (GeneralFilter &filter, RawPacket *rawPacket)
 

Detailed Description

An abstract class (cannot be instantiated, has a private c'tor) which is the parent class for all file devices

Member Function Documentation

◆ close()

void pcpp::IFileDevice::close ( )
overridevirtual

◆ getFileName()

std::string pcpp::IFileDevice::getFileName ( ) const
Returns
The name of the file