Tagcoll::MasterMMapIndexer Class Reference

Master index writer. More...

#include <MMapIndex.h>

List of all members.

Public Member Functions

 MasterMMapIndexer (const std::string &filename)
 ~MasterMMapIndexer ()
void commit ()
 Close the file and perform the final rename.
void append (const MMapIndexer &idx)
 Append one subindex.

Protected Attributes

std::string finalname
std::string tmpname
int fd


Detailed Description

Master index writer.

It allows to write many indexes in the same file, atomically: the file will be created as a tempfile and atomically renamed to the destination filename on class destruction.


Constructor & Destructor Documentation

MasterMMapIndexer::MasterMMapIndexer ( const std::string &  filename  ) 

MasterMMapIndexer::~MasterMMapIndexer (  ) 


Member Function Documentation

void MasterMMapIndexer::commit (  ) 

Close the file and perform the final rename.

void MasterMMapIndexer::append ( const MMapIndexer idx  ) 

Append one subindex.


Member Data Documentation

std::string Tagcoll::MasterMMapIndexer::finalname [protected]

std::string Tagcoll::MasterMMapIndexer::tmpname [protected]

int Tagcoll::MasterMMapIndexer::fd [protected]


The documentation for this class was generated from the following files:
Generated on Wed Jun 20 19:14:28 2007 for libtagcoll by  doxygen 1.5.2