aitools::invertedindex::InvertedFileWriter< Value > Class Template Reference

#include <InvertedFileWriter.hpp>

List of all members.

Public Member Functions

 InvertedFileWriter ()
 InvertedFileWriter (const bfs::path &path) throw (std::invalid_argument)
 ~InvertedFileWriter ()
void close ()
bool is_open () const
const bfs::path & path () const
void open (const bfs::path &path) throw (std::invalid_argument)
bool write (const Record< Value > &record)

Static Public Attributes

static const char delim = '\t'

Private Member Functions

 InvertedFileWriter (const InvertedFileWriter &writer)
InvertedFileWriteroperator= (const InvertedFileWriter &writer)

Private Attributes

bfs::ofstream ofs_
std::string key_
bfs::path path_

Detailed Description

template<typename Value>
class aitools::invertedindex::InvertedFileWriter< Value >

A class to write key value pairs in the correct format of an inverted file.

Author:
martin.trenkmann@uni-weimar.de

Created on Jun 22, 2008

Id
InvertedFileWriter.hpp,v 1.8 2010/05/11 23:41:08 trenkman Exp

Definition at line 24 of file InvertedFileWriter.hpp.


Constructor & Destructor Documentation

template<typename Value >
aitools::invertedindex::InvertedFileWriter< Value >::InvertedFileWriter (  )  [inline]

Definition at line 67 of file InvertedFileWriter.hpp.

template<typename Value >
aitools::invertedindex::InvertedFileWriter< Value >::InvertedFileWriter ( const bfs::path &  path  )  throw (std::invalid_argument) [inline]

Definition at line 71 of file InvertedFileWriter.hpp.

template<typename Value >
aitools::invertedindex::InvertedFileWriter< Value >::~InvertedFileWriter (  )  [inline]

Definition at line 78 of file InvertedFileWriter.hpp.

template<typename Value >
aitools::invertedindex::InvertedFileWriter< Value >::InvertedFileWriter ( const InvertedFileWriter< Value > &  writer  )  [private]

Member Function Documentation

template<typename Value >
void aitools::invertedindex::InvertedFileWriter< Value >::close (  )  [inline]
template<typename Value >
bool aitools::invertedindex::InvertedFileWriter< Value >::is_open (  )  const [inline]
template<typename Value >
void aitools::invertedindex::InvertedFileWriter< Value >::open ( const bfs::path &  path  )  throw (std::invalid_argument) [inline]

Definition at line 106 of file InvertedFileWriter.hpp.

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

Here is the call graph for this function:

template<typename Value >
InvertedFileWriter& aitools::invertedindex::InvertedFileWriter< Value >::operator= ( const InvertedFileWriter< Value > &  writer  )  [private]
template<typename Value >
const bfs::path & aitools::invertedindex::InvertedFileWriter< Value >::path (  )  const [inline]

Definition at line 99 of file InvertedFileWriter.hpp.

References aitools::invertedindex::InvertedFileWriter< Value >::path_.

Referenced by aitools::invertedindex::InvertedFileWriter< Value >::close().

Here is the caller graph for this function:

template<typename Value >
bool aitools::invertedindex::InvertedFileWriter< Value >::write ( const Record< Value > &  record  )  [inline]

Member Data Documentation

template<typename Value >
const char aitools::invertedindex::InvertedFileWriter< Value >::delim = '\t' [static]

Definition at line 28 of file InvertedFileWriter.hpp.

template<typename Value >
std::string aitools::invertedindex::InvertedFileWriter< Value >::key_ [private]
template<typename Value >
bfs::ofstream aitools::invertedindex::InvertedFileWriter< Value >::ofs_ [private]
template<typename Value >
bfs::path aitools::invertedindex::InvertedFileWriter< Value >::path_ [private]

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