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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
StringReader.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 STRINGREADER_H
8 #define STRINGREADER_H
9 
10 #include "Reader.h"
11 
12 namespace Lucene
13 {
15  class LPPAPI StringReader : public Reader
16  {
17  public:
19  StringReader(const String& str);
20  virtual ~StringReader();
21 
23 
24  protected:
25  String str;
26  int32_t position;
27 
28  public:
30  virtual int32_t read();
31 
33  virtual int32_t read(wchar_t* buffer, int32_t offset, int32_t length);
34 
36  virtual void close();
37 
39  virtual bool markSupported();
40 
42  virtual void reset();
43 
45  virtual int64_t length();
46  };
47 }
48 
49 #endif

clucene.sourceforge.net