aboutsummaryrefslogtreecommitdiff
path: root/src/nidsstream.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-05-15 07:44:10 +0000
committerMike Buland <eichlan@xagasoft.com>2010-05-15 07:44:10 +0000
commit306b80c1cf9ab490a83b36d3e7cf07e09f9e5d68 (patch)
tree32c35f8507edb4ea403f4ebc4b625c1096f6f384 /src/nidsstream.h
parent11413d228bae2919fe69c83b74c7ff49209dd65a (diff)
downloadlibbu++-306b80c1cf9ab490a83b36d3e7cf07e09f9e5d68.tar.gz
libbu++-306b80c1cf9ab490a83b36d3e7cf07e09f9e5d68.tar.bz2
libbu++-306b80c1cf9ab490a83b36d3e7cf07e09f9e5d68.tar.xz
libbu++-306b80c1cf9ab490a83b36d3e7cf07e09f9e5d68.zip
mkunit.sh was a little dumb, it didn't handle a number of things correctly.
I've written a new program that basically does the same thing, only it's much more clever, and does many more of the translations and conversions better, including the #line directives. Also, I dropped nids, we don't need it anymore. But now I'm ready to write some serious tests for myriad.
Diffstat (limited to '')
-rw-r--r--src/nidsstream.h59
1 files changed, 0 insertions, 59 deletions
diff --git a/src/nidsstream.h b/src/nidsstream.h
deleted file mode 100644
index c8c8ce0..0000000
--- a/src/nidsstream.h
+++ /dev/null
@@ -1,59 +0,0 @@
1/*
2 * Copyright (C) 2007-2010 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
8#ifndef BU_NIDS_STREAM_H
9#define BU_NIDS_STREAM_H
10
11#include "bu/stream.h"
12#include "bu/nids.h"
13
14namespace Bu
15{
16 class NidsStream : public Bu::Stream
17 {
18 friend class Nids;
19 private:
20 /**
21 * These can only be created by the Nids class.
22 */
23 NidsStream( Nids &rNids, uint32_t uStream );
24
25 public:
26// NidsStream( const NidsStream &rSrc );
27 virtual ~NidsStream();
28
29 virtual void close();
30 virtual size_t read( void *pBuf, size_t nBytes );
31 virtual size_t write( const void *pBuf, size_t nBytes );
32 using Stream::write;
33 virtual long tell();
34 virtual void seek( long offset );
35 virtual void setPos( long pos );
36 virtual void setPosEnd( long pos );
37 virtual bool isEos();
38 virtual bool isOpen();
39 virtual void flush();
40 virtual bool canRead();
41 virtual bool canWrite();
42 virtual bool isReadable();
43 virtual bool isWritable();
44 virtual bool isSeekable();
45 virtual bool isBlocking();
46 virtual void setBlocking( bool bBlocking=true );
47
48 private:
49 Nids &rNids;
50 uint32_t uStream;
51 Nids::Block *pCurBlock;
52 uint32_t uCurBlock;
53 uint32_t uSize;
54 uint32_t uBlockSize;
55 uint32_t uPos;
56 };
57};
58
59#endif