diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-11-05 22:41:51 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-05 22:41:51 +0000 |
commit | ec05778d5718a7912e506764d443a78d6a6179e3 (patch) | |
tree | 78a9a01532180030c095acefc45763f07c14edb8 /src/stable/stdstream.cpp | |
parent | b20414ac1fe80a71a90601f4cd1767fa7014a9ba (diff) | |
download | libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.gz libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.bz2 libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.xz libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.zip |
Converted tabs to spaces with tabconv.
Diffstat (limited to '')
-rw-r--r-- | src/stable/stdstream.cpp | 32 |
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 | ||
11 | Bu::StdStream::StdStream( OutMode eOut ) : | 11 | Bu::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 | ||
24 | Bu::size Bu::StdStream::read( void *pBuf, Bu::size nBytes ) | 24 | Bu::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 | ||
29 | Bu::size Bu::StdStream::write( const void *pBuf, Bu::size nBytes ) | 29 | Bu::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 | ||
34 | Bu::size Bu::StdStream::tell() | 34 | Bu::size Bu::StdStream::tell() |
35 | { | 35 | { |
36 | return 0; | 36 | return 0; |
37 | } | 37 | } |
38 | 38 | ||
39 | void Bu::StdStream::seek( Bu::size ) | 39 | void Bu::StdStream::seek( Bu::size ) |
@@ -50,47 +50,47 @@ void Bu::StdStream::setPosEnd( Bu::size ) | |||
50 | 50 | ||
51 | bool Bu::StdStream::isEos() | 51 | bool Bu::StdStream::isEos() |
52 | { | 52 | { |
53 | return false; | 53 | return false; |
54 | } | 54 | } |
55 | 55 | ||
56 | bool Bu::StdStream::isOpen() | 56 | bool Bu::StdStream::isOpen() |
57 | { | 57 | { |
58 | return true; | 58 | return true; |
59 | } | 59 | } |
60 | 60 | ||
61 | void Bu::StdStream::flush() | 61 | void Bu::StdStream::flush() |
62 | { | 62 | { |
63 | fflush( eOut==StdOut?stdout:stderr ); | 63 | fflush( eOut==StdOut?stdout:stderr ); |
64 | } | 64 | } |
65 | 65 | ||
66 | bool Bu::StdStream::canRead() | 66 | bool Bu::StdStream::canRead() |
67 | { | 67 | { |
68 | return true; | 68 | return true; |
69 | } | 69 | } |
70 | 70 | ||
71 | bool Bu::StdStream::canWrite() | 71 | bool Bu::StdStream::canWrite() |
72 | { | 72 | { |
73 | return true; | 73 | return true; |
74 | } | 74 | } |
75 | 75 | ||
76 | bool Bu::StdStream::isReadable() | 76 | bool Bu::StdStream::isReadable() |
77 | { | 77 | { |
78 | return true; | 78 | return true; |
79 | } | 79 | } |
80 | 80 | ||
81 | bool Bu::StdStream::isWritable() | 81 | bool Bu::StdStream::isWritable() |
82 | { | 82 | { |
83 | return true; | 83 | return true; |
84 | } | 84 | } |
85 | 85 | ||
86 | bool Bu::StdStream::isSeekable() | 86 | bool Bu::StdStream::isSeekable() |
87 | { | 87 | { |
88 | return false; | 88 | return false; |
89 | } | 89 | } |
90 | 90 | ||
91 | bool Bu::StdStream::isBlocking() | 91 | bool Bu::StdStream::isBlocking() |
92 | { | 92 | { |
93 | return true; | 93 | return true; |
94 | } | 94 | } |
95 | 95 | ||
96 | void Bu::StdStream::setBlocking( bool ) | 96 | void Bu::StdStream::setBlocking( bool ) |
@@ -103,16 +103,16 @@ void Bu::StdStream::setSize( Bu::size ) | |||
103 | 103 | ||
104 | Bu::size Bu::StdStream::getSize() const | 104 | Bu::size Bu::StdStream::getSize() const |
105 | { | 105 | { |
106 | return 0; | 106 | return 0; |
107 | } | 107 | } |
108 | 108 | ||
109 | Bu::size Bu::StdStream::getBlockSize() const | 109 | Bu::size Bu::StdStream::getBlockSize() const |
110 | { | 110 | { |
111 | return 0; | 111 | return 0; |
112 | } | 112 | } |
113 | 113 | ||
114 | Bu::String Bu::StdStream::getLocation() const | 114 | Bu::String Bu::StdStream::getLocation() const |
115 | { | 115 | { |
116 | return ""; | 116 | return ""; |
117 | } | 117 | } |
118 | 118 | ||