Lucene++ - a full-featured, c++ search engine
API Documentation


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
QueryParseError.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6 
7 #ifndef QUERYPARSEERROR_H
8 #define QUERYPARSEERROR_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene
13 {
16  {
17  public:
18  virtual ~QueryParseError();
20 
21  public:
30  static String lexicalError(bool EOFSeen, int32_t lexState, int32_t errorLine, int32_t errorColumn,
31  const String& errorAfter, wchar_t curChar);
32 
42  static String parseError(QueryParserTokenPtr currentToken, Collection< Collection<int32_t> > expectedTokenSequences,
43  Collection<String> tokenImage);
44 
45 
46  protected:
49  static String addEscapes(const String& str);
50  };
51 }
52 
53 #endif

clucene.sourceforge.net