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

Copy of text files with some tags substitution and optional license attachment. More...

#include <CFileInfoCopyComp.h>

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

Public Types

enum  MessageId {
  MI_FILE_INFO = 0xa810, MI_INPUT_OPEN, MI_OUTPUT_OPEN, MI_LICENSE_OPEN,
  MI_BAD_TAG
}
 
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 ProcessSubstitutionTag (const QDir &inputDir, const QDir &outputDir, const QString &tag, QString &result) const
 
- 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 of text files with some tags substitution and optional license attachment.

Tags parameter must be separated using : character. Tags (inclusive parameter) must be enclosed in $ character, for example $AcfCompanyName$ or

AcfVersion:

. Known tasks:

Definition at line 37 of file CFileInfoCopyComp.h.

Member Typedef Documentation

Definition at line 43 of file CFileInfoCopyComp.h.

Member Enumeration Documentation

Enumerator
MI_FILE_INFO 
MI_INPUT_OPEN 
MI_OUTPUT_OPEN 
MI_LICENSE_OPEN 
MI_BAD_TAG 

Definition at line 45 of file CFileInfoCopyComp.h.

Member Function Documentation

virtual int ifileproc::CFileInfoCopyComp::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::CFileInfoCopyComp::ProcessSubstitutionTag ( const QDir &  inputDir,
const QDir &  outputDir,
const QString &  tag,
QString &  result 
) const
protected

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy