Module file [Version: ] (Interface CondCopyControl)
[Main Page] [Details] [Tests]
[
CondCopyControl]
#include
#include
template< class T > class CondCopyControl
{
private:
//PRIVATE MEMBERS---------------------------------------------------
protected:
//PROTECTED MEMBERS-------------------------------------------------
public:
//PUBLIC MEMBERS----------------------------------------------------
//DESTRUCTOR--------------------------------------------------------
virtual ~CondCopyControl(){}
//METHODS-----------------------------------------------------------
virtual bool doCopyFile(const T * targetpath,const T * sourcepath)=0;
virtual void filecopied(const T * targetpath,const T * sourcepath,size_t bytes)=0;
virtual bool ignoreEmptyDir(const T * path)=0;
virtual void feedback()=0;
virtual size_t feedback_bytes()=0;
virtual time_t feedback_time()=0;
//GETTER METHODS----------------------------------------------------
//SETTER METHODS----------------------------------------------------
};
Methods:
doCopyFile
bool doCopyFile(const T *targetpath,const T *sourcepath)
filecopied
void filecopied(const T *targetpath,const T *sourcepath,size_t bytes)
Methods
doCopyFile
Copies the file from sourcepath to targetpath.
Signature:
bool doCopyFile(const T *targetpath,const T *sourcepath)
Parameters:| const T * | targetpath | [IN] | The path (as null-terminated string). |
| const T * | sourcepath | [IN] | The path (as null-terminated string). |
Return value:---
filecopied
Copies the file from sourcepath to targetpath.
Signature:
void filecopied(const T *targetpath,const T *sourcepath,size_t bytes)
Parameters:| const T * | targetpath | [IN] | The path (as null-terminated string). |
| const T * | sourcepath | [IN] | The path (as null-terminated string). |
| size_t | bytes | | The path (as null-terminated string). |
ignoreEmptyDir
Copies the file from sourcepath to targetpath.
Signature:
bool ignoreEmptyDir(const T *path)
Parameters:| const T * | path | [IN] | The path (as null-terminated string). |
Return value:---
feedback
Copies the file from sourcepath to targetpath.
Signature:
void feedback()
feedback_bytes
Copies the file from sourcepath to targetpath.
Signature:
size_t feedback_bytes()
Return value:---
feedback_time
Copies the file from sourcepath to targetpath.
Signature:
time_t feedback_time()
Return value:---