HUnicodeOptions
Fields
wchar_t * |
|
int |
|
bool |
Functions
bool |
|
__wchar_t const * |
|
wchar_t const * |
|
wchar_t const * |
|
__wchar_t const * |
Detailed Description
-
class HUnicodeOptions
The HUnicodeOptions class is a helper class which wraps up memory management for variable size Unicode options returned from HOOPS.
HUnicodeOptions uses Show_Unicode_Options_Length (or variation) to get the length of user option and manages memory allocation and free for Show_Unicode_Options. Following shows an example usage
without HUnicodeOptions class: problem is assumption that option is max 1024 unsigned short * options[MVO_BUFFER_SIZE]; HC_Show_Unicode_Options(options);
with HUnicodeOptions class: automatically allocates enough memory required (by using Show_XXX_Length routene) and free the memory in the destructor HUnicodeOptions options; options.Show_Unicode_Options();
Public Functions
-
HUnicodeOptions()
constructor
-
HUnicodeOptions(HUnicodeOptions const &in_data)
copy constructor
-
~HUnicodeOptions()
destructor
-
bool IsValid()
IsValid returns true if the user option held in this object is valid i.e. if m_length > 0
-
__wchar_t const *Show_Unicode_Options()
Show_Unicode_Options Wraps HC_Show_User_Options to use Show_XXX_Length routene and perform memory management.
- Returns
A __wchar_t* to the user options string. You can also access the same via HUserOptions.m_data
-
wchar_t const *Show_One_Net_Unicode_Option(__wchar_t const *which)
Show_One_Net_Unicode_Option Wraps HC_Show_One_Net_Unicode_Option to use Show_XXX_Length routene and perform memory management.
- Returns
A __wchar_t* to the user options string. You can also access the same via HUserOptions.m_data
-
wchar_t const *Show_One_Unicode_Option(__wchar_t const *which)
Show_One_Unicode_Option Wraps HC_Show_One_Unicode_Option to use Show_XXX_Length routene and perform memory management.
- Returns
A Show_One_Unicode_Option * to the user options string. You can also access the same via HUserOptions.m_data
-
__wchar_t const *Show_Net_Unicode_Options()
Show_Net_Unicode_Options Wraps HC_Show_Net_User_Options to use Show_XXX_Length routene and perform memory management.
- Returns
A __wchar_t* to the user options string. You can also access the same via HUserOptions.m_data
-
HUnicodeOptions()