soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SNamedString Class Reference

Manages named strings. More...

#include <SNamedValue.h>

Inheritance diagram for SNamedString:
SNamedValue< SStringW, SStringParser >

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.
 
- 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< SStringWNAMEDVALUE
 
- 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< NAMEDVALUEm_lstNamedValue
 

Detailed Description

Manages named strings.

Definition at line 283 of file SNamedValue.h.

Member Function Documentation

◆ Get() [1/2]

BOOL SNamedString::Get ( const SStringW & strValue,
SStringW & ret ) const

Retrieves a string value by name, automatically converting named strings.

Parameters
strValueName of the string.
retVariable to store the retrieved string value.
Returns
TRUE if the string is found, FALSE otherwise.

Definition at line 41 of file SNamedValue.cpp.

◆ Get() [2/2]

SStringW SNamedString::Get ( int idx) const
inline

Retrieves a string value by index.

Parameters
idxIndex of the string.
Returns
String value at the specified index.

Definition at line 298 of file SNamedValue.h.


The documentation for this class was generated from the following files: