Retrieve Cstr from this atom. This will be populated if the hzAtom has a value and the datatype is BASETYPE_STRING, regardless of how the string value was set. Arguments: None
| Return Type | Function name | Arguments |
|---|---|---|
| const char* | hzAtom::Cstr | (void) |
Declared in file: hzDatabase.h
Defined in file : hzAtom.cpp
Function Logic:
Function body:
const char* hzAtom::Cstr (void)
{
// Retrieve Cstr from this atom. This will be populated if the hzAtom has a value and the datatype is BASETYPE_STRING, regardless of how the string value was set.
//
// Arguments: None
// Returns: Instance of hzEmail by value.
if (m_eStatus == ATOM_SET && m_eType == BASETYPE_STRING)
{
const char* pStr ; // Return string value
hzString tmp ; // Cast
tmp._int_set(m_Data.m_uInt32) ; pStr = *tmp ; tmp._int_clr() ; return pStr ;
}
return 0;
}