|
dmlite
0.6
|
IO Driver. More...
#include <io.h>


Public Types | |
| enum | { kInsecure = 010 } |
Public Member Functions | |
| virtual | ~IODriver () |
| Virtual destructor. More... | |
| virtual std::string | getImplId (void) const =0 throw () |
| String ID of the implementation. More... | |
| virtual IOHandler * | createIOHandler (const std::string &pfn, int flags, const Extensible &extras, mode_t mode=0660) throw (DmException) |
| virtual void | doneWriting (const Location &loc) throw (DmException) |
Public Member Functions inherited from dmlite::BaseInterface | |
| virtual | ~BaseInterface () |
| Virtual destructor. More... | |
Public Member Functions inherited from dmlite::BaseFactory | |
| virtual | ~BaseFactory () |
| Virtual destructor. More... | |
| virtual void | configure (const std::string &key, const std::string &value) throw (DmException) |
Static Public Member Functions | |
| static IOHandler * | createIOHandler (IODriver *factory, const std::string &pfn, int flags, const Extensible &extras, mode_t mode=0660) throw (DmException) |
Protected Member Functions | |
| virtual void | setSecurityContext (const SecurityContext *ctx) throw (DmException) |
| Set the security context. More... | |
Protected Member Functions inherited from dmlite::BaseInterface | |
| virtual void | setStackInstance (StackInstance *si) throw (DmException) |
Static Protected Member Functions | |
| static void | setSecurityContext (IODriver *i, const SecurityContext *ctx) throw (DmException) |
Static Protected Member Functions inherited from dmlite::BaseInterface | |
| static void | setStackInstance (BaseInterface *i, StackInstance *si) throw (DmException) |
| These method allows plugins to call other plugins setStackInstance and setSecurityContext. More... | |
| static void | setSecurityContext (BaseInterface *i, const SecurityContext *ctx) throw (DmException) |
Friends | |
| class | StackInstance |
IO Driver.
| 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);
| Enumerator | |
|---|---|
| kInsecure | |
|
virtual |
Virtual destructor.
|
virtual | ||||||||||||||||||||||||||||
Instantiate a implementation of IOHandler
| 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. |
|
static | ||||||||||||||||||||||||||||||||
|
virtual | ||||||||||||||
Must be called when the front-end is done writing.
| pfn | The file name. |
| loc | The Location object as returned by whereToWrite |
|
pure virtual | ||||||||||||||
String ID of the implementation.
Implements dmlite::BaseInterface.
|
protectedvirtual | ||||||||||||||
Set the security context.
Reimplemented from dmlite::BaseInterface.
|
staticprotected | ||||||||||||||||||||
|
friend |
1.8.5