diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-03-07 22:13:06 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-03-07 22:13:06 +0000 |
commit | c8cb038634ebea6c37e86a30886676197e2ce807 (patch) | |
tree | 11e555af6c078db5d81532e86f62d10722a534a4 /src | |
parent | 8cba0ee929112a125eb41228f667e8bdd0224f58 (diff) | |
download | libbu++-c8cb038634ebea6c37e86a30886676197e2ce807.tar.gz libbu++-c8cb038634ebea6c37e86a30886676197e2ce807.tar.bz2 libbu++-c8cb038634ebea6c37e86a30886676197e2ce807.tar.xz libbu++-c8cb038634ebea6c37e86a30886676197e2ce807.zip |
Started the fstring class, could be good.
Diffstat (limited to 'src')
-rw-r--r-- | src/fstring.cpp | 2 | ||||
-rw-r--r-- | src/fstring.h | 30 |
2 files changed, 32 insertions, 0 deletions
diff --git a/src/fstring.cpp b/src/fstring.cpp new file mode 100644 index 0000000..8fe2941 --- /dev/null +++ b/src/fstring.cpp | |||
@@ -0,0 +1,2 @@ | |||
1 | #include "fstring.h" | ||
2 | |||
diff --git a/src/fstring.h b/src/fstring.h new file mode 100644 index 0000000..a6ec010 --- /dev/null +++ b/src/fstring.h | |||
@@ -0,0 +1,30 @@ | |||
1 | #ifndef F_STRING_H | ||
2 | #define F_STRING_H | ||
3 | |||
4 | #include <stdint.h> | ||
5 | |||
6 | /** | ||
7 | * | ||
8 | */ | ||
9 | template< typename chr, typename chralloc = std::allocator<chr> > | ||
10 | class FString | ||
11 | { | ||
12 | public: | ||
13 | FString() : | ||
14 | pData( NULL ), | ||
15 | pnRefs( NULL ) | ||
16 | { | ||
17 | } | ||
18 | |||
19 | virtual ~FString() | ||
20 | { | ||
21 | } | ||
22 | |||
23 | private: | ||
24 | long nLength; | ||
25 | chr *pData; | ||
26 | uint32_t *pnRefs; | ||
27 | chralloc aChars; | ||
28 | }; | ||
29 | |||
30 | #endif | ||