diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cachehandler.cpp | 2 | ||||
-rw-r--r-- | src/cachehandler.h | 18 | ||||
-rw-r--r-- | src/cacheptr.cpp | 0 | ||||
-rw-r--r-- | src/cacheptr.h | 0 | ||||
-rw-r--r-- | src/nids.cpp | 21 | ||||
-rw-r--r-- | src/nids.h | 49 | ||||
-rw-r--r-- | src/nidsstream.cpp | 10 | ||||
-rw-r--r-- | src/nidsstream.h | 18 |
8 files changed, 118 insertions, 0 deletions
diff --git a/src/cachehandler.cpp b/src/cachehandler.cpp new file mode 100644 index 0000000..d208e98 --- /dev/null +++ b/src/cachehandler.cpp | |||
@@ -0,0 +1,2 @@ | |||
1 | #include "bu/cachehandler.h" | ||
2 | |||
diff --git a/src/cachehandler.h b/src/cachehandler.h new file mode 100644 index 0000000..8841b4e --- /dev/null +++ b/src/cachehandler.h | |||
@@ -0,0 +1,18 @@ | |||
1 | #ifndef BU_CACHE_HANDLER_H | ||
2 | #define BU_CACHE_HANDLER_H | ||
3 | |||
4 | namespace Bu | ||
5 | { | ||
6 | template<class obtype> | ||
7 | class CacheHandler | ||
8 | { | ||
9 | public: | ||
10 | CacheHandler(); | ||
11 | virtual ~CacheHandler(); | ||
12 | |||
13 | forceLoad() | ||
14 | private: | ||
15 | }; | ||
16 | }; | ||
17 | |||
18 | #endif | ||
diff --git a/src/cacheptr.cpp b/src/cacheptr.cpp new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/cacheptr.cpp | |||
diff --git a/src/cacheptr.h b/src/cacheptr.h new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/cacheptr.h | |||
diff --git a/src/nids.cpp b/src/nids.cpp new file mode 100644 index 0000000..b8ea13b --- /dev/null +++ b/src/nids.cpp | |||
@@ -0,0 +1,21 @@ | |||
1 | #include "bu/nids.h" | ||
2 | |||
3 | Bu::Nids::Nids( Bu::Stream &sStore ) : | ||
4 | sStore( sStore ) | ||
5 | { | ||
6 | } | ||
7 | |||
8 | Bu::Nids::~Nids() | ||
9 | { | ||
10 | } | ||
11 | |||
12 | void Bu::Nids::initialize( int iBlockSize, int iPreAllocate ) | ||
13 | { | ||
14 | } | ||
15 | |||
16 | int Bu::Nids::createStream( int iPreAllocate ) | ||
17 | { | ||
18 | return 0; | ||
19 | } | ||
20 | |||
21 | |||
diff --git a/src/nids.h b/src/nids.h new file mode 100644 index 0000000..9954146 --- /dev/null +++ b/src/nids.h | |||
@@ -0,0 +1,49 @@ | |||
1 | #ifndef BU_NIDS_H | ||
2 | #define BU_NIDS_H | ||
3 | |||
4 | namespace Bu | ||
5 | { | ||
6 | class Stream; | ||
7 | |||
8 | /** | ||
9 | * Numerically Indexed Data Streams. This is a working name so I can | ||
10 | * actually get some code written instead of agonizing over the name. | ||
11 | * | ||
12 | * This is a system for creating streams that contain other streams in | ||
13 | * a flexible block-allocated system. | ||
14 | */ | ||
15 | class Nids | ||
16 | { | ||
17 | public: | ||
18 | Nids( Bu::Stream &sStore ); | ||
19 | virtual ~Nids(); | ||
20 | |||
21 | /** | ||
22 | * Create a new Nids system in the assosiated stream. This should be | ||
23 | * used carefully, it will destroy all data already within the stream. | ||
24 | * More options will probably be added soon. | ||
25 | */ | ||
26 | void initialize( int iBlockSize, int iPreAllocate=1 ); | ||
27 | |||
28 | /** | ||
29 | * Create a new stream within the Nids system. The ID of the new stream | ||
30 | * is returned. | ||
31 | */ | ||
32 | int createStream( int iPreAllocate=1 ); | ||
33 | |||
34 | /** | ||
35 | * Delete a stream that's already within the Nids. | ||
36 | */ | ||
37 | void deleteStream( int iID ); | ||
38 | |||
39 | /** | ||
40 | * Return a new Stream object assosiated with the given stream ID. | ||
41 | */ | ||
42 | Bu::Stream &openStream( int iID ); | ||
43 | |||
44 | private: | ||
45 | Bu::Stream &sStore; | ||
46 | }; | ||
47 | }; | ||
48 | |||
49 | #endif | ||
diff --git a/src/nidsstream.cpp b/src/nidsstream.cpp new file mode 100644 index 0000000..d05fbc0 --- /dev/null +++ b/src/nidsstream.cpp | |||
@@ -0,0 +1,10 @@ | |||
1 | #include "bu/nidsstream.h" | ||
2 | |||
3 | Bu::NidsStream::NidsStream() | ||
4 | { | ||
5 | } | ||
6 | |||
7 | Bu::NidsStream::~NidsStream() | ||
8 | { | ||
9 | } | ||
10 | |||
diff --git a/src/nidsstream.h b/src/nidsstream.h new file mode 100644 index 0000000..08b45eb --- /dev/null +++ b/src/nidsstream.h | |||
@@ -0,0 +1,18 @@ | |||
1 | #ifndef BU_NIDS_STREAM_H | ||
2 | #define BU_NIDS_STREAM_H | ||
3 | |||
4 | #include "bu/stream.h" | ||
5 | |||
6 | namespace Bu | ||
7 | { | ||
8 | class NidsStream : public Bu::Stream | ||
9 | { | ||
10 | public: | ||
11 | NidsStream(); | ||
12 | virtual ~NidsStream(); | ||
13 | |||
14 | private: | ||
15 | }; | ||
16 | }; | ||
17 | |||
18 | #endif | ||