ICF 3.0.5.47
Technical documentation of ICF Libraries
ifileproc::CCopyFilesTreeComp Class Reference

Copy files from one directory to another one. More...

#include <CCopyFilesTreeComp.h>

Inheritance diagram for ifileproc::CCopyFilesTreeComp:
Collaboration diagram for ifileproc::CCopyFilesTreeComp:

Public Types

enum  MessageId { MI_END_STATUS = 0xa830 , MI_NO_INPUT , MI_NO_OUTPUT }
 
typedef ilog::CLoggerComponentBase BaseClass
 
- Public Types inherited from ilog::TLoggerCompWrap< Base >
enum  MessageId { MI_BAD_DEPENDENCY = 0x8a340 }
 
typedef Base BaseClass
 
typedef ilog::CLoggerBase BaseClass2
 
- Public Types inherited from ifileproc::IFileConversion
enum  MessageId { MI_INPUT_PATH = 0x5cd40 , MI_OUTPUT_PATH }
 Types of messages which can be produced during execution of ConvertFiles method. More...
 

Public Member Functions

virtual iproc::CTaskState ConvertFiles (const QString &inputPath, QString &outputPath, const iprm::IParamsSet *paramsPtr=nullptr, iproc::IProgressManager *progressManagerPtr=nullptr) const override
 Copy a file or files from inputPath to destination outputPath.
 
- Public Member Functions inherited from ilog::CLoggerBase
 CLoggerBase ()
 
const QByteArray & GetVerboseSenderId () const
 Get sender ID for verbose messages.
 
void SetVerboseSenderId (const QByteArray &id)
 Set sender ID for verbose messages.
 
void SetLogPtr (ilog::IMessageConsumer *logPtr) override
 Install log.
 
ilog::IMessageConsumerGetLogPtr () const override
 Get log.
 
- Public Member Functions inherited from ilog::ILoggable
- Public Member Functions inherited from ifileproc::IFileConversion

Protected Member Functions

bool CheckFileExistTree (const QDir &inputDir, const QStringList &filters, const QStringList &excludeFilters, int recursionDepth) const
 Check if in tree specified files exists.
 
bool CopyFileTree (const QDir &inputDir, const QDir &outputDir, const iprm::IParamsSet *paramsPtr, const QStringList &filters, const QStringList &excludeFilters, int recursionDepth, int &counter) const
 Copy complete files tree for specified filter.
 
bool CheckIfExcluded (const QString &fileName, const QStringList &excludeFilters) const
 Check if some file should be excluded from processing.
 
- Protected Member Functions inherited from ilog::TLoggerCompWrap< Base >
virtual void DecorateMessage (istd::IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const override
 Decorate message parts before outputting.
 
void OnComponentCreated () override
 
void OnComponentDestroyed () override
 
- Protected Member Functions inherited from ilog::CLoggerBase
bool IsVerboseEnabled () const
 Check if verbose messages are enabled.
 
bool SendVerboseMessage (const QString &message, const QString &messageSource=QString()) const
 Send verbose message.
 
bool SendInfoMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send info message to log.
 
bool SendWarningMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send warning message to log.
 
bool SendErrorMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send error message to log.
 
bool SendCriticalMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send critical message to log.
 
bool SendInfoMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send once info message to log.
 
bool SendWarningMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send once warning message to log.
 
bool SendErrorMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send once error message to log.
 
bool SendCriticalMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send once critical message to log.
 
bool SendUserMessage (const istd::IInformationProvider *messagePtr) const
 Send message with user object.
 
bool AllowMessageOnceAgain (int id)
 Reset message lock.
 
bool IsLogConsumed (const istd::IInformationProvider::InformationCategory *categoryPtr=nullptr, const int *flagsPtr=nullptr) const override
 Check if any log message is consumed.
 
bool SendLogMessage (istd::IInformationProvider::InformationCategory category, int id, const QString &message, const QString &messageSource, int flags=0) const override
 Send any message to log.
 
- Protected Member Functions inherited from istd::ILogger

Additional Inherited Members

- Protected Attributes inherited from ilog::CLoggerBase
QSet< int > m_onceMessageIds
 

Detailed Description

Copy files from one directory to another one.

This component is part of installation concept. It is designed to use it as free component.

Definition at line 27 of file CCopyFilesTreeComp.h.

Member Typedef Documentation

◆ BaseClass

Member Enumeration Documentation

◆ MessageId

Enumerator
MI_END_STATUS 
MI_NO_INPUT 
MI_NO_OUTPUT 

Definition at line 34 of file CCopyFilesTreeComp.h.

Member Function Documentation

◆ CheckFileExistTree()

bool ifileproc::CCopyFilesTreeComp::CheckFileExistTree ( const QDir & inputDir,
const QStringList & filters,
const QStringList & excludeFilters,
int recursionDepth ) const
protected

Check if in tree specified files exists.

Parameters
inputDirinput directory.
filterslist of file filter will be copied.
recursionDepthmaximale recursion depth.

◆ CheckIfExcluded()

bool ifileproc::CCopyFilesTreeComp::CheckIfExcluded ( const QString & fileName,
const QStringList & excludeFilters ) const
protected

Check if some file should be excluded from processing.

◆ ConvertFiles()

virtual iproc::CTaskState ifileproc::CCopyFilesTreeComp::ConvertFiles ( const QString & inputPath,
QString & outputPath,
const iprm::IParamsSet * paramsPtr = nullptr,
iproc::IProgressManager * progressManagerPtr = nullptr ) const
overridevirtual

Copy a file or files from inputPath to destination outputPath.

Parameters
inputPathPath to the input file or directory.
outputPathPath to the output file or directory. Output file path can be calculated or modified inside of ConvertFiles method.
paramsPtrFile conversion parameters
progressManagerPtrProgress manager used for getting information about file conversion progress state and canceling.
Returns
Status of conversion operation,
See also
iproc::IProcessor.

Implements ifileproc::IFileConversion.

◆ CopyFileTree()

bool ifileproc::CCopyFilesTreeComp::CopyFileTree ( const QDir & inputDir,
const QDir & outputDir,
const iprm::IParamsSet * paramsPtr,
const QStringList & filters,
const QStringList & excludeFilters,
int recursionDepth,
int & counter ) const
protected

Copy complete files tree for specified filter.

Parameters
inputDirinput directory.
outputDiroutput directory.
filterslist of file filter will be copied.
copyFuncfunction used to copy single file.
recursionDepthmaximale recursion depth.

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

© Witold Gantzke and Kirill Lepskiy