diff options
Diffstat (limited to '')
-rw-r--r-- | src/staticstring.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/staticstring.h b/src/staticstring.h index 732e860..68ca7ea 100644 --- a/src/staticstring.h +++ b/src/staticstring.h | |||
@@ -3,6 +3,7 @@ | |||
3 | 3 | ||
4 | #include <string> | 4 | #include <string> |
5 | #include "serializable.h" | 5 | #include "serializable.h" |
6 | //#include "hashable.h" | ||
6 | 7 | ||
7 | /** | 8 | /** |
8 | * Simple string managing class. Allows for dynamically allocated string data | 9 | * Simple string managing class. Allows for dynamically allocated string data |
@@ -11,12 +12,14 @@ | |||
11 | * and making accessing meta-info like length fast and reliable as well. | 12 | * and making accessing meta-info like length fast and reliable as well. |
12 | *@author Mike Buland | 13 | *@author Mike Buland |
13 | */ | 14 | */ |
14 | class StaticString : public Serializable | 15 | class StaticString : public Serializable//, public Hashable |
15 | { | 16 | { |
16 | public: | 17 | public: |
17 | StaticString(); | 18 | StaticString(); |
18 | StaticString( const char *lpNewStr, int nNewLen=-1 ); | 19 | StaticString( const char *lpNewStr, int nNewLen ); |
19 | StaticString( StaticString &xSrcStr, int nNewLen=-1 ); | 20 | StaticString( const char *lpNewStr ); |
21 | StaticString( StaticString &xSrcStr, int nNewLen ); | ||
22 | StaticString( StaticString &xSrcStr ); | ||
20 | StaticString( int nLength ); | 23 | StaticString( int nLength ); |
21 | virtual ~StaticString(); | 24 | virtual ~StaticString(); |
22 | 25 | ||
@@ -47,6 +50,8 @@ public: | |||
47 | 50 | ||
48 | virtual void serialize( class Serializer &ar ); | 51 | virtual void serialize( class Serializer &ar ); |
49 | 52 | ||
53 | virtual unsigned long int getHashCode(); | ||
54 | |||
50 | private: | 55 | private: |
51 | char *lpStr; | 56 | char *lpStr; |
52 | int nLen; | 57 | int nLen; |