Logo Search packages:      
Sourcecode: poco version File versions  Download package

Poco::ArchiveStrategy Class Reference

#include <ArchiveStrategy.h>

Inheritance diagram for Poco::ArchiveStrategy:

Poco::ArchiveByNumberStrategy Poco::ArchiveByTimestampStrategy< DT >

List of all members.


Detailed Description

The ArchiveStrategy is used by FileChannel to rename a rotated log file for archiving.

Archived files can be automatically compressed, using the gzip file format.

Definition at line 55 of file ArchiveStrategy.h.


Public Member Functions

virtual LogFilearchive (LogFile *pFile)=0
void compress (bool flag=true)

Protected Member Functions

bool exists (const std::string &name)
void moveFile (const std::string &oldName, const std::string &newName)
 Enables or disables compression of archived files.

Private Member Functions

 ArchiveStrategy (const ArchiveStrategy &)
ArchiveStrategyoperator= (const ArchiveStrategy &)

Private Attributes

bool _compress
ArchiveCompressor * _pCompressor

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

Generated by  Doxygen 1.6.0   Back to index