HUnicodeOptions
-
class
HUnicodeOptions The
HUnicodeOptionsclass is a helper class which wraps up memory management for variable size Unicode options returned from HOOPS.HUnicodeOptionsuses 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 usagewithout
HUnicodeOptionsclass: problem is assumption that option is max 1024 unsigned short * options[MVO_BUFFER_SIZE]; HC_Show_Unicode_Options(options);with
HUnicodeOptionsclass: automatically allocates enough memory required (by using Show_XXX_Length routene) and free the memory in the destructorHUnicodeOptionsoptions; options.Show_Unicode_Options();
Methods
-
HUnicodeOptions::HUnicodeOptions() constructor
-
HUnicodeOptions::HUnicodeOptions(HUnicodeOptions const &in_data) copy constructor
-
HUnicodeOptions::~HUnicodeOptions() destructor
-
bool
HUnicodeOptions::IsValid() const const
IsValid returns true if the user option held in this object is valid i.e. if m_length > 0
-
__wchar_t const *
HUnicodeOptions::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 viaHUserOptions.m_data
-
wchar_t const *
HUnicodeOptions::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 viaHUserOptions.m_data
-
wchar_t const *
HUnicodeOptions::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 viaHUserOptions.m_data
-
__wchar_t const *
HUnicodeOptions::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 viaHUserOptions.m_data
-
void
HUnicodeOptions::clear() private
Variables
-
wchar_t *
HUnicodeOptions::m_data - wchar_t
actual char* to the user options
-
int
HUnicodeOptions::m_length - int
length of current user option
-
bool
HUnicodeOptions::m_valid - bool