|
| | CVFSEntryIFileWrapper (VFSEntryPtr ptr) |
| | The constructor initializes the reference to the wrapped CVFSEntry. More...
|
| |
|
| ~CVFSEntryIFileWrapper () override |
| | Empty destructor.
|
| |
| bool | Open (const CURL &url) override |
| | Open a file. More...
|
| |
| bool | OpenForWrite (const CURL &url, bool bOverWrite) override |
| | Open a file for writing. More...
|
| |
| bool | Exists (const CURL &url) override |
| | Check for file existence. More...
|
| |
| int | Stat (const CURL &url, struct __stat64 *buffer) override |
| | Stat a file. More...
|
| |
| ssize_t | Read (void *lpBuf, size_t uiBufSize) override |
| | Read data from file: More...
|
| |
| ssize_t | Write (const void *lpBuf, size_t uiBufSize) override |
| | Write data to file. More...
|
| |
| int64_t | Seek (int64_t iFilePosition, int whence=SEEK_SET) override |
| | Seek in file. More...
|
| |
| int | Truncate (int64_t size) override |
| | Truncate a file. More...
|
| |
|
void | Close () override |
| | Close file.
|
| |
|
int64_t | GetPosition () override |
| | Obtain current file position.
|
| |
|
int64_t | GetLength () override |
| | Obtain file size.
|
| |
|
int | GetChunkSize () override |
| | Obtain chunksize of file.
|
| |
|
int | IoControl (XFILE::EIoControl request, void *param) override |
| | Perform I/O controls for file.
|
| |
| bool | Delete (const CURL &url) override |
| | Delete a file. More...
|
| |
| bool | Rename (const CURL &url, const CURL &url2) override |
| | Rename a file. More...
|
| |
|
virtual bool | ReOpen (const CURL &url) |
| |
| virtual int | Stat (struct __stat64 *buffer) |
| | Fills struct __stat64 with information about currently open file For st_mode function will set correctly _S_IFDIR (directory) flag and may set _S_IREAD (read permission), _S_IWRITE (write permission) flags if such information is available. More...
|
| |
|
virtual bool | ReadString (char *szLine, int iLineLength) |
| |
|
virtual void | Flush () |
| |
|
virtual double | GetDownloadSpeed () |
| |
|
virtual bool | SetHidden (const CURL &url, bool hidden) |
| |
|
virtual const std::string | GetProperty (XFILE::FileProperty type, const std::string &name="") const |
| |
|
virtual const std::vector< std::string > | GetPropertyValues (XFILE::FileProperty type, const std::string &name="") const |
| |
Wrapper equipping a CVFSEntry with an IFile interface.
Needed as CVFSEntry implements several VFS interfaces with overlapping methods.