-
Notifications
You must be signed in to change notification settings - Fork 0
/
StreamDevice.h
63 lines (52 loc) · 1.25 KB
/
StreamDevice.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// -*- C++ -*-
//
//--------------------------------------------------------------------------------
//
// Michael A.G. Aivazis
// California Institute of Technology
// (C) 1998-2005 All Rights Reserved
//
// <LicenseText>
//
//--------------------------------------------------------------------------------
//
#if !defined(journal_StreamDevice_h)
#define journal_StreamDevice_h
// forward declarations
namespace journal {
class Device;
class Entry;
class StreamDevice;
class Renderer;
}
//
class journal::StreamDevice : public journal::Device
{
// types
public:
typedef Renderer renderer_t;
typedef std::string string_t;
typedef std::ostream stream_t;
// interface
public:
virtual void record(const Entry &);
// meta-methods
public:
virtual ~StreamDevice();
StreamDevice(stream_t & stream);
// implementation
protected:
virtual void _write(const string_t);
// data
private:
stream_t & _stream;
renderer_t * _renderer;
// disable these
private:
StreamDevice(const StreamDevice &);
const StreamDevice & operator=(const StreamDevice &);
};
#endif
// version
// $Id: StreamDevice.h,v 1.1.1.1 2006-11-27 00:09:38 aivazis Exp $
// End of file