summaryrefslogtreecommitdiff
path: root/src/nidsstream.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nidsstream.h')
-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