blob: 52802ef1daac1ffd8ec9af46e5a06df142d18037 (
plain)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
/*
Bu::TeeStream::* Copyright (C) 2007-2014 Xagasoft, All rights reserved.
Bu::TeeStream::*
Bu::TeeStream::* This file is part of the libbu++ library and is released under the
Bu::TeeStream::* terms of the license contained in the file LICENSE.
Bu::TeeStream::*/
#include "bu/teestream.h"
Bu::TeeStream::TeeStream()
{
}
Bu::TeeStream::~TeeStream()
{
}
void Bu::TeeStream::addStream( Bu::Stream &rStream )
{
lStream.append( StreamWrapper( rStream ) );
}
#define delegate \
for( StreamRefList::iterator i = lStream.begin(); i; i++ ) \
(*i).rStream
void Bu::TeeStream::close()
{
delegate.close();
}
Bu::size Bu::TeeStream::tell()
{
return 0;
}
void Bu::TeeStream::seek( Bu::size )
{
}
void Bu::TeeStream::setPos( Bu::size )
{
}
void Bu::TeeStream::setPosEnd( Bu::size )
{
}
bool Bu::TeeStream::isEos()
{
return false;
}
bool Bu::TeeStream::isOpen()
{
return true;
}
void Bu::TeeStream::flush()
{
delegate.flush();
}
bool Bu::TeeStream::canRead()
{
return false;
}
bool Bu::TeeStream::canWrite()
{
return true;
}
bool Bu::TeeStream::isReadable()
{
return false;
}
bool Bu::TeeStream::isWritable()
{
return true;
}
bool Bu::TeeStream::isSeekable()
{
return false;
}
bool Bu::TeeStream::isBlocking()
{
return true;
}
void Bu::TeeStream::setBlocking( bool bBlocking )
{
delegate.setBlocking( bBlocking );
}
void Bu::TeeStream::setSize( Bu::size )
{
}
Bu::size Bu::TeeStream::getSize() const
{
return 0;
}
Bu::size Bu::TeeStream::getBlockSize() const
{
return 0;
}
Bu::String Bu::TeeStream::getLocation() const
{
return "Invalid";
}
|