SML string constant representation. More...
#include <sml/string.h>

Public Member Functions | |
| void | AddRef () |
| void | AttachUserData (USERDATA *data) |
| DEPRECATED_MSG ("Use Assign instead") void SetString(const char *str) | |
| DEPRECATED_MSG ("Just construct a STRUTF8 from *smlstr") STRUTF8 GetSTRUTF8() const | |
| void | DetachUserData (USERDATA *data) |
| int | FlagTextToValueMultiple (const PARM *flags, UINT32 *FlagVal) const |
| int | FlagTextToValueMultiple (const FLAG *flags, UINT32 *FlagVal) const |
| int | FlagTextToValueSingle (const PARM *flags, UINT32 *FlagVal) const |
| int | FlagTextToValueSingle (const FLAG *flags, UINT32 *FlagVal) const |
| int | FlagValueToTextMultiple (const PARM *flags, UINT32 *FlagVal) |
| int | FlagValueToTextMultiple (const FLAG *flags, UINT32 *FlagVal) |
| int | FlagValueToTextSingle (const PARM *flags, UINT32 *FlagVal) |
| int | FlagValueToTextSingle (const FLAG *flags, UINT32 *FlagVal) |
| USERDATA * | GetUserData (USERDATA::TAG tag) |
| void | Release () |
SML string constant representation.
| void SML::STRING::AddRef | ( | ) |
Increment refcount.
| void SML::STRING::AttachUserData | ( | USERDATA * | data | ) |
Attach some User Data to the string.
The data to be attached must be derived from SML::USERDATA, and must have been allocated via "new". Once attached to the string, the string owns the data and will "delete" it when the string is deleted. Also, if you try to attach something for a user ID that's already in use, it will delete the existing thing.
| SML::STRING::DEPRECATED_MSG | ( | "Use Assign instead" | ) | const |
(char*) version assumes ISO-2022.
| SML::STRING::DEPRECATED_MSG | ( | "Just construct a STRUTF8 from *smlstr" | ) | const |
| void SML::STRING::DetachUserData | ( | USERDATA * | data | ) |
Detach some User Data from the string.
If the data to be unattached isn't attached, it just ignores you. Once detached, the data is yours to do with as you wish. You are responsible for deleting it too.
Lookup multiple string values in an array of SML::FLAGS.
This method is like FlagTextToValueSingle except that the string may contain multiple flags seperated by commas and/or whitespace. This is intended for flags which are bit-field values that you would use bitwise or to combine in C or C++
| flags | SML::FLAG array describing possible values | |
| FlagVal | flag value returned |
Lookup a string value in an array of SML::FLAGS.
In an SML function, a parameter may be defined to be STYPE_String even though internally you want a number. This function allows you to look up the value in an array of SML::FLAGs
| flags | SML::FLAG array describing possible values | |
| FlagVal | flag value returned |
Lookup multiple flag values in an array of SML::FLAGS.
This method is like FlagTextToValueSingle except that the string may contain multiple flags seperated by commas and/or whitespace. This is intended for flags which are bit-field values that you would use bitwise or to combine in C or C++
| flags | SML::FLAG array describing possible values | |
| FlagVal | flag value returned |
Lookup a flag value in an array of SML::FLAGS.
In an SML function, a parameter may be defined to be STYPE_String even though internally you have a number. This function allows you to look up the string in an array of SML::FLAGs
| flags | SML::FLAG array describing possible values | |
| FlagVal | flag value returned |
| USERDATA* SML::STRING::GetUserData | ( | USERDATA::TAG | tag | ) |
Get the User Data attached to a string.
If no data for the given id is attached, it will just return NULL . Do not free the data returned unless you Unattach it first.
| void SML::STRING::Release | ( | ) |
Decrement refcount. If it goes to zero, string deletes itself.
1.6.1