Manages named fonts. More...
#include <SNamedValue.h>
Public Member Functions | |
| BOOL | Get (const SStringW &strValue, SStringW &ret) const |
| Retrieves a font value by name, automatically converting named fonts. | |
| SStringW | Get (int idx) const |
| Retrieves a font value by index. | |
Public Member Functions inherited from SNamedValue< SStringW, SStringParser > | |
| 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 | |
Public Types inherited from SNamedValue< SStringW, SStringParser > | |
| typedef TNAMEDVALUE< SStringW > | NAMEDVALUE |
Static Protected Member Functions inherited from SNamedValue< SStringW, SStringParser > | |
| static int | Compare (const void *p1, const void *p2) |
| Comparison function for sorting and searching. | |
Protected Attributes inherited from SNamedValue< SStringW, SStringParser > | |
| SArray< NAMEDVALUE > | m_lstNamedValue |
Manages named fonts.
Definition at line 308 of file SNamedValue.h.
Retrieves a font value by name, automatically converting named fonts.
| strValue | Name of the font. |
| ret | Variable to store the retrieved font value. |
Definition at line 56 of file SNamedValue.cpp.
|
inline |
Retrieves a font value by index.
| idx | Index of the font. |
Definition at line 323 of file SNamedValue.h.