C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Hash with a string type. More...
#include <hash32.h>
Public Types | |
enum | StrHashType { htp_undef = 0 , htp_char = 1 , htp_wchar = 2 } |
Type of the source string of name. More... | |
Public Member Functions | |
StrHash (SimpleName val, uint8 type) | |
Constructor by name and type of its origin. | |
StrHash (const char *str) | |
Constructor by string. | |
StrHash (const wchar_t *str) | |
Constructor by string. | |
SimpleName | GetVal () const |
Get the value. | |
uint8 | GetType () const |
Get type. | |
int | operator== (const StrHash &with) const |
Equality operator. | |
int | operator== (const char *with) const |
Equality operator. | |
int | operator== (const wchar_t *with) const |
Equality operator. | |
Friends | |
writer & | operator<< (writer &, const c3d::StrHash &strHash) |
Write operator. | |
reader & | operator>> (reader &, c3d::StrHash &strHash) |
Read operator. | |
Hash with a string type.
Hash with type of source string.
The class is introduced for identification of the hash taken from char of the string and from hash taken with the same wchar_t of the string.