![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cFileCopier.h>
Public Member Functions | |
virtual cStringA | get_ConnectName () const override |
get a debug name for the connection. More... | |
virtual HRESULT | Connect (const FILECHAR_t *pszServerRoot) override |
virtual HRESULT | RequestFile (const FILECHAR_t *pszSrcName, const FILECHAR_t *pszDestPath, IStreamProgressCallback *pProgress, FILE_SIZE_t nOffsetStart, FILE_SIZE_t *pnRequestSizeEst) override |
virtual HRESULT | SendFile (const FILECHAR_t *pszSrcPath, const FILECHAR_t *pszDestName, IStreamProgressCallback *pProgress, FILE_SIZE_t nOffsetStart, FILE_SIZE_t nSize) override |
virtual HRESULT | SendAttr (const FILECHAR_t *pszDestName, cTimeFile timeChanged) override |
![]() | |
virtual | ~ IFileCopier () |
Static Public Member Functions | |
static HRESULT __stdcall | CopyFileStream (cStreamInput &stmIn, const FILECHAR_t *pszDstFileName, bool bFailIfExists=false, IStreamProgressCallback *pProgress=nullptr) |
static HRESULT __stdcall | CopyFileX (const FILECHAR_t *pszExistingName, const FILECHAR_t *pszNewName, IStreamProgressCallback *pProgress=nullptr, bool bFailIfExists=false) |
static HRESULT __stdcall | RenamePath (const FILECHAR_t *pszOldName, const FILECHAR_t *pszNewName, IStreamProgressCallback *pProgress=nullptr) |
Public Attributes | |
cStringF | m_sServerRoot |
Prefix all server side paths with this. More... | |
Protected Member Functions | |
cStringF | makeFilePath (const FILECHAR_t *pszFileName) const |
Implement the IFileCopier for the local file system. Copy single files.
|
inlineoverridevirtual |
Reimplemented from Gray::IFileCopier.
|
static |
Copy this (opened OF_READ) file to some other file name/path. (pszDstFileName) manually read/copy the contents of the file via WriteStream(). Similar effect to cFile::CopyFileX()
|
static |
OS Copy a file from pszExistingName to pszNewName. The pszNewName may or may not already exist.
|
inlineoverridevirtual |
get a debug name for the connection.
get a debug name for the connection.
Implements Gray::IFileCopier.
|
inlineprotected |
|
static |
Equivalent of moving a file. (or directory and its children) A new directory must be on the same drive.
|
overridevirtual |
Request a file from a m_sServerRoot/pszSrcName to be brought back to me at local pszDestPath.
Reimplemented from Gray::IFileCopier.
|
overridevirtual |
Optionally set the remote side time stamp for a file.
Reimplemented from Gray::IFileCopier.
|
overridevirtual |
Send a local file to a m_sServerRoot/pszDestName from local pszSrcPath storage
Reimplemented from Gray::IFileCopier.
cStringF Gray::cFileCopier::m_sServerRoot |
Prefix all server side paths with this.