mongo::File Class Reference

#include <file.h>

Inheritance diagram for mongo::File:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool bad ()
 File ()
void fsync ()
bool is_open ()
fileofs len ()
void open (const char *filename, bool readOnly=false)
void read (fileofs o, char *data, unsigned len)
void write (fileofs o, const char *data, unsigned len)
 ~File ()

Public Attributes

int fd

Private Member Functions

void err (bool ok)

Private Attributes

bool _bad

Detailed Description

Definition at line 117 of file file.h.


Constructor & Destructor Documentation

mongo::File::File (  )  [inline]

Definition at line 129 of file file.h.

mongo::File::~File (  )  [inline]

Definition at line 133 of file file.h.


Member Function Documentation

bool mongo::File::bad (  )  [inline]

Reimplemented from mongo::FileInterface.

Definition at line 158 of file file.h.

void mongo::File::err ( bool  ok  )  [inline, private]

Definition at line 122 of file file.h.

void mongo::File::fsync (  )  [inline]

Reimplemented from mongo::FileInterface.

Definition at line 163 of file file.h.

bool mongo::File::is_open (  )  [inline]

Reimplemented from mongo::FileInterface.

Definition at line 159 of file file.h.

fileofs mongo::File::len (  )  [inline]

Reimplemented from mongo::FileInterface.

Definition at line 160 of file file.h.

void mongo::File::open ( const char *  filename,
bool  readOnly = false 
) [inline]

Definition at line 142 of file file.h.

void mongo::File::read ( fileofs  o,
char *  data,
unsigned  len 
) [inline]

Reimplemented from mongo::FileInterface.

Definition at line 155 of file file.h.

void mongo::File::write ( fileofs  o,
const char *  data,
unsigned  len 
) [inline]

Reimplemented from mongo::FileInterface.

Definition at line 152 of file file.h.


Member Data Documentation

bool mongo::File::_bad [private]

Definition at line 121 of file file.h.

Definition at line 119 of file file.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


mongodb
Author(s): Nate Koenig
autogenerated on Fri Jan 11 12:15:55 2013