From c8cb038634ebea6c37e86a30886676197e2ce807 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 7 Mar 2007 22:13:06 +0000 Subject: Started the fstring class, could be good. --- src/fstring.cpp | 2 ++ src/fstring.h | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 src/fstring.cpp create mode 100644 src/fstring.h 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 @@ +#include "fstring.h" + 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 @@ +#ifndef F_STRING_H +#define F_STRING_H + +#include + +/** + * + */ +template< typename chr, typename chralloc = std::allocator > +class FString +{ +public: + FString() : + pData( NULL ), + pnRefs( NULL ) + { + } + + virtual ~FString() + { + } + +private: + long nLength; + chr *pData; + uint32_t *pnRefs; + chralloc aChars; +}; + +#endif -- cgit v1.2.3