|
Exiv2
|
Internal Pimpl abstract structure of class RemoteIo. More...
Inheritance diagram for Exiv2::RemoteIo::Impl:
Collaboration diagram for Exiv2::RemoteIo::Impl:Public Member Functions | |
| Impl (const std::string &path, size_t blockSize) | |
| Constructor. | |
| virtual | ~Impl () |
| Destructor. Releases all managed memory. | |
| virtual long | getFileLength ()=0 |
| Get the length (in bytes) of the remote file. | |
| virtual void | getDataByRange (long lowBlock, long highBlock, std::string &response)=0 |
| Get the data by range. | |
| virtual void | writeRemote (const byte *data, size_t size, long from, long to)=0 |
| Submit the data to the remote machine. The data replace a part of the remote file. The replaced part of remote file is indicated by from and to parameters. | |
| virtual size_t | populateBlocks (size_t lowBlock, size_t highBlock) |
| Get the data from the remote machine and write them to the memory blocks. | |
Public Attributes | |
| std::string | path_ |
| (Standard) path | |
| size_t | blockSize_ |
| Size of the block memory. | |
| BlockMap * | blocksMap_ |
| An array contains all blocksMap. | |
| size_t | size_ |
| The file size. | |
| long | idx_ |
| Index into the memory area. | |
| bool | isMalloced_ |
| Was the blocksMap_ allocated? | |
| bool | eof_ |
| EOF indicator. | |
| Protocol | protocol_ |
| the protocol of url | |
| virtual void Exiv2::RemoteIo::Impl::getDataByRange | ( | long | lowBlock, |
| long | highBlock, | ||
| std::string & | response | ||
| ) | [pure virtual] |
Get the data by range.
| lowBlock | The start block index. |
| highBlock | The end block index. |
| response | The data from the server. |
| Error | if the server returns the error code. |
Implemented in Exiv2::HttpIo::HttpImpl.
Referenced by Exiv2::RemoteIo::open().
| virtual long Exiv2::RemoteIo::Impl::getFileLength | ( | ) | [pure virtual] |
Get the length (in bytes) of the remote file.
| Error | if the server returns the error code. |
Implemented in Exiv2::HttpIo::HttpImpl.
Referenced by Exiv2::RemoteIo::open().
| size_t Exiv2::RemoteIo::Impl::populateBlocks | ( | size_t | lowBlock, |
| size_t | highBlock | ||
| ) | [virtual] |
Get the data from the remote machine and write them to the memory blocks.
| lowBlock | The start block index. |
| highBlock | The end block index. |
| Error | if it fails. |
References EXV_MIN, and Exiv2::string.
Referenced by Exiv2::RemoteIo::getb(), and Exiv2::RemoteIo::read().
| virtual void Exiv2::RemoteIo::Impl::writeRemote | ( | const byte * | data, |
| size_t | size, | ||
| long | from, | ||
| long | to | ||
| ) | [pure virtual] |
Submit the data to the remote machine. The data replace a part of the remote file. The replaced part of remote file is indicated by from and to parameters.
| data | The data are submitted to the remote machine. |
| size | The size of data. |
| from | The start position in the remote file where the data replace. |
| to | The end position in the remote file where the data replace. |
| Error | if it fails. |
Implemented in Exiv2::HttpIo::HttpImpl.
Referenced by Exiv2::RemoteIo::write().
1.7.3