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

writeroperator<< (writer &, const c3d::StrHash &strHash)
 Write operator.
 
readeroperator>> (reader &, c3d::StrHash &strHash)
 Read operator.
 

Detailed Description

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.

Member Enumeration Documentation

◆ StrHashType

Type of the source string of name.

Enumerator
htp_undef 

The source type is unknown.

htp_char 

The source type is char.

htp_wchar 

The source type is wchar.


The documentation for this class was generated from the following file: