Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class 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 namespace lemur 
00019 {
00020   namespace parse 
00021   {
00022     
00035 
00036     // Source code in trecparser.lex
00037 
00038     class TrecParser : public lemur::api::Parser {
00039   
00040     public:
00041       static const string identifier;
00042 
00043       TrecParser();
00044 
00046       void parseFile(const string &filename);
00047 
00049       void parseBuffer(char * buf, int len);
00050 
00053       long fileTell() const;
00054 
00055     private:
00057       void doParse();
00058 
00060       int state;
00061 
00063       Property begelem;
00064       Property endelem;
00065 
00067       LinkedPropertyList proplist;
00068     };
00069   }
00070 }
00071 
00072 #endif

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