diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2008-09-15 20:03:56 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2008-09-15 20:03:56 +0000 |
| commit | 597a1487c716b799428f4b4a4903e65df4c93ba9 (patch) | |
| tree | c743b0d4dfc3bacbffc196589543ec4e9abf1aaf /src/nidsstream.cpp | |
| parent | 3c6cb7f2347aed974543f9082a0ccd297577db41 (diff) | |
| download | libbu++-597a1487c716b799428f4b4a4903e65df4c93ba9.tar.gz libbu++-597a1487c716b799428f4b4a4903e65df4c93ba9.tar.bz2 libbu++-597a1487c716b799428f4b4a4903e65df4c93ba9.tar.xz libbu++-597a1487c716b799428f4b4a4903e65df4c93ba9.zip | |
Whoa! Loads of NIDS work. It actually compiles, runs, and I'm optimizing the
hell out of it. Good times, everyone. This is a major chunk for congo, and
the new optimizations should be good.
Diffstat (limited to '')
| -rw-r--r-- | src/nidsstream.cpp | 88 |
1 files changed, 87 insertions, 1 deletions
diff --git a/src/nidsstream.cpp b/src/nidsstream.cpp index d05fbc0..e3bd731 100644 --- a/src/nidsstream.cpp +++ b/src/nidsstream.cpp | |||
| @@ -1,10 +1,96 @@ | |||
| 1 | #include "bu/nidsstream.h" | 1 | #include "bu/nidsstream.h" |
| 2 | 2 | ||
| 3 | Bu::NidsStream::NidsStream() | 3 | Bu::NidsStream::NidsStream( Nids &rNids ) : |
| 4 | rNids( rNids ) | ||
| 4 | { | 5 | { |
| 5 | } | 6 | } |
| 6 | 7 | ||
| 8 | Bu::NidsStream::NidsStream( const Bu::NidsStream &rSrc ) : | ||
| 9 | rNids( rSrc.rNids ) | ||
| 10 | { | ||
| 11 | |||
| 12 | } | ||
| 13 | |||
| 7 | Bu::NidsStream::~NidsStream() | 14 | Bu::NidsStream::~NidsStream() |
| 8 | { | 15 | { |
| 9 | } | 16 | } |
| 10 | 17 | ||
| 18 | void Bu::NidsStream::close() | ||
| 19 | { | ||
| 20 | } | ||
| 21 | |||
| 22 | size_t Bu::NidsStream::read( void *pBuf, size_t nBytes ) | ||
| 23 | { | ||
| 24 | return 0; | ||
| 25 | } | ||
| 26 | |||
| 27 | size_t Bu::NidsStream::write( const void *pBuf, size_t nBytes ) | ||
| 28 | { | ||
| 29 | return 0; | ||
| 30 | } | ||
| 31 | |||
| 32 | long Bu::NidsStream::tell() | ||
| 33 | { | ||
| 34 | return 0; | ||
| 35 | } | ||
| 36 | |||
| 37 | void Bu::NidsStream::seek( long offset ) | ||
| 38 | { | ||
| 39 | } | ||
| 40 | |||
| 41 | void Bu::NidsStream::setPos( long pos ) | ||
| 42 | { | ||
| 43 | } | ||
| 44 | |||
| 45 | void Bu::NidsStream::setPosEnd( long pos ) | ||
| 46 | { | ||
| 47 | } | ||
| 48 | |||
| 49 | bool Bu::NidsStream::isEOS() | ||
| 50 | { | ||
| 51 | return true; | ||
| 52 | } | ||
| 53 | |||
| 54 | bool Bu::NidsStream::isOpen() | ||
| 55 | { | ||
| 56 | return true; | ||
| 57 | } | ||
| 58 | |||
| 59 | void Bu::NidsStream::flush() | ||
| 60 | { | ||
| 61 | } | ||
| 62 | |||
| 63 | bool Bu::NidsStream::canRead() | ||
| 64 | { | ||
| 65 | return true; | ||
| 66 | } | ||
| 67 | |||
| 68 | bool Bu::NidsStream::canWrite() | ||
| 69 | { | ||
| 70 | return true; | ||
| 71 | } | ||
| 72 | |||
| 73 | bool Bu::NidsStream::isReadable() | ||
| 74 | { | ||
| 75 | return true; | ||
| 76 | } | ||
| 77 | |||
| 78 | bool Bu::NidsStream::isWritable() | ||
| 79 | { | ||
| 80 | return true; | ||
| 81 | } | ||
| 82 | |||
| 83 | bool Bu::NidsStream::isSeekable() | ||
| 84 | { | ||
| 85 | return true; | ||
| 86 | } | ||
| 87 | |||
| 88 | bool Bu::NidsStream::isBlocking() | ||
| 89 | { | ||
| 90 | return true; | ||
| 91 | } | ||
| 92 | |||
| 93 | void Bu::NidsStream::setBlocking( bool bBlocking ) | ||
| 94 | { | ||
| 95 | } | ||
| 96 | |||
