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

MemParser.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2001 Carnegie Mellon University.  All Rights Reserved.
00003  *
00004  * Use of the Lemur Toolkit for Language Modeling and Information Retrieval
00005  * is subject to the terms of the software license set forth in the LICENSE
00006  * file included with this software, and also available at
00007  * http://www.lemurproject.org/license.html
00008  *
00009  *==========================================================================
00010  */
00011 
00012 #ifndef _MEMPARSER_HPP
00013 #define _MEMPARSER_HPP
00014 
00015 #include "TextHandler.hpp"
00016 namespace lemur 
00017 {
00018   namespace distrib 
00019   {
00020     
00022     typedef string docid_t;
00023 
00026     typedef struct doct {  
00027       char * doc;
00028       int len;
00029       docid_t id;
00030     } doc_t;
00031 
00032 
00037     class MemParser : public lemur::api::TextHandler {
00038  
00039     public:
00040  
00043       virtual void parse (doc_t * doc) = 0;
00044   
00045     };
00046   }
00047 }
00048 
00049 #endif

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