Public Types | Public Member Functions | List of all members
ifileproc::IFileNamingParams Class Referenceabstract

Interface for calculation parameters of the new file name for any file item. More...

#include <IFileNamingParams.h>

Inheritance diagram for ifileproc::IFileNamingParams:
iser::ISerializable istd::IChangeable istd::IPolymorphic ifileproc::CFileNamingParams ifileproc::CFileNamingParamsComp

Public Types

enum  OverwriteStrategy { RM_OVERWRITE, RM_NUMBERING }
 Strategy mode. More...
 

Public Member Functions

virtual OverwriteStrategy GetOverwriteStrategy () const =0
 Get used strategy for possible overwriting of existing files. More...
 
virtual void SetOverwriteStrategy (OverwriteStrategy overwriteStrategy)=0
 Set renaming mode. More...
 
virtual QString GetPrefix () const =0
 Get prefix of the file. More...
 
virtual void SetPrefix (const QString &prefix)=0
 Set prefix of the file. More...
 
virtual QString GetSuffix () const =0
 Set suffix of the file. More...
 
virtual void SetSuffix (const QString &suffix)=0
 Get suffix of the file. More...
 
virtual QStringList GetPatternsToRemove () const =0
 Get list of text patterns, that must be removed from the output file name. More...
 
virtual void SetPatternsToRemove (const QStringList &patternsToRemove)=0
 Set list of text patterns, that must be removed from the output file name. More...
 

Detailed Description

Interface for calculation parameters of the new file name for any file item.

See Also
IFileNaming

Definition at line 17 of file IFileNamingParams.h.

Member Enumeration Documentation

Strategy mode.

Enumerator
RM_OVERWRITE 

Output file name is equals the input file name.

RM_NUMBERING 

Output file name will be automatic numbered if the file already exists.

Definition at line 23 of file IFileNamingParams.h.

Member Function Documentation

virtual OverwriteStrategy ifileproc::IFileNamingParams::GetOverwriteStrategy ( ) const
pure virtual

Get used strategy for possible overwriting of existing files.

See Also
OverwriteStrategy

Implemented in ifileproc::CFileNamingParams.

virtual QStringList ifileproc::IFileNamingParams::GetPatternsToRemove ( ) const
pure virtual

Get list of text patterns, that must be removed from the output file name.

See Also
SetPatternsToRemove

Implemented in ifileproc::CFileNamingParams.

virtual QString ifileproc::IFileNamingParams::GetPrefix ( ) const
pure virtual

Get prefix of the file.

Implemented in ifileproc::CFileNamingParams.

virtual QString ifileproc::IFileNamingParams::GetSuffix ( ) const
pure virtual

Set suffix of the file.

Implemented in ifileproc::CFileNamingParams.

virtual void ifileproc::IFileNamingParams::SetOverwriteStrategy ( OverwriteStrategy  overwriteStrategy)
pure virtual

Set renaming mode.

See Also
OverwriteStrategy
virtual void ifileproc::IFileNamingParams::SetPatternsToRemove ( const QStringList &  patternsToRemove)
pure virtual

Set list of text patterns, that must be removed from the output file name.

For example, the file name foo_some.txt will be transformed into foo.txt if _some pattern is set.

See Also
GetPatternsToRemove

Implemented in ifileproc::CFileNamingParams.

virtual void ifileproc::IFileNamingParams::SetPrefix ( const QString &  prefix)
pure virtual

Set prefix of the file.

Implemented in ifileproc::CFileNamingParams.

virtual void ifileproc::IFileNamingParams::SetSuffix ( const QString &  suffix)
pure virtual

Get suffix of the file.

Implemented in ifileproc::CFileNamingParams.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy