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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
InfoStream.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 INFOSTREAM_H
8 #define INFOSTREAM_H
9 
10 #include "LuceneObject.h"
11 #include <fstream>
12 
13 namespace Lucene
14 {
16  class LPPAPI InfoStream : public LuceneObject
17  {
18  protected:
19  InfoStream();
20 
21  public:
22  virtual ~InfoStream();
24 
25  public:
26  virtual InfoStream& operator<< (const String& t) = 0;
27  };
28 
30  class LPPAPI InfoStreamFile : public InfoStream
31  {
32  public:
33  InfoStreamFile(const String& path);
34  virtual ~InfoStreamFile();
35 
37 
38  protected:
39  std::wofstream file;
40 
41  public:
42  virtual InfoStreamFile& operator<< (const String& t);
43  };
44 
46  class LPPAPI InfoStreamOut : public InfoStream
47  {
48  public:
49  virtual ~InfoStreamOut();
51 
52  public:
53  virtual InfoStreamOut& operator<< (const String& t);
54  };
55 
57  class LPPAPI InfoStreamNull : public InfoStream
58  {
59  public:
60  virtual ~InfoStreamNull();
62 
63  public:
64  virtual InfoStreamNull& operator<< (const String& t);
65  };
66 }
67 
68 #endif

clucene.sourceforge.net