aitools::invertedindex::System Class Reference

#include <System.hpp>

List of all members.

Static Public Member Functions

static uint64_t directory_size (const bfs::path &path) throw (std::invalid_argument)
static void fclose (FILE *file)
static FILE * fopen (const bfs::path &path, const std::string &mode) throw (std::invalid_argument)
static void fread (void *data, size_t size, size_t count, FILE *file) throw (std::runtime_error)
static void fwrite (const void *data, size_t size, size_t count, FILE *file) throw (std::runtime_error)
static void fseek (FILE *file, long offset, int origin) throw (std::runtime_error)
static long ftell (FILE *file) throw (std::runtime_error)
static FILE * tmpfile () throw (std::runtime_error)

Private Member Functions

 System ()
 ~System ()

Detailed Description

A helper class to wrap some system calls to throw exceptions on failure.

Author:
martin.trenkmann@uni-weimar.de

Created on Jun 22, 2008

Id
System.hpp,v 1.1 2010/05/11 23:41:08 trenkman Exp

Definition at line 24 of file System.hpp.


Constructor & Destructor Documentation

aitools::invertedindex::System::System (  )  [private]
aitools::invertedindex::System::~System (  )  [private]

Member Function Documentation

uint64_t aitools::invertedindex::System::directory_size ( const bfs::path &  path  )  throw (std::invalid_argument) [static]

Definition at line 9 of file System.cpp.

References aitools::invertedindex::Exception::throw_invalid_argument().

Here is the call graph for this function:

void aitools::invertedindex::System::fclose ( FILE *  file  )  [static]
FILE * aitools::invertedindex::System::fopen ( const bfs::path &  path,
const std::string &  mode 
) throw (std::invalid_argument) [static]
void aitools::invertedindex::System::fread ( void *  data,
size_t  size,
size_t  count,
FILE *  file 
) throw (std::runtime_error) [static]

Definition at line 44 of file System.cpp.

References aitools::util::fread(), and aitools::invertedindex::Exception::throw_runtime_error().

Referenced by aitools::invertedindex::StorageSearcher::open().

Here is the call graph for this function:

Here is the caller graph for this function:

void aitools::invertedindex::System::fseek ( FILE *  file,
long  offset,
int  origin 
) throw (std::runtime_error) [static]

Definition at line 68 of file System.cpp.

References aitools::util::fseek(), and aitools::invertedindex::Exception::throw_runtime_error().

Here is the call graph for this function:

long aitools::invertedindex::System::ftell ( FILE *  file  )  throw (std::runtime_error) [static]

Definition at line 79 of file System.cpp.

References aitools::util::ftell(), and aitools::invertedindex::Exception::throw_runtime_error().

Here is the call graph for this function:

void aitools::invertedindex::System::fwrite ( const void *  data,
size_t  size,
size_t  count,
FILE *  file 
) throw (std::runtime_error) [static]

Definition at line 56 of file System.cpp.

References aitools::util::fwrite(), and aitools::invertedindex::Exception::throw_runtime_error().

Referenced by aitools::invertedindex::PostlistBuilder::append().

Here is the call graph for this function:

Here is the caller graph for this function:

FILE * aitools::invertedindex::System::tmpfile (  )  throw (std::runtime_error) [static]

Definition at line 91 of file System.cpp.

References aitools::util::throw_runtime_error(), and aitools::util::tmpfile().

Referenced by aitools::invertedindex::ExternalMergeSort::swap_out().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
Generated on Wed May 30 15:07:36 2012 by  doxygen 1.6.3