21 TBID(uint32_t id_ = 0) { Set(id_); }
22 TBID(
const char *
string) { Set(
string); }
24 TBID(
const TBStr &id_) { Set((
const char *)id_); }
26 #ifdef TB_RUNTIME_DEBUG_INFO
27 void Set(uint32_t newid);
28 void Set(
const char *
string);
29 void Set(
const TBID &newid);
30 void Set(
const TBStr &str) { Set((
const char *)str); }
32 void Set(uint32_t newid) {
id = newid; }
33 void Set(
const char *
string) {
id = TBGetHash(
string); }
34 void Set(
const TBID &newid) {
id = newid; }
35 void Set(
const TBStr &str) {
id = TBGetHash((
const char *)str); }
38 operator uint32_t ()
const {
return id; }
39 const TBID& operator = (
const TBID &
id) { Set(
id);
return *
this; }
45 #ifdef TB_RUNTIME_DEBUG_INFO
47 const char * c_str()
const;
48 mutable TBStr debug_string;
TBID is a wrapper for a uint32_t to be used as ID.
Definition: tb_id.h:18
TBStr is a simple string class.
Definition: tb_str.h:62
TBLanguage is a basic language string manager.
Definition: tb_language.h:27