Manages named dimensions. More...
#include <SNamedValue.h>
Public Member Functions | |
BOOL | Get (const SStringW &strValue, SLayoutSize &ret) const |
Retrieves a dimension value by name, automatically converting named dimensions. | |
SLayoutSize | Get (int idx) const |
Retrieves a dimension value by index. | |
![]() | |
virtual BOOL | Init (SXmlNode xmlNode) |
Initializes the named values from an XML node. | |
SLayoutSize | String2Value (const SStringW &strName) const |
Converts a string name to its corresponding value. | |
BOOL | FindValue (const SStringW &strName, SLayoutSize &value) const |
Finds the value associated with a given name. | |
SLayoutSize | 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< SLayoutSize > | NAMEDVALUE |
![]() | |
static int | Compare (const void *p1, const void *p2) |
Comparison function for sorting and searching. | |
![]() | |
SArray< NAMEDVALUE > | m_lstNamedValue |
Manages named dimensions.
Definition at line 354 of file SNamedValue.h.
BOOL SNamedDimension::Get | ( | const SStringW & | strValue, |
SLayoutSize & | ret ) const |
Retrieves a dimension value by name, automatically converting named dimensions.
strValue | Name of the dimension. |
ret | Variable to store the retrieved dimension value. |
Definition at line 148 of file SNamedValue.cpp.
|
inline |
Retrieves a dimension value by index.
idx | Index of the dimension. |
Definition at line 369 of file SNamedValue.h.