aboutsummaryrefslogtreecommitdiff
path: root/src/stable/stdstream.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-11-05 22:41:51 +0000
committerMike Buland <eichlan@xagasoft.com>2012-11-05 22:41:51 +0000
commitec05778d5718a7912e506764d443a78d6a6179e3 (patch)
tree78a9a01532180030c095acefc45763f07c14edb8 /src/stable/stdstream.cpp
parentb20414ac1fe80a71a90601f4cd1767fa7014a9ba (diff)
downloadlibbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.gz
libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.bz2
libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.xz
libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.zip
Converted tabs to spaces with tabconv.
Diffstat (limited to 'src/stable/stdstream.cpp')
-rw-r--r--src/stable/stdstream.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/stable/stdstream.cpp b/src/stable/stdstream.cpp
index 25ad8d4..9cd216d 100644
--- a/src/stable/stdstream.cpp
+++ b/src/stable/stdstream.cpp
@@ -9,7 +9,7 @@
9#include "bu/stdstream.h" 9#include "bu/stdstream.h"
10 10
11Bu::StdStream::StdStream( OutMode eOut ) : 11Bu::StdStream::StdStream( OutMode eOut ) :
12 eOut( eOut ) 12 eOut( eOut )
13{ 13{
14} 14}
15 15
@@ -23,17 +23,17 @@ void Bu::StdStream::close()
23 23
24Bu::size Bu::StdStream::read( void *pBuf, Bu::size nBytes ) 24Bu::size Bu::StdStream::read( void *pBuf, Bu::size nBytes )
25{ 25{
26 return fread( pBuf, 1, nBytes, stdin ); 26 return fread( pBuf, 1, nBytes, stdin );
27} 27}
28 28
29Bu::size Bu::StdStream::write( const void *pBuf, Bu::size nBytes ) 29Bu::size Bu::StdStream::write( const void *pBuf, Bu::size nBytes )
30{ 30{
31 return fwrite( pBuf, 1, nBytes, eOut==StdOut?stdout:stderr ); 31 return fwrite( pBuf, 1, nBytes, eOut==StdOut?stdout:stderr );
32} 32}
33 33
34Bu::size Bu::StdStream::tell() 34Bu::size Bu::StdStream::tell()
35{ 35{
36 return 0; 36 return 0;
37} 37}
38 38
39void Bu::StdStream::seek( Bu::size ) 39void Bu::StdStream::seek( Bu::size )
@@ -50,47 +50,47 @@ void Bu::StdStream::setPosEnd( Bu::size )
50 50
51bool Bu::StdStream::isEos() 51bool Bu::StdStream::isEos()
52{ 52{
53 return false; 53 return false;
54} 54}
55 55
56bool Bu::StdStream::isOpen() 56bool Bu::StdStream::isOpen()
57{ 57{
58 return true; 58 return true;
59} 59}
60 60
61void Bu::StdStream::flush() 61void Bu::StdStream::flush()
62{ 62{
63 fflush( eOut==StdOut?stdout:stderr ); 63 fflush( eOut==StdOut?stdout:stderr );
64} 64}
65 65
66bool Bu::StdStream::canRead() 66bool Bu::StdStream::canRead()
67{ 67{
68 return true; 68 return true;
69} 69}
70 70
71bool Bu::StdStream::canWrite() 71bool Bu::StdStream::canWrite()
72{ 72{
73 return true; 73 return true;
74} 74}
75 75
76bool Bu::StdStream::isReadable() 76bool Bu::StdStream::isReadable()
77{ 77{
78 return true; 78 return true;
79} 79}
80 80
81bool Bu::StdStream::isWritable() 81bool Bu::StdStream::isWritable()
82{ 82{
83 return true; 83 return true;
84} 84}
85 85
86bool Bu::StdStream::isSeekable() 86bool Bu::StdStream::isSeekable()
87{ 87{
88 return false; 88 return false;
89} 89}
90 90
91bool Bu::StdStream::isBlocking() 91bool Bu::StdStream::isBlocking()
92{ 92{
93 return true; 93 return true;
94} 94}
95 95
96void Bu::StdStream::setBlocking( bool ) 96void Bu::StdStream::setBlocking( bool )
@@ -103,16 +103,16 @@ void Bu::StdStream::setSize( Bu::size )
103 103
104Bu::size Bu::StdStream::getSize() const 104Bu::size Bu::StdStream::getSize() const
105{ 105{
106 return 0; 106 return 0;
107} 107}
108 108
109Bu::size Bu::StdStream::getBlockSize() const 109Bu::size Bu::StdStream::getBlockSize() const
110{ 110{
111 return 0; 111 return 0;
112} 112}
113 113
114Bu::String Bu::StdStream::getLocation() const 114Bu::String Bu::StdStream::getLocation() const
115{ 115{
116 return ""; 116 return "";
117} 117}
118 118