Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

TrecParser.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 #include "Parser.hpp"
00013 #include "TextHandler.hpp"
00014 #include "LinkedPropertyList.hpp"
00015 
00016 #ifndef _TRECPARSER_HPP
00017 #define _TRECPARSER_HPP
00018 
00031 
00032 // Source code in trecparser.lex
00033 
00034 class TrecParser : public Parser {
00035   
00036 public:
00037   static const string identifier;
00038 
00039   TrecParser();
00040 
00042   void parseFile(const string &filename);
00043 
00045   void parseBuffer(char * buf, int len);
00046 
00049   long fileTell() const;
00050 
00051 private:
00053   void doParse();
00054 
00056   int state;
00057 
00059   Property begelem;
00060   Property endelem;
00061 
00063   LinkedPropertyList proplist;
00064 };
00065 
00066 #endif

Generated on Wed Nov 3 12:59:06 2004 for Lemur Toolkit by doxygen1.2.18