#include <mw/AiwGenericParam.h>
class TAiwGenericParam |
Public Member Functions | |
---|---|
TAiwGenericParam() | |
TAiwGenericParam(TGenericParamId) | |
TAiwGenericParam(TGenericParamId, const TAiwVariant &) | |
void | Reset() |
TGenericParamId | SemanticId() |
void | SetSemanticId(TGenericParamId) |
TAiwVariant & | Value() |
const TAiwVariant & | Value() |
Generic parameter class for passing data between applications. A generic parameter is a pair of semantic ID and variant value. The semantic ID tells the purpose of the parameter, for example a file name, URL or phone number. The variant value contains the data format and actual value. This class does not implement any consistency checks between the semantic ID and value's data format. So one semantic ID can be expressed as alternative data formats.
See also: TAiwVariant CAiwGenericParamList
TAiwGenericParam | ( | TGenericParamId | aSemanticId | ) | [inline] |
Constructs a generic parameter.
Parameter | Description |
---|---|
aSemanticId | The semantic ID of the parameter, one of TGenericParamId values. |
TAiwGenericParam | ( | TGenericParamId | aSemanticId, |
const TAiwVariant & | aValue | ||
) | [inline] |
Constructs a generic parameter.
Parameter | Description |
---|---|
aSemanticId | The semantic ID of the parameter, one of TGenericParamId values. |
aValue | The parameter value. |
TGenericParamId | SemanticId | ( | ) | const [inline] |
Returns the semantic ID of this parameter.
Returns: The semantic ID.
void | SetSemanticId | ( | TGenericParamId | aSemanticId | ) | [inline] |
Sets the semantic ID. Possibly set previous ID is overwritten.
Parameter | Description |
---|---|
aSemanticId | The semantic ID of the parameter. |
TAiwVariant & | Value | ( | ) | [inline] |
Returns the value of this parameter.
Returns: The value of the parameter.
const TAiwVariant & | Value | ( | ) | const [inline] |
Returns the const value of this parameter.
Returns: The const value of the parameter.