App::BackupPolicy Class Reference

Public Types

enum  Policy { Standard , TimeStamp }
 

Public Member Functions

void apply (const std::string &sourcename, const std::string &targetname)
 
 BackupPolicy ()
 
void setDateFormat (const std::string &fmt)
 
void setNumberOfFiles (int count)
 
void setPolicy (Policy p)
 
void useBackupExtension (bool on)
 
 ~BackupPolicy ()
 

Member Enumeration Documentation

◆ Policy

Enumerator
Standard 
TimeStamp 

Constructor & Destructor Documentation

◆ BackupPolicy()

App::BackupPolicy::BackupPolicy ( )

References Standard.

◆ ~BackupPolicy()

App::BackupPolicy::~BackupPolicy ( )

Member Function Documentation

◆ apply()

void App::BackupPolicy::apply ( const std::string &  sourcename,
const std::string &  targetname 
)

References Standard, and TimeStamp.

Referenced by App::Document::saveToFile().

◆ setDateFormat()

void App::BackupPolicy::setDateFormat ( const std::string &  fmt)

◆ setNumberOfFiles()

void App::BackupPolicy::setNumberOfFiles ( int  count)

◆ setPolicy()

void App::BackupPolicy::setPolicy ( Policy  p)

◆ useBackupExtension()

void App::BackupPolicy::useBackupExtension ( bool  on)

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