mongo::LogFile Class Reference

#include <logfile.h>

List of all members.

Public Member Functions

 LogFile (string name)
void synchronousAppend (const void *buf, size_t len)
 ~LogFile ()

Public Attributes

const string _name

Private Types

typedef int fd_type

Private Attributes

fd_type _fd

Detailed Description

Definition at line 23 of file logfile.h.


Member Typedef Documentation

typedef int mongo::LogFile::fd_type [private]

Definition at line 45 of file logfile.h.


Constructor & Destructor Documentation

mongo::LogFile::LogFile ( string  name  ) 

create the file and open. must not already exist. throws UserAssertion on i/o error

mongo::LogFile::~LogFile (  ) 

closes


Member Function Documentation

void mongo::LogFile::synchronousAppend ( const void *  buf,
size_t  len 
)

append to file. does not return until sync'd. uses direct i/o when possible. throws UserAssertion on an i/o error note direct i/o may have alignment requirements


Member Data Documentation

Definition at line 47 of file logfile.h.

const string mongo::LogFile::_name

Definition at line 39 of file logfile.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