Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

lemur::parse::BasicDocStream Class Reference

A DocStream handler of a stream with the basic lemur format. More...

#include <BasicDocStream.hpp>

Inheritance diagram for lemur::parse::BasicDocStream:

lemur::api::DocStream List of all members.

Public Member Functions

 BasicDocStream ()
 BasicDocStream (const string &inputFile)
virtual ~BasicDocStream ()
bool hasMore ()
void startDocIteration ()
 start document iteration

lemur::api::DocumentnextDoc ()
 return a pointer to next document (static memory, do not delete returned instance). hasMore() should be called before calling nextDoc()


Private Attributes

char file [1024]
ifstream * ifs
char buf [2000]
bool nextTokenRead
BasicTokenDoc doc

Detailed Description

A DocStream handler of a stream with the basic lemur format.


Constructor & Destructor Documentation

lemur::parse::BasicDocStream::BasicDocStream  )  [inline]
 

lemur::parse::BasicDocStream::BasicDocStream const string &  inputFile  ) 
 

virtual lemur::parse::BasicDocStream::~BasicDocStream  )  [inline, virtual]
 


Member Function Documentation

bool lemur::parse::BasicDocStream::hasMore  )  [virtual]
 

Implements lemur::api::DocStream.

lemur::api::Document * lemur::parse::BasicDocStream::nextDoc  )  [virtual]
 

return a pointer to next document (static memory, do not delete returned instance). hasMore() should be called before calling nextDoc()

Implements lemur::api::DocStream.

void lemur::parse::BasicDocStream::startDocIteration  )  [virtual]
 

start document iteration

Implements lemur::api::DocStream.


Member Data Documentation

char lemur::parse::BasicDocStream::buf[2000] [private]
 

BasicTokenDoc lemur::parse::BasicDocStream::doc [private]
 

char lemur::parse::BasicDocStream::file[1024] [private]
 

ifstream* lemur::parse::BasicDocStream::ifs [private]
 

bool lemur::parse::BasicDocStream::nextTokenRead [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Jun 15 11:03:06 2010 for Lemur by doxygen 1.3.4