Manages named strings. More...
#include <SNamedValue.h>
Public Member Functions | |
BOOL | Get (const SStringW &strValue, SStringW &ret) const |
Retrieves a string value by name, automatically converting named strings. | |
SStringW | Get (int idx) const |
Retrieves a string value by index. | |
![]() | |
virtual BOOL | Init (SXmlNode xmlNode) |
Initializes the named values from an XML node. | |
SStringW | String2Value (const SStringW &strName) const |
Converts a string name to its corresponding value. | |
BOOL | FindValue (const SStringW &strName, SStringW &value) const |
Finds the value associated with a given name. | |
SStringW | GetAt (const int idx) const |
Retrieves the value at a specific index. | |
size_t | Merge (const SNamedValue &src) |
Merges the named values from another SNamedValue object. | |
UINT | GetCount () const |
Retrieves the number of named values. | |
Additional Inherited Members | |
![]() | |
typedef TNAMEDVALUE< SStringW > | NAMEDVALUE |
![]() | |
static int | Compare (const void *p1, const void *p2) |
Comparison function for sorting and searching. | |
![]() | |
SArray< NAMEDVALUE > | m_lstNamedValue |
Manages named strings.
Definition at line 283 of file SNamedValue.h.
Retrieves a string value by name, automatically converting named strings.
strValue | Name of the string. |
ret | Variable to store the retrieved string value. |
Definition at line 41 of file SNamedValue.cpp.
|
inline |
Retrieves a string value by index.
idx | Index of the string. |
Definition at line 298 of file SNamedValue.h.