dmlite::IODriver Class Reference
IO Driver.
More...
#include <io.h>
List of all members.
Detailed Description
IO Driver.
Member Enumeration Documentation
Use this flag in addition to the standard ones to skip any security check (i.e. token validation) Example: createIOHandler("/file.txt", O_RDONLY | IODriver::kInsecure, extras);
- Enumerator:
-
Constructor & Destructor Documentation
virtual dmlite::IODriver::~IODriver |
( |
|
) |
[virtual] |
Member Function Documentation
virtual IOHandler* dmlite::IODriver::createIOHandler |
( |
const std::string & |
pfn, |
|
|
int |
flags, |
|
|
const Extensible & |
extras, |
|
|
mode_t |
mode = 0660 | |
|
) |
| | throw (DmException) [virtual] |
Instantiate a implementation of IOHandler
- Parameters:
-
| pfn | The file name. |
| flags | The open mode. See man 2 open. |
| extras | As was given by the PoolHandler. |
| mode | When called with O_CREAT, it will be used to create the file. |
virtual void dmlite::IODriver::doneWriting |
( |
const Location & |
loc |
) |
throw (DmException) [virtual] |
Must be called when the front-end is done writing.
- Parameters:
-
| pfn | The file name. |
| loc | The Location object as returned by whereToWrite |
virtual std::string dmlite::IODriver::getImplId |
( |
void |
|
) |
const throw () [pure virtual] |
String ID of the implementation.
Friends And Related Function Documentation
The documentation for this class was generated from the following file: