Public Types | Public Member Functions | Protected Member Functions | List of all members
ifileproc::CCopyFilesTreeComp Class Reference

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

#include <CCopyFilesTreeComp.h>

Inheritance diagram for ifileproc::CCopyFilesTreeComp:
ilog::TLoggerCompWrap< Base > ifileproc::IFileConversion ilog::CLoggerBase istd::IPolymorphic ilog::ILoggable istd::ILogger istd::IPolymorphic istd::IPolymorphic

Public Types

enum  MessageId { MI_END_STATUS = 0xa830, MI_NO_INPUT, MI_NO_OUTPUT }
 
typedef ilog::CLoggerComponentBase BaseClass
 
- 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 int ConvertFiles (const QString &inputPath, QString &outputPath, const iprm::IParamsSet *paramsPtr=NULL, ibase::IProgressManager *progressManagerPtr=NULL) const
 Copy a file or files from inputPath to destination outputPath. More...
 
- Public Member Functions inherited from ilog::ILoggable
virtual void SetLogPtr (IMessageConsumer *logPtr)=0
 
virtual IMessageConsumerGetLogPtr () const =0
 
virtual void SetTracingEnabled (bool trace)=0
 
virtual bool IsTracingEnabled () const =0
 

Protected Member Functions

bool CheckFileExistTree (const QDir &inputDir, const QStringList &filters, const QStringList &excludeFilters, int recursionDepth) const
 Check if in tree specified files exists. More...
 
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. More...
 
bool CheckIfExcluded (const QString &fileName, const QStringList &excludeFilters) const
 Check if some file should be excluded from processing. More...
 
- Protected Member Functions inherited from ilog::CLoggerBase
virtual void DecorateMessage (istd::IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const
 

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 24 of file CCopyFilesTreeComp.h.

Member Typedef Documentation

Definition at line 29 of file CCopyFilesTreeComp.h.

Member Enumeration Documentation

Enumerator
MI_END_STATUS 
MI_NO_INPUT 
MI_NO_OUTPUT 

Definition at line 31 of file CCopyFilesTreeComp.h.

Member Function Documentation

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.
bool ifileproc::CCopyFilesTreeComp::CheckIfExcluded ( const QString &  fileName,
const QStringList &  excludeFilters 
) const
protected

Check if some file should be excluded from processing.

virtual int ifileproc::CCopyFilesTreeComp::ConvertFiles ( const QString &  inputPath,
QString &  outputPath,
const iprm::IParamsSet paramsPtr = NULL,
ibase::IProgressManager progressManagerPtr = NULL 
) const
virtual

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::TaskState

Implements ifileproc::IFileConversion.

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:

© 2007-2017 Witold Gantzke and Kirill Lepskiy