PcapPlusPlus  Next
pcpp::IFileWriterDevice Class Referenceabstract

#include <PcapFileDevice.h>

Inheritance diagram for pcpp::IFileWriterDevice:
pcpp::IFileDevice pcpp::IPcapDevice pcpp::IFilterableDevice pcpp::IPcapStatisticsProvider pcpp::IDevice pcpp::PcapFileWriterDevice pcpp::PcapNgFileWriterDevice

Public Member Functions

virtual ~IFileWriterDevice ()=default
 A destructor for this class.
 
- Public Member Functions inherited from pcpp::IFileDevice
std::string getFileName () const
 
void close () override
 Close the file.
 
bool isOpened () const override
 
void getStatistics (PcapStats &stats) const override
 Get the statistics for this device. More...
 
- Public Member Functions inherited from pcpp::IFilterableDevice
bool setFilter (GeneralFilter &filter)
 
bool setFilter (std::string const &filterAsString)
 
bool clearFilter ()
 
- Public Member Functions inherited from pcpp::IDevice
virtual bool open ()=0
 
- Public Member Functions inherited from pcpp::IPcapStatisticsProvider
PcapStats getStatistics () const
 Get statistics from the device. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from pcpp::IPcapDevice
static std::string getPcapLibVersionInfo ()
 
static bool matchPacketWithFilter (GeneralFilter &filter, RawPacket *rawPacket)
 
- Protected Member Functions inherited from pcpp::IFileDevice
void reportPacketProcessed (uint64_t numPackets=1)
 Report that packets were processed (read or written, depending on the device type). More...
 
void reportPacketDropped (uint64_t numPackets=1)
 Report that packets were dropped (not read or not written, depending on the device type). More...
 
void resetStatisticCounters ()
 Reset the internal statistic counters to zero.
 
- Protected Member Functions inherited from pcpp::IPcapDevice
bool doUpdateFilter (std::string const *filterAsString) override
 Updates the filter on the device with a BPF string. More...
 

Detailed Description

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