IO Driver.
More...
#include <io.h>
◆ anonymous enum
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);
◆ ~IODriver()
virtual dmlite::IODriver::~IODriver |
( |
| ) |
|
|
virtual |
◆ createIOHandler() [1/2]
virtual IOHandler* dmlite::IODriver::createIOHandler |
( |
const std::string & |
pfn, |
|
|
int |
flags, |
|
|
const Extensible & |
extras, |
|
|
mode_t |
mode = 0660 |
|
) |
| |
|
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. |
◆ createIOHandler() [2/2]
static IOHandler* dmlite::IODriver::createIOHandler |
( |
IODriver * |
factory, |
|
|
const std::string & |
pfn, |
|
|
int |
flags, |
|
|
const Extensible & |
extras, |
|
|
mode_t |
mode = 0660 |
|
) |
| |
|
static |
◆ doneWriting()
virtual void dmlite::IODriver::doneWriting |
( |
const Location & |
loc | ) |
|
|
virtual |
Must be called when the front-end is done writing.
- Parameters
-
pfn | The file name. |
loc | The Location object as returned by whereToWrite |
◆ getImplId()
virtual std::string dmlite::IODriver::getImplId |
( |
void |
| ) |
const |
throw | ( | |
| ) | | |
|
pure virtual |
◆ setSecurityContext() [1/2]
virtual void dmlite::IODriver::setSecurityContext |
( |
const SecurityContext * |
ctx | ) |
|
|
protectedvirtual |
◆ setSecurityContext() [2/2]
◆ StackInstance
The documentation for this class was generated from the following file: