Memory mapped file.
More...
#include <mmfile.h>
Public Types |
typedef char * | iterator |
typedef const char * | const_iterator |
typedef unsigned int | uint |
Public Member Functions |
| MMFile (const std::string &, int mode=O_RDONLY) |
| operator bool () const |
bool | open (const std::string &, int mode=O_RDONLY) |
void | close () |
uint | read (char *, int) |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
Protected Member Functions |
bool | map () |
bool | open (int flags) |
bool | stat () |
Protected Attributes |
std::string | m_fqn |
bool | m_stated |
struct stat | m_st |
int | m_fd |
char * | m_beg |
char * | m_end |
Additional Inherited Members |
static bool | remove (const std::string &) |
static bool | move (const std::string &, const std::string &) |
static bool | exists (const std::string &) |
static uint | size (const std::string &) |
static uint | ctime (const std::string &) |
static uint | atime (const std::string &) |
static uint | mtime (const std::string &) |
Detailed Description
The documentation for this struct was generated from the following file: