Lucene++ - a full-featured, c++ search engine
API Documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
include
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
13
namespace
Lucene {
14
16
class
LPPAPI
InfoStream
:
public
LuceneObject
{
17
protected
:
18
InfoStream
();
19
20
public
:
21
virtual
~
InfoStream
();
22
LUCENE_CLASS
(
InfoStream
);
23
24
public
:
25
virtual
InfoStream
& operator<< (
const
String& t) = 0;
26
};
27
29
class
LPPAPI
InfoStreamFile
:
public
InfoStream
{
30
public
:
31
InfoStreamFile
(
const
String& path);
32
virtual
~
InfoStreamFile
();
33
34
LUCENE_CLASS
(
InfoStreamFile
);
35
36
protected
:
37
boost::filesystem::wofstream file;
38
39
public
:
40
virtual
InfoStreamFile
& operator<< (
const
String& t);
41
};
42
44
class
LPPAPI
InfoStreamOut
:
public
InfoStream
{
45
public
:
46
virtual
~
InfoStreamOut
();
47
LUCENE_CLASS
(
InfoStreamOut
);
48
49
public
:
50
virtual
InfoStreamOut
& operator<< (
const
String& t);
51
};
52
54
class
LPPAPI
InfoStreamNull
:
public
InfoStream
{
55
public
:
56
virtual
~
InfoStreamNull
();
57
LUCENE_CLASS
(
InfoStreamNull
);
58
59
public
:
60
virtual
InfoStreamNull
& operator<< (
const
String& t);
61
};
62
63
}
64
65
#endif
clucene.sourceforge.net