|
MIRA
|
#include <database/StripedStorage.h>

Public Member Functions | |
| StripedStorageBase () | |
| StripedStorageBase (std::string baseName, std::string extension, uint32 maxFiles) | |
| Create a striped storage providing a base file name and the maximum number of files. More... | |
| StripedStorageBase (const Path &directory, std::string baseName, std::string extension, uint32 maxFiles) | |
| Create a striped storage providing a path, a base file name and the maximum number of files. More... | |
| void | setFilePath (const Path &path) |
| Resolves path and assigns to filePath. More... | |
| const Path & | getFilePath () |
| Path | generateFilename (uint32 fileNr) const |
| Returns the filename (including path) of the file with the specified nr. More... | |
| std::list< Path > | getFiles () const |
| Returns a list of filenames (including paths) for all files that are used for persistent storage. More... | |
| void | deleteAllFiles () |
| Delete all files that were stored by the persistent storage. More... | |
Public Attributes | |
| std::string | fileNameBase |
| The base filename. More... | |
| std::string | extension |
| The file name extension. More... | |
| uint32 | maxFiles |
| Maximum number of used files. More... | |
Protected Attributes | |
| Path | filePath |
| The path where the files are stored. More... | |
| uint32 | mCurrentFileIdx |
|
inline |
|
inline |
Create a striped storage providing a base file name and the maximum number of files.
|
inline |
Create a striped storage providing a path, a base file name and the maximum number of files.
|
inline |
Resolves path and assigns to filePath.
|
inline |
Returns the filename (including path) of the file with the specified nr.
|
inline |
Returns a list of filenames (including paths) for all files that are used for persistent storage.
|
inline |
Delete all files that were stored by the persistent storage.
| std::string fileNameBase |
The base filename.
| std::string extension |
The file name extension.
| uint32 maxFiles |
Maximum number of used files.
|
protected |
The path where the files are stored.
|
protected |
1.8.14