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

BasicDocStream.hpp File Reference

#include "common_headers.hpp"
#include <cassert>
#include <cstdio>
#include <cstring>
#include "DocStream.hpp"
#include "Exception.hpp"

Go to the source code of this file.


namespace  lemur
namespace  lemur::parse


#define MAXLINE   65536
 A basic DocStream implementation.

Define Documentation

#define MAXLINE   65536

A basic DocStream implementation.

BasicDocStream is an implementation of DocStream that recognizes the following format:

<DOC unique_document_identifier> this is an example </DOC>

The following is a typical example of using BasicDocStream(or DocSTream) :

DocStream *docStr = new BasicDocStream("source");


while (docStr->hasMore()) {

Document *doc = docStr->nextDoc(); cout << "doc id: "<< doc->getID() << endl; doc->startTermIteration(); while (doc->hasMore()) { TokenTerm *term = thisDoc->nextTerm(); cout << "term: "<< term->spelling() << endl; } }

Generated on Tue Jun 15 11:02:56 2010 for Lemur by doxygen 1.3.4