#include <SL_Variant.h>
| enum EValueType |
Type of the contained parameter.
| SI_SLVT_INVALID | Invalid type. The default value for unconnected variant.
|
| SI_SLVT_BOOL | CSLBoolProxy type |
| SI_SLVT_BYTE | CSLByteProxy type |
| SI_SLVT_UBYTE | CSLUByteProxy type |
| SI_SLVT_DOUBLE | CSLDoubleProxy type |
| SI_SLVT_FLOAT | CSLFloatProxy type |
| SI_SLVT_INT | CSLIntProxy type |
| SI_SLVT_LONG | CSLLongProxy type |
| SI_SLVT_ULONG | CSLULongProxy type |
| SI_SLVT_SHORT | CSLShortProxy type |
| SI_SLVT_STRING | CSLStringProxy type |
| CSLVariantProxy | ( | ) |
Default constructor.
| CSLVariantProxy | ( | CdotXSITemplate * | in_pTemplate, | |
| SI_Int | in_nIndex | |||
| ) |
Constructor that connects to a parameter in a template
| in_pTemplate | Template containing the parameter to connect to | |
| in_nIndex | Index of the parameter to connect to |
| SI_Error Connect | ( | CdotXSITemplate * | in_pTemplate, | |
| SI_Int | in_nIndex | |||
| ) |
Connects the variant to a parameter in a template
| in_pTemplate | Template containing the parameter to connect to | |
| in_nIndex | Index of the parameter to connect to |
| EValueType GetType | ( | ) | const |
Gets the type of the parameter referred by this proxy
| SI_Error GetValue | ( | SI_TinyVariant & | out_Variant | ) | const |
Gets the value of the parameter referred by this proxy
| out_Variant | The value of the parameter |
| SI_SUCCESS | Got the value of the parameter | |
| SI_ERR_BAD_ARGUMENT | Failed to get the value of the variant. This happens when CSLVariantProxy::Connect failed or wasn't called (i.e. The type of the variant is CSLVariantProxy::SI_SLVT_INVALID ); |
| SI_Error SetValue | ( | const SI_TinyVariant & | in_vVariant | ) |
Sets the value of the parameter referred by this proxy
| in_vVariant | Value to put. |
| SI_SUCCESS | Value was set | |
| SI_ERR_BAD_ARGUMENT | The value types don't match or the proxy isn't connected |
| SI_Error SetValue | ( | const CSLVariantProxy & | in_vVariant | ) |
Sets the value of the parameter referred by this proxy
| in_vVariant | Value to put. |
| SI_SUCCESS | Value was set | |
| SI_ERR_BAD_ARGUMENT | The value types don't match or the proxy isn't connected |
| static SI_Error TinyVarType2SLVarType | ( | const SI_TinyVariant & | in_TinyVariant, | |
| EValueType & | out_Type | |||
| ) | [static] |
Returns the equivalent CSLVariantProxy::EValueType of a given SI_TinyVariant
| in_TinyVariant | The tiny variant with the type to extract | |
| out_Type | The equivalent type in CSLVariantProxy::EValueType. |
| SI_SUCCESS | Equivalent variant type found and put in out_Type |
|
| SI_ERR_BAD_ARGUMENT | The SI_TinyVariant has no equivalent CSLVariantProxy::EValueType. |
| SI_Error GetTinyVarType | ( | SI_Int & | out_VariantType | ) | const |
Gets the equivalent SI_TinyVariant variant type for this instance
| out_VariantType | The equivalent SI_TinyVariant variant type |
| SI_SUCCESS | Equivalent variant type found and put in out_VariantType |
|
| SI_ERR_BAD_ARGUMENT | The proxy is unconnected or failed to connect |
CSLVariant::SI_SLVT_BOOL
CSLVariant::SI_SLVT_BYTE
CSLVariant::SI_SLVT_UBYTE
CSLVariant::SI_SLVT_DOUBLE
CSLVariant::SI_SLVT_FLOAT
CSLVariant::SI_SLVT_INT
CSLVariant::SI_SLVT_LONG
CSLVariant::SI_SLVT_ULONG
CSLVariant::SI_SLVT_SHORT
CSLVariant::SI_SLVT_STRING
| union { ... } |
Pointer to the contained parameter
CSLVariant::GetValue
CSLVariant::SetValue