Retrieve string from this atom. This will be populated only if the hzAtom has a value, the datatype is BASETYPE_STRING, and the string value was set to an actual hzString instance, as opposed to being set to a string held in a string repository. Arguments: None
| Return Type | Function name | Arguments |
|---|---|---|
| hzString | hzAtom::Str | (void) |
Declared in file: hzDatabase.h
Defined in file : hzAtom.cpp
Function Logic:
Function body:
hzString hzAtom::Str (void)
{
// Retrieve string from this atom. This will be populated only if the hzAtom has a value, the datatype is BASETYPE_STRING, and the string value was set to an actual hzString
// instance, as opposed to being set to a string held in a string repository.
//
// Arguments: None
// Returns: hzString instance by value
if (m_eStatus == ATOM_SET && m_eType == BASETYPE_STRING)
{
hzString tmp ; // Cast
hzString ret ; // To be returned
tmp._int_set(m_Data.m_uInt32) ; ret = tmp ; tmp._int_clr() ; return ret ;
}
return _hzGlobal_nullString ;
}