FileBackend Class Reference
FileBackend: Implements file-backed backend.
More...
#include <FileBackend.h>
List of all members.
|
Public Member Functions |
|
| FileBackend () |
| | Null constructor.
|
|
| FileBackend (char *dir_prefix) |
| | Constructor with directory prefix (see note above).
|
|
| ~FileBackend () |
| | Destructor.
|
|
void | listSessions (std::vector< std::string > &list) |
| | List available sessions.
|
|
bool | listVersions (std::vector< uint32 > &list, const std::string &session) |
| | List available versions for a particular session.
|
|
std::istream & | getInputStream (const UserState *userState, const std::string &filename) |
| | Get an input stream for a given user state and filename.
|
|
std::istream & | getInputStream (const std::string &session, uint32 version, const std::string &filename) |
| | Get an input stream for a desired session, version and filename.
|
|
std::ostream & | getOutputStream (const UserState *userState, const std::string &filename) |
| | Get an output stream for a given user state and filename.
|
|
std::ostream & | getOutputStream (const std::string &session, uint32 version, const std::string &filename) |
| | Get an output stream for a desired session, version and filename.
|
Detailed Description
FileBackend: Implements file-backed backend.
-
Sessions are stored in the following format <dir_prefix>/<session_name>/<version>/<files...>
-
Note: Uses boost::filesystem in order to access directory/files in OS-independent, portable way
The documentation for this class was generated from the following file: