@@ -42,7 +42,7 @@ namespace pcpp
42
42
/* *
43
43
* Close the file
44
44
*/
45
- virtual void close ();
45
+ void close () override ;
46
46
};
47
47
48
48
@@ -414,7 +414,7 @@ namespace pcpp
414
414
* or if the packet link layer type is different than the one defined for the file
415
415
* (in all cases, an error will be printed to log)
416
416
*/
417
- bool writePacket (RawPacket const & packet);
417
+ bool writePacket (RawPacket const & packet) override ;
418
418
419
419
/* *
420
420
* Write multiple RawPacket to the file. Before using this method please verify the file is opened using open(). This method won't change
@@ -423,7 +423,7 @@ namespace pcpp
423
423
* @return True if all packets were written successfully to the file. False will be returned if the file isn't opened (also, an error
424
424
* log will be printed) or if at least one of the packets wasn't written successfully to the file
425
425
*/
426
- bool writePackets (const RawPacketVector& packets);
426
+ bool writePackets (const RawPacketVector& packets) override ;
427
427
428
428
// override methods
429
429
@@ -433,7 +433,7 @@ namespace pcpp
433
433
* @return True if file was opened/created successfully or if file is already opened. False if opening the file failed for some reason
434
434
* (an error will be printed to log)
435
435
*/
436
- virtual bool open ();
436
+ bool open () override ;
437
437
438
438
/* *
439
439
* Same as open(), but enables to open the file in append mode in which packets will be appended to the file
@@ -445,12 +445,12 @@ namespace pcpp
445
445
* different from current file link type. In case appendMode is set to false, please refer to open() for return
446
446
* values
447
447
*/
448
- bool open (bool appendMode);
448
+ bool open (bool appendMode) override ;
449
449
450
450
/* *
451
451
* Flush and close the pacp file
452
452
*/
453
- virtual void close ();
453
+ void close () override ;
454
454
455
455
/* *
456
456
* Flush packets to disk.
@@ -461,7 +461,7 @@ namespace pcpp
461
461
* Get statistics of packets written so far.
462
462
* @param[out] stats The stats struct where stats are returned
463
463
*/
464
- virtual void getStatistics (PcapStats& stats) const ;
464
+ void getStatistics (PcapStats& stats) const override ;
465
465
};
466
466
467
467
0 commit comments