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


Loading...
Searching...
No Matches
InfoStream.h
Go to the documentation of this file.
1
2// Copyright (c) 2009-2014 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 <boost/filesystem/fstream.hpp>
12
13namespace Lucene {
14
16class LPPAPI InfoStream : public LuceneObject {
17protected:
19
20public:
21 virtual ~InfoStream();
23
24public:
25 virtual InfoStream& operator<< (const String& t) = 0;
26};
27
29class LPPAPI InfoStreamFile : public InfoStream {
30public:
31 InfoStreamFile(const String& path);
32 virtual ~InfoStreamFile();
33
35
36protected:
37 boost::filesystem::wofstream file;
38
39public:
40 virtual InfoStreamFile& operator<< (const String& t);
41};
42
44class LPPAPI InfoStreamOut : public InfoStream {
45public:
46 virtual ~InfoStreamOut();
48
49public:
50 virtual InfoStreamOut& operator<< (const String& t);
51};
52
54class LPPAPI InfoStreamNull : public InfoStream {
55public:
56 virtual ~InfoStreamNull();
58
59public:
60 virtual InfoStreamNull& operator<< (const String& t);
61};
62
63}
64
65#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Stream override to write messages to a file.
Definition InfoStream.h:29
boost::filesystem::wofstream file
Definition InfoStream.h:37
InfoStreamFile(const String &path)
Null stream override to eat messages.
Definition InfoStream.h:54
Stream override to write messages to a std::cout.
Definition InfoStream.h:44
Utility class to support streaming info messages.
Definition InfoStream.h:16
virtual ~InfoStream()
Base class for all Lucene classes.
Definition LuceneObject.h:31
Definition AbstractAllTermDocs.h:12

clucene.sourceforge.net