v2.26
IParameter Interface Reference

Represents a parameter. Parameter contains the value of one of the following types: length or angle. This interface can be obtained through IParameterContainer. More...

Inheritance diagram for IParameter:

Public Member Functions

HRESULT GetBoolValue ([out, retval] VARIANT_BOOL *pValue)
 Returns the parameter value as bool value. More...
 
HRESULT SetBoolValue ([in] VARIANT_BOOL value)
 Sets the parameter value.
 
HRESULT GetIntValue ([out, retval] int *pValue)
 Returns the parameter value as an integer value. More...
 
HRESULT SetIntValue ([in] int value)
 Sets the parameter value.
 
HRESULT GetDoubleValue ([out, retval] double *pValue)
 Returns the parameter value as a double value. More...
 
HRESULT SetDoubleValue ([in] double value)
 Sets the parameter value.
 
HRESULT GetStringValue ([out, retval] BSTR *pValue)
 Returns the parameter value as a string value. More...
 
HRESULT SetStringValue ([in] BSTR value)
 Sets the parameter value.
 
HRESULT HasValue ([out, retval] VARIANT_BOOL *pValue)
 Indicates if the parameter has a value. More...
 

Properties

ParameterValueType ValueType [get]
 The value type of the parameter. More...
 
IParameterDefinition Definition [get]
 The definition of the parameter. More...
 
GUID Id [get]
 The unique identifier of the parameter. More...
 
BSTR IdS [get]
 Same as Id, but accepting GUID as a string.
 

Detailed Description

Represents a parameter. Parameter contains the value of one of the following types: length or angle. This interface can be obtained through IParameterContainer.

Member Function Documentation

◆ GetBoolValue()

HRESULT IParameter::GetBoolValue ( [out, retval] VARIANT_BOOL *  pValue)

Returns the parameter value as bool value.

Parameters
[out]pValueThe parameter's value.

◆ GetDoubleValue()

HRESULT IParameter::GetDoubleValue ( [out, retval] double *  pValue)

Returns the parameter value as a double value.

Parameters
[out]pValueThe parameter's value.

◆ GetIntValue()

HRESULT IParameter::GetIntValue ( [out, retval] int *  pValue)

Returns the parameter value as an integer value.

Parameters
[out]pValueThe parameter's value.

◆ GetStringValue()

HRESULT IParameter::GetStringValue ( [out, retval] BSTR *  pValue)

Returns the parameter value as a string value.

Parameters
[out]pValueThe parameter's value.

◆ HasValue()

HRESULT IParameter::HasValue ( [out, retval] VARIANT_BOOL *  pValue)

Indicates if the parameter has a value.

Returns
TRUE if the parameter has a value; otherwise returns FALSE.

Property Documentation

◆ Definition

IParameterDefinition IParameter::Definition
get

The definition of the parameter.

Returns
The definition of the parameter.

◆ Id

GUID IParameter::Id
get

The unique identifier of the parameter.

Returns
The unique identifier of the parameter.

◆ ValueType

ParameterValueType IParameter::ValueType
get

The value type of the parameter.

Returns
The value type of the parameter.