![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
#include <CFileNamingParams.h>
Public Member Functions | |
CFileNamingParams () | |
OverwriteStrategy | GetOverwriteStrategy () const override |
Get used strategy for possible overwriting of existing files. | |
void | SetOverwriteStrategy (OverwriteStrategy overwriteStrategy) override |
Set renaming mode. | |
QString | GetPrefix () const override |
Get prefix of the file. | |
void | SetPrefix (const QString &prefix) override |
Set prefix of the file. | |
QString | GetSuffix () const override |
Set suffix of the file. | |
void | SetSuffix (const QString &suffix) override |
Get suffix of the file. | |
QStringList | GetPatternsToRemove () const override |
Get list of text patterns, that must be removed from the output file name. | |
void | SetPatternsToRemove (const QStringList &patternsToRemove) override |
Set list of text patterns, that must be removed from the output file name. | |
bool | Serialize (iser::IArchive &archive) override |
Load or store state of this object as a archive stream. | |
int | GetSupportedOperations () const override |
Get set of flags for supported operations. | |
bool | CopyFrom (const istd::IChangeable &object, istd::IChangeable::CompatibilityMode mode=istd::IChangeable::CM_WITHOUT_REFS) override |
Copy this object from another one. | |
bool | IsEqual (const istd::IChangeable &object) const override |
Compare this object with another object. | |
std::unique_ptr< istd::IChangeable > | CloneMe (istd::IChangeable::CompatibilityMode mode=istd::IChangeable::CM_WITHOUT_REFS) const override |
Make a copy of this object. | |
bool | ResetData (CompatibilityMode mode=CM_WITHOUT_REFS) override |
Reset data to its default state. | |
![]() | |
![]() | |
virtual quint32 | GetMinimalVersion (int versionId) const |
Get minimal needed version to correct storing of this data. | |
![]() | |
virtual QMutex * | GetChangesLock () const |
Get mutex beeing locked during changes, if available. | |
virtual void | BeginChanges (const ChangeSet &changeSet) |
Starts the change transaction. | |
virtual void | EndChanges (const ChangeSet &changeSet) |
Ends the change transaction. | |
virtual void | BeginChangeGroup (const ChangeSet &changeSet) |
Starts group of changes. | |
virtual void | EndChangeGroup (const ChangeSet &changeSet) |
Ends group of changes. | |
Protected Attributes | |
OverwriteStrategy | m_overwriteStrategy |
QString | m_suffix |
QString | m_prefix |
QStringList | m_patternsToRemove |
Additional Inherited Members | |
![]() | |
enum | OverwriteStrategy { RM_OVERWRITE , RM_NUMBERING } |
Strategy mode. More... | |
![]() | |
enum | ChangeFlags { CF_ICF_INTERNAL = 0 , CF_ALL_DATA , CF_ANY , CF_DESTROYING , CF_DELEGATED , CF_NO_UNDO } |
Data model change notification flags. More... | |
enum | SupportedOperations { SO_NONE = 0 , SO_OBSERVE = 1 << 0 , SO_COPY = 1 << 1 , SO_CLONE = 1 << 2 , SO_COMPARE = 1 << 3 , SO_RESET = 1 << 4 , SO_CHANGE_LOCK = 1 << 5 } |
Flags for supported operations. More... | |
enum | CompatibilityMode { CM_STRICT , CM_WITHOUT_REFS , CM_WITH_REFS , CM_CONVERT } |
Control how relationship betweeen objects are interpreted. More... | |
![]() | |
static const ChangeSet & | GetNoChanges () |
Get empty set of changes. | |
static const ChangeSet & | GetAnyChange () |
Get anonymous change set. | |
static const ChangeSet & | GetAllChanges () |
Get anonymous change set. | |
static const ChangeSet & | GetDelegatedChanges () |
Get delegated change set. | |
![]() | |
virtual void | OnBeginChanges () |
Callback function for begin change event. | |
virtual void | OnEndChanges (const ChangeSet &changeSet) |
Callback function for end change event. | |
Definition at line 24 of file CFileNamingParams.h.
ifileproc::CFileNamingParams::CFileNamingParams | ( | ) |
|
overridevirtual |
Make a copy of this object.
You may check, if this functionality is supported over GetSupportedOperations()
.
Reimplemented from istd::IChangeable.
|
overridevirtual |
Copy this object from another one.
Default implementation in istd::IChangeable does nothing. You may check, if this functionality is supported over GetSupportedOperations()
.
Reimplemented from istd::IChangeable.
|
overridevirtual |
Get used strategy for possible overwriting of existing files.
Implements ifileproc::IFileNamingParams.
|
overridevirtual |
Get list of text patterns, that must be removed from the output file name.
Implements ifileproc::IFileNamingParams.
|
overridevirtual |
Get prefix of the file.
Implements ifileproc::IFileNamingParams.
|
overridevirtual |
Set suffix of the file.
Implements ifileproc::IFileNamingParams.
|
overridevirtual |
Get set of flags for supported operations.
Reimplemented from istd::IChangeable.
|
overridevirtual |
Compare this object with another object.
object | Object to be compared You may check, if this functionality is supported over GetSupportedOperations() . |
true
if the objects are identical and false
otherwise. Reimplemented from istd::IChangeable.
|
overridevirtual |
Reset data to its default state.
Default implementation in istd::IChangeable does nothing. You may check, if this functionality is supported over GetSupportedOperations()
.
true
if the operation was successful, and false
otherwise. Reimplemented from istd::IChangeable.
|
overridevirtual |
Load or store state of this object as a archive stream.
Type of operation is depending on archive type.
Implements iser::ISerializable.
|
overridevirtual |
|
overridevirtual |
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.
Implements ifileproc::IFileNamingParams.
|
overridevirtual |
Set prefix of the file.
Implements ifileproc::IFileNamingParams.
|
overridevirtual |
Get suffix of the file.
Implements ifileproc::IFileNamingParams.
|
protected |
Definition at line 50 of file CFileNamingParams.h.
|
protected |
Definition at line 53 of file CFileNamingParams.h.
|
protected |
Definition at line 52 of file CFileNamingParams.h.
|
protected |
Definition at line 51 of file CFileNamingParams.h.
© Witold Gantzke and Kirill Lepskiy