AAX SDK  2.1.1
Avid Audio Extensions Development Kit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Attributes
AAX_CParameter< T > Class Template Reference

#include <AAX_CParameter.h>

Inheritance diagram for AAX_CParameter< T >:
Inheritance graph
[legend]
Collaboration diagram for AAX_CParameter< T >:
Collaboration graph
[legend]

Description

template<typename T>
class AAX_CParameter< T >

Generic implementation of an AAX_IParameter.

This is a concrete, templatized implementation of AAX_IParameter for parameters with standard types such as float, uint32, bool, etc.

Many different behaviors can be composited into this class as delegates. AAX_ITaperDelegate and AAX_IDisplayDelegate are two examples of delegates that this class uses in order to apply custom behaviors to the AAX_IParameter interface.

Plug-in developers can subclass these delegates to create adaptable, reusable parameter behaviors, which can then be "mixed in" to individual AAX_CParameter objects without the need to modify the objects themselves.

Note
Because AAX_CParameter is a C++ template, each AAX_CParameter template parameter that is used creates a new subclass that adheres to the AAX_IParameter interface.

Public Types

enum  Type {
  eParameterTypeUndefined = 0, eParameterTypeBool = 1, eParameterTypeInt32 = 2, eParameterTypeFloat = 3,
  eParameterTypeCustom = 4
}
 
enum  Defaults { eParameterDefaultNumStepsDiscrete = 2, eParameterDefaultNumStepsContinuous = 128, eParemeterDefaultMaxIdentifierSize = 32, eParameterDefaultMaxIdentifierLength = eParemeterDefaultMaxIdentifierSize - 1 }
 

Public Member Functions

 AAX_CParameter (AAX_CParamID identifier, const AAX_CString &name, T defaultValue, const AAX_ITaperDelegate< T > &taperDelegate, const AAX_IDisplayDelegate< T > &displayDelegate, bool automatable=false)
 Constructs an AAX_CParameter object using the specified taper and display delegates. More...
 
virtual ~AAX_CParameter ()
 Virtual destructor used to delete all locally allocated pointers. More...
 
template<>
bool GetValueAsBool (bool *value) const
 Retrieves the parameter's value as a bool. More...
 
template<>
bool GetValueAsInt32 (int32_t *value) const
 Retrieves the parameter's value as an int32_t. More...
 
template<>
bool GetValueAsFloat (float *value) const
 Retrieves the parameter's value as a float. More...
 
template<>
bool GetValueAsDouble (double *value) const
 Retrieves the parameter's value as a double. More...
 
template<>
bool GetValueAsString (AAX_IString *value) const
 Retrieves the parameter's value as a string. More...
 
template<>
bool SetValueWithBool (bool value)
 Sets the parameter's value as a bool. More...
 
template<>
bool SetValueWithInt32 (int32_t value)
 Sets the parameter's value as an int32_t. More...
 
template<>
bool SetValueWithFloat (float value)
 Sets the parameter's value as a float. More...
 
template<>
bool SetValueWithDouble (double value)
 Sets the parameter's value as a double. More...
 
template<>
bool SetValueWithString (const AAX_IString &value)
 Sets the parameter's value as a string. More...
 
Identification methods
AAX_CParamID Identifier () const
 Returns the parameter's unique identifier. More...
 
void SetName (const AAX_CString &name)
 Sets the parameter's display name. More...
 
const AAX_CStringName () const
 Returns the parameter's display name. More...
 
void AddShortenedName (const AAX_CString &name)
 Sets the parameter's shortened display name. More...
 
const AAX_CStringShortenedName (int32_t iNumCharacters) const
 Returns the parameter's shortened display name. More...
 
void ClearShortenedNames ()
 Clears the internal list of shortened display names. More...
 
Taper methods
void SetNormalizedDefaultValue (double normalizedDefault)
 Sets the parameter's default value using its normalized representation. More...
 
double GetNormalizedDefaultValue () const
 Returns the normalized representation of the parameter's real default value. More...
 
void SetToDefaultValue ()
 Restores the state of this parameter to its default value. More...
 
void SetNormalizedValue (double normalizedNewValue)
 Sets a parameter value using it's normalized representation. More...
 
double GetNormalizedValue () const
 Returns the normalized representation of the parameter's current real value. More...
 
void SetNumberOfSteps (uint32_t numSteps)
 Sets the number of discrete steps for this parameter. More...
 
uint32_t GetNumberOfSteps () const
 Returns the number of discrete steps used by the parameter. More...
 
uint32_t GetStepValue () const
 Returns the current step for the current value of the parameter. More...
 
void SetStepValue (uint32_t iStep)
 Returns the current step for the current value of the parameter. More...
 
void SetType (AAX_EParameterType iControlType)
 Sets the type of this parameter. More...
 
AAX_EParameterType GetType () const
 Returns the type of this parameter as an AAX_EParameterType. More...
 
void SetOrientation (AAX_EParameterOrientation iOrientation)
 Sets the orientation of this parameter. More...
 
AAX_EParameterOrientation GetOrientation () const
 Returns the orientation of this parameter. More...
 
Display methods
bool GetValueString (AAX_CString *valueString) const
 Serializes the parameter value into a string. More...
 
bool GetValueString (int32_t iMaxNumChars, AAX_CString *valueString) const
 Serializes the parameter value into a string, size hint included. More...
 
bool GetNormalizedValueFromString (const AAX_CString &valueString, double *normalizedValue) const
 Converts a given string to a normalized parameter value. More...
 
bool GetStringFromNormalizedValue (double normalizedValue, AAX_CString &valueString) const
 Converts a normalized parameter value to a string representing the corresponding real value. More...
 
bool GetStringFromNormalizedValue (double normalizedValue, int32_t iMaxNumChars, AAX_CString &valueString) const
 Converts a normalized parameter value to a string representing the corresponding real, size hint included. value. More...
 
bool SetValueFromString (const AAX_CString &newValueString)
 Converts a string to a real parameter value and sets the parameter to this value. More...
 
Automation methods
void SetAutomationDelegate (AAX_IAutomationDelegate *iAutomationDelegate)
 Sets the automation delegate (if one is required) More...
 
bool Automatable () const
 Returns true if the parameter is automatable, false if it is not. More...
 
void Touch ()
 Signals the automation system that a control has been touched. More...
 
void Release ()
 Signals the automation system that a control has been released. More...
 
Typed accessors
bool GetValueAsBool (bool *value) const
 Retrieves the parameter's value as a bool. More...
 
bool GetValueAsInt32 (int32_t *value) const
 Retrieves the parameter's value as an int32_t. More...
 
bool GetValueAsFloat (float *value) const
 Retrieves the parameter's value as a float. More...
 
bool GetValueAsDouble (double *value) const
 Retrieves the parameter's value as a double. More...
 
bool GetValueAsString (AAX_IString *value) const
 Retrieves the parameter's value as a string. More...
 
bool SetValueWithBool (bool value)
 Sets the parameter's value as a bool. More...
 
bool SetValueWithInt32 (int32_t value)
 Sets the parameter's value as an int32_t. More...
 
bool SetValueWithFloat (float value)
 Sets the parameter's value as a float. More...
 
bool SetValueWithDouble (double value)
 Sets the parameter's value as a double. More...
 
bool SetValueWithString (const AAX_IString &value)
 Sets the parameter's value as a string. More...
 
Direct methods on AAX_CParameter

These methods can be used to access the parameter's state and properties. These methods are specific to the concrete AAX_CParameter class and are not part of the AAX_IParameter interface.

void SetValue (T newValue)
 Initiates a host request to set the parameter's value. More...
 
GetValue () const
 Returns the parameter's value. More...
 
void SetDefaultValue (T newDefaultValue)
 Set the parameter's default value. More...
 
GetDefaultValue () const
 Returns the parameter's default value. More...
 
void SetTaperDelegate (AAX_ITaperDelegateBase &taperDelegate, bool iPreserveValue=true)
 Set the parameter's taper delegate. More...
 
void SetDisplayDelegate (AAX_IDisplayDelegateBase &displayDelegate)
 Set the parameter's display delegate. More...
 
const AAX_ITaperDelegate< T > * TaperDelegate () const
 Returns a reference to the parameter's taper delegate. More...
 
const AAX_IDisplayDelegate< T > * DisplayDelegate () const
 Returns a reference to the parameter's display delegate. More...
 
Host interface methods
void UpdateNormalizedValue (double newNormalizedValue)
 Sets the parameter's state given a normalized value. More...
 
- Public Member Functions inherited from AAX_IParameter
virtual ~AAX_IParameter ()
 Virtual destructor. More...
 

Protected Attributes

char mIdentifier [eParemeterDefaultMaxIdentifierSize]
 
AAX_CString mName
 
std::map< uint32_t, AAX_CStringmShortenedNames
 
bool mAutomatable
 
uint32_t mNumSteps
 
AAX_EParameterType mControlType
 
AAX_EParameterOrientation mOrientation
 
AAX_ITaperDelegate< T > * mTaperDelegate
 
AAX_IDisplayDelegate< T > * mDisplayDelegate
 
AAX_IAutomationDelegatemAutomationDelegate
 
bool mNeedNotify
 
mValue
 
mDefaultValue
 

Member Enumeration Documentation

template<typename T >
enum AAX_CParameter::Type
Enumerator
eParameterTypeUndefined 
eParameterTypeBool 
eParameterTypeInt32 
eParameterTypeFloat 
eParameterTypeCustom 
template<typename T >
enum AAX_CParameter::Defaults
Enumerator
eParameterDefaultNumStepsDiscrete 
eParameterDefaultNumStepsContinuous 
eParemeterDefaultMaxIdentifierSize 
eParameterDefaultMaxIdentifierLength 

Constructor & Destructor Documentation

template<typename T >
AAX_CParameter< T >::AAX_CParameter ( AAX_CParamID  identifier,
const AAX_CString name,
defaultValue,
const AAX_ITaperDelegate< T > &  taperDelegate,
const AAX_IDisplayDelegate< T > &  displayDelegate,
bool  automatable = false 
)

Constructs an AAX_CParameter object using the specified taper and display delegates.

The delegates are passed in by reference to prevent ambiguities of object ownership. For more information about identifer and name, please consult the base AAX_IParameter interface.

Parameters
[in]identifierUnique ID for the parameter, these can only be 31 characters long at most. (the fixed length is a requirement for some optimizations in the host)
[in]nameThe parameter's unabbreviated display name
[in]defaultValueThe parameter's default value
[in]taperDelegateA delegate representing the parameter's taper behavior
[in]displayDelegateA delegate representing the parameter's display conversion behavior
[in]automatableA flag to set whether the parameter will be visible to the host's automation system
Note
Upon construction, the state (value) of the parameter will be the default value, as established by the provided taperDelegate.
Host Compatibility Notes:

As of Pro Tools 10.2, DAE will check for a matching parameter NAME and not an ID when reading in automation data from a session saved with an AAX plug-ins RTAS/TDM counter part.

As of Pro Tools 11.1, AAE will first try to match ID. If that fails, AAE will fall back to matching by Name.

References AAX_ASSERT, AAX_eParameterType_Continuous, AAX_eParameterType_Discrete, AAX_CParameter< T >::eParameterDefaultMaxIdentifierLength, AAX_CParameter< T >::eParameterDefaultNumStepsContinuous, AAX_CParameter< T >::eParameterDefaultNumStepsDiscrete, AAX_CParameter< T >::eParemeterDefaultMaxIdentifierSize, AAX_CParameter< T >::mControlType, AAX_CParameter< T >::mIdentifier, AAX_CParameter< T >::mNumSteps, AAX_CParameter< T >::SetNumberOfSteps(), and AAX_CParameter< T >::SetToDefaultValue().

Here is the call graph for this function:

template<typename T >
AAX_CParameter< T >::~AAX_CParameter ( )
virtual

Virtual destructor used to delete all locally allocated pointers.

Member Function Documentation

template<typename T >
AAX_CParamID AAX_CParameter< T >::Identifier ( ) const
virtual

Returns the parameter's unique identifier.

This unique ID is used by the Parameter Manager and by outside applications to uniquely identify and target control messages. This value may not be changed after the parameter has been constructed.

Implements AAX_IParameter.

template<typename T >
void AAX_CParameter< T >::SetName ( const AAX_CString name)
virtual

Sets the parameter's display name.

This name is used for display only, it is not used for indexing or identifying the parameter This name may be changed after the parameter has been created, but display name changes may not be recognized by all AAX hosts.

Parameters
[in]nameDisplay name that will be assigned to the parameter

Implements AAX_IParameter.

template<typename T >
const AAX_CString & AAX_CParameter< T >::Name ( ) const
virtual

Returns the parameter's display name.

Note
This method returns a const reference in order to prevent a string copy. Do not cast away the const to change this value.

Implements AAX_IParameter.

template<typename T >
void AAX_CParameter< T >::AddShortenedName ( const AAX_CString name)
virtual

Sets the parameter's shortened display name.

This name is used for display only, it is not used for indexing or identifying the parameter These names show up when the host asks for shorter length parameter names for display on Control Surfaces or other string length constrained situations.

Parameters
[in]nameShortened display names that will be assigned to the parameter

Implements AAX_IParameter.

References AAX_CString::Length().

Here is the call graph for this function:

template<typename T >
const AAX_CString & AAX_CParameter< T >::ShortenedName ( int32_t  iNumCharacters) const
virtual

Returns the parameter's shortened display name.

Note
This method returns a const reference in order to prevent a string copy. Do not cast away the const to change this value.

Implements AAX_IParameter.

template<typename T >
void AAX_CParameter< T >::ClearShortenedNames ( )
virtual

Clears the internal list of shortened display names.

Implements AAX_IParameter.

template<typename T >
void AAX_CParameter< T >::SetNormalizedDefaultValue ( double  normalizedDefault)
virtual

Sets the parameter's default value using its normalized representation.

Implements AAX_IParameter.

template<typename T >
double AAX_CParameter< T >::GetNormalizedDefaultValue ( ) const
virtual

Returns the normalized representation of the parameter's real default value.

Implements AAX_IParameter.

template<typename T >
void AAX_CParameter< T >::SetToDefaultValue ( )
virtual

Restores the state of this parameter to its default value.

Implements AAX_IParameter.

Referenced by AAX_CParameter< T >::AAX_CParameter().

Here is the caller graph for this function:

template<typename T >
void AAX_CParameter< T >::SetNormalizedValue ( double  newNormalizedValue)
virtual

Sets a parameter value using it's normalized representation.

For more information regarding normalized values, see Parameter Manager

Parameters
[in]newNormalizedValueNew value (normalized) to which the parameter will be set

Implements AAX_IParameter.

template<typename T >
double AAX_CParameter< T >::GetNormalizedValue ( ) const
virtual

Returns the normalized representation of the parameter's current real value.

Implements AAX_IParameter.

template<typename T >
void AAX_CParameter< T >::SetNumberOfSteps ( uint32_t  numSteps)
virtual

Sets the number of discrete steps for this parameter.

Stepped parameter values are useful for discrete parameters and for "jumping" events such as mouse wheels, page up/down, etc. The parameter's step size is used to specify the coarseness of those changes.

Note
numSteps MUST be greater than zero. All other values may be considered an error by the host.
Parameters
[in]numStepsThe number of steps that the parameter will use

Implements AAX_IParameter.

Referenced by AAX_CParameter< T >::AAX_CParameter().

Here is the caller graph for this function:

template<typename T >
uint32_t AAX_CParameter< T >::GetNumberOfSteps ( ) const
virtual

Returns the number of discrete steps used by the parameter.

See SetNumberOfSteps() for more information about parameter steps.

Implements AAX_IParameter.

template<typename T >
uint32_t AAX_CParameter< T >::GetStepValue ( ) const
virtual

Returns the current step for the current value of the parameter.

See SetNumberOfSteps() for more information about parameter steps.

Implements AAX_IParameter.

template<typename T >
void AAX_CParameter< T >::SetStepValue ( uint32_t  iStep)
virtual

Returns the current step for the current value of the parameter.

See SetNumberOfSteps() for more information about parameter steps.

Implements AAX_IParameter.

template<typename T >
void AAX_CParameter< T >::SetType ( AAX_EParameterType  iControlType)
virtual

Sets the type of this parameter.

See GetType for use cases

Parameters
[in]iControlTypeThe parameter's new type as an AAX_EParameterType

Implements AAX_IParameter.

template<typename T >
AAX_EParameterType AAX_CParameter< T >::GetType ( ) const
virtual

Returns the type of this parameter as an AAX_EParameterType.

Todo:
Document use cases for control type

Implements AAX_IParameter.

template<typename T >
void AAX_CParameter< T >::SetOrientation ( AAX_EParameterOrientation  iOrientation)
virtual

Sets the orientation of this parameter.

Parameters
[in]iOrientationThe parameter's new orientation

Implements AAX_IParameter.

template<typename T >
AAX_EParameterOrientation AAX_CParameter< T >::GetOrientation ( ) const
virtual

Returns the orientation of this parameter.

Implements AAX_IParameter.

template<typename T >
bool AAX_CParameter< T >::GetValueString ( AAX_CString valueString) const
virtual

Serializes the parameter value into a string.

Parameters
[out]valueStringA string representing the parameter's real value
Return values
trueThe string conversion was successful
falseThe string conversion was unsuccessful

Implements AAX_IParameter.

template<typename T >
bool AAX_CParameter< T >::GetValueString ( int32_t  iMaxNumChars,
AAX_CString valueString 
) const
virtual

Serializes the parameter value into a string, size hint included.

Parameters
[in]iMaxNumCharsA size hint for the size of the string being requested. Useful for control surfaces and other limited area text fields. (make sure that size of desired string also has room for null termination)
[out]valueStringA string representing the parameter's real value
Return values
trueThe string conversion was successful
falseThe string conversion was unsuccessful

Implements AAX_IParameter.

template<typename T >
bool AAX_CParameter< T >::GetNormalizedValueFromString ( const AAX_CString valueString,
double *  normalizedValue 
) const
virtual

Converts a given string to a normalized parameter value.

Parameters
[in]valueStringA string representing a possible real value for the parameter
[out]normalizedValueThe normalized parameter value associated with valueString
Return values
trueThe string conversion was successful
falseThe string conversion was unsuccessful

Implements AAX_IParameter.

template<typename T >
bool AAX_CParameter< T >::GetStringFromNormalizedValue ( double  normalizedValue,
AAX_CString valueString 
) const
virtual

Converts a normalized parameter value to a string representing the corresponding real value.

Parameters
[in]normalizedValueA normalized parameter value
[out]valueStringA string representing the parameter value associated with normalizedValue
Return values
trueThe string conversion was successful
falseThe string conversion was unsuccessful

Implements AAX_IParameter.

template<typename T >
bool AAX_CParameter< T >::GetStringFromNormalizedValue ( double  normalizedValue,
int32_t  iMaxNumChars,
AAX_CString valueString 
) const
virtual

Converts a normalized parameter value to a string representing the corresponding real, size hint included. value.

Parameters
[in]normalizedValueA normalized parameter value
[in]iMaxNumCharsA size hint for the size of the string being requested. Useful for control surfaces and other limited area text fields. (make sure that size of desired string also has room for null termination)
[out]valueStringA string representing the parameter value associated with normalizedValue
Return values
trueThe string conversion was successful
falseThe string conversion was unsuccessful

Implements AAX_IParameter.

template<typename T >
bool AAX_CParameter< T >::SetValueFromString ( const AAX_CString newValueString)
virtual

Converts a string to a real parameter value and sets the parameter to this value.

Parameters
[in]newValueStringA string representing the parameter's new real value
Return values
trueThe string conversion was successful
falseThe string conversion was unsuccessful

Implements AAX_IParameter.

template<typename T >
void AAX_CParameter< T >::SetAutomationDelegate ( AAX_IAutomationDelegate iAutomationDelegate)
virtual

Sets the automation delegate (if one is required)

Parameters
[in]iAutomationDelegateA reference to the parameter manager's automation delegate interface

Implements AAX_IParameter.

References AAX_IAutomationDelegate::RegisterParameter().

Here is the call graph for this function:

template<typename T >
bool AAX_CParameter< T >::Automatable ( ) const
virtual

Returns true if the parameter is automatable, false if it is not.

Note
Subclasses that return true in this method must support host-based automation.

Implements AAX_IParameter.

template<typename T >
void AAX_CParameter< T >::Touch ( )
virtual

Signals the automation system that a control has been touched.

Call this method in response to GUI events that begin editing, such as a mouse down. After this method has been called you are free to call SetNormalizedValue() as much as you need, e.g. in order to respond to subsequent mouse moved events. Call Release() to free the parameter for updates from other controls.

Implements AAX_IParameter.

template<typename T >
void AAX_CParameter< T >::Release ( )
virtual

Signals the automation system that a control has been released.

Call this method in response to GUI events that complete editing, such as a mouse up. Once this method has been called you should not call SetNormalizedValue() again until after the next call to Touch().

Implements AAX_IParameter.

template<typename T >
bool AAX_CParameter< T >::GetValueAsBool ( bool *  value) const
virtual

Retrieves the parameter's value as a bool.

Parameters
[out]valueThe parameter's real value. Set only if conversion is successful.
Return values
trueThe conversion to bool was successful
falseThe conversion to bool was unsuccessful

Implements AAX_IParameter.

template<typename T >
bool AAX_CParameter< T >::GetValueAsInt32 ( int32_t *  value) const
virtual

Retrieves the parameter's value as an int32_t.

Parameters
[out]valueThe parameter's real value. Set only if conversion is successful.
Return values
trueThe conversion to int32_t was successful
falseThe conversion to int32_t was unsuccessful

Implements AAX_IParameter.

template<typename T >
bool AAX_CParameter< T >::GetValueAsFloat ( float *  value) const
virtual

Retrieves the parameter's value as a float.

Parameters
[out]valueThe parameter's real value. Set only if conversion is successful.
Return values
trueThe conversion to float was successful
falseThe conversion to float was unsuccessful

Implements AAX_IParameter.

template<typename T >
bool AAX_CParameter< T >::GetValueAsDouble ( double *  value) const
virtual

Retrieves the parameter's value as a double.

Parameters
[out]valueThe parameter's real value. Set only if conversion is successful.
Return values
trueThe conversion to double was successful
falseThe conversion to double was unsuccessful

Implements AAX_IParameter.

template<typename T >
bool AAX_CParameter< T >::GetValueAsString ( AAX_IString value) const
virtual

Retrieves the parameter's value as a string.

Parameters
[out]valueThe parameter's real value. Set only if conversion is successful.
Return values
trueThe conversion to string was successful
falseThe conversion to string was unsuccessful

Implements AAX_IParameter.

template<typename T >
bool AAX_CParameter< T >::SetValueWithBool ( bool  value)
virtual

Sets the parameter's value as a bool.

Parameters
[out]valueThe parameter's real value. Set only if conversion is successful.
Return values
trueThe conversion from bool was successful
falseThe conversion from bool was unsuccessful

Implements AAX_IParameter.

template<typename T >
bool AAX_CParameter< T >::SetValueWithInt32 ( int32_t  value)
virtual

Sets the parameter's value as an int32_t.

Parameters
[out]valueThe parameter's real value. Set only if conversion is successful.
Return values
trueThe conversion from int32_t was successful
falseThe conversion from int32_t was unsuccessful

Implements AAX_IParameter.

template<typename T >
bool AAX_CParameter< T >::SetValueWithFloat ( float  value)
virtual

Sets the parameter's value as a float.

Parameters
[out]valueThe parameter's real value. Set only if conversion is successful.
Return values
trueThe conversion from float was successful
falseThe conversion from float was unsuccessful

Implements AAX_IParameter.

template<typename T >
bool AAX_CParameter< T >::SetValueWithDouble ( double  value)
virtual

Sets the parameter's value as a double.

Parameters
[out]valueThe parameter's real value. Set only if conversion is successful.
Return values
trueThe conversion from double was successful
falseThe conversion from double was unsuccessful

Implements AAX_IParameter.

template<typename T >
bool AAX_CParameter< T >::SetValueWithString ( const AAX_IString value)
virtual

Sets the parameter's value as a string.

Parameters
[out]valueThe parameter's real value. Set only if conversion is successful.
Return values
trueThe conversion from string was successful
falseThe conversion from string was unsuccessful

Implements AAX_IParameter.

template<typename T >
void AAX_CParameter< T >::SetValue ( newValue)

Initiates a host request to set the parameter's value.

This method normalizes the provided value and sends a request for the value change to the AAX host. The host responds with a call to AAX_IParameter::UpdateNormalizedValue() to complete the set operation.

Parameters
[in]newValueThe parameter's new value
template<typename T >
T AAX_CParameter< T >::GetValue ( ) const

Returns the parameter's value.

This is the parameter's real, logical value and should not be normalized

template<typename T >
void AAX_CParameter< T >::SetDefaultValue ( newDefaultValue)

Set the parameter's default value.

This is the parameter's real, logical value and should not be normalized

Parameters
[in]newDefaultValueThe parameter's new default value
template<typename T >
T AAX_CParameter< T >::GetDefaultValue ( ) const

Returns the parameter's default value.

This is the parameter's real, logical value and should not be normalized

template<typename T >
void AAX_CParameter< T >::SetTaperDelegate ( AAX_ITaperDelegateBase taperDelegate,
bool  iPreserveValue = true 
)
virtual

Set the parameter's taper delegate.

Parameters
[in]taperDelegateA reference to the parameter's new taper delegate
[in]iPreserveValue
Todo:
Document this parameter

Implements AAX_IParameter.

References AAX_ITaperDelegate< T >::Clone().

Here is the call graph for this function:

template<typename T >
void AAX_CParameter< T >::SetDisplayDelegate ( AAX_IDisplayDelegateBase displayDelegate)
virtual

Set the parameter's display delegate.

Parameters
[in]displayDelegateA reference to the parameter's new display delegate

Implements AAX_IParameter.

References AAX_IDisplayDelegate< T >::Clone().

Here is the call graph for this function:

template<typename T >
const AAX_ITaperDelegate< T > * AAX_CParameter< T >::TaperDelegate ( ) const

Returns a reference to the parameter's taper delegate.

template<typename T >
const AAX_IDisplayDelegate< T > * AAX_CParameter< T >::DisplayDelegate ( ) const

Returns a reference to the parameter's display delegate.

template<typename T >
void AAX_CParameter< T >::UpdateNormalizedValue ( double  newNormalizedValue)
virtual

Sets the parameter's state given a normalized value.

This is the second half of the parameter setting operation that is initiated with a call to SetValue(). Parameters should not be set directly using this method; instead, use SetValue().

Parameters
[in]newNormalizedValueNormalized value that will be used to set the parameter's new state

Implements AAX_IParameter.

template<>
bool AAX_CParameter< bool >::GetValueAsBool ( bool *  value) const
virtual

Retrieves the parameter's value as a bool.

Parameters
[out]valueThe parameter's real value. Set only if conversion is successful.
Return values
trueThe conversion to bool was successful
falseThe conversion to bool was unsuccessful

Implements AAX_IParameter.

template<>
bool AAX_CParameter< int32_t >::GetValueAsInt32 ( int32_t *  value) const
virtual

Retrieves the parameter's value as an int32_t.

Parameters
[out]valueThe parameter's real value. Set only if conversion is successful.
Return values
trueThe conversion to int32_t was successful
falseThe conversion to int32_t was unsuccessful

Implements AAX_IParameter.

template<>
bool AAX_CParameter< float >::GetValueAsFloat ( float *  value) const
virtual

Retrieves the parameter's value as a float.

Parameters
[out]valueThe parameter's real value. Set only if conversion is successful.
Return values
trueThe conversion to float was successful
falseThe conversion to float was unsuccessful

Implements AAX_IParameter.

template<>
bool AAX_CParameter< double >::GetValueAsDouble ( double *  value) const
virtual

Retrieves the parameter's value as a double.

Parameters
[out]valueThe parameter's real value. Set only if conversion is successful.
Return values
trueThe conversion to double was successful
falseThe conversion to double was unsuccessful

Implements AAX_IParameter.

template<>
bool AAX_CParameter< AAX_CString >::GetValueAsString ( AAX_IString value) const
virtual

Retrieves the parameter's value as a string.

Parameters
[out]valueThe parameter's real value. Set only if conversion is successful.
Return values
trueThe conversion to string was successful
falseThe conversion to string was unsuccessful

Implements AAX_IParameter.

template<>
bool AAX_CParameter< bool >::SetValueWithBool ( bool  value)
virtual

Sets the parameter's value as a bool.

Parameters
[out]valueThe parameter's real value. Set only if conversion is successful.
Return values
trueThe conversion from bool was successful
falseThe conversion from bool was unsuccessful

Implements AAX_IParameter.

template<>
bool AAX_CParameter< int32_t >::SetValueWithInt32 ( int32_t  value)
virtual

Sets the parameter's value as an int32_t.

Parameters
[out]valueThe parameter's real value. Set only if conversion is successful.
Return values
trueThe conversion from int32_t was successful
falseThe conversion from int32_t was unsuccessful

Implements AAX_IParameter.

template<>
bool AAX_CParameter< float >::SetValueWithFloat ( float  value)
virtual

Sets the parameter's value as a float.

Parameters
[out]valueThe parameter's real value. Set only if conversion is successful.
Return values
trueThe conversion from float was successful
falseThe conversion from float was unsuccessful

Implements AAX_IParameter.

template<>
bool AAX_CParameter< double >::SetValueWithDouble ( double  value)
virtual

Sets the parameter's value as a double.

Parameters
[out]valueThe parameter's real value. Set only if conversion is successful.
Return values
trueThe conversion from double was successful
falseThe conversion from double was unsuccessful

Implements AAX_IParameter.

template<>
bool AAX_CParameter< AAX_CString >::SetValueWithString ( const AAX_IString value)
virtual

Sets the parameter's value as a string.

Parameters
[out]valueThe parameter's real value. Set only if conversion is successful.
Return values
trueThe conversion from string was successful
falseThe conversion from string was unsuccessful

Implements AAX_IParameter.

Member Data Documentation

template<typename T >
char AAX_CParameter< T >::mIdentifier[eParemeterDefaultMaxIdentifierSize]
protected
template<typename T >
AAX_CString AAX_CParameter< T >::mName
protected
template<typename T >
std::map<uint32_t, AAX_CString> AAX_CParameter< T >::mShortenedNames
protected
template<typename T >
bool AAX_CParameter< T >::mAutomatable
protected
template<typename T >
uint32_t AAX_CParameter< T >::mNumSteps
protected
template<typename T >
AAX_EParameterType AAX_CParameter< T >::mControlType
protected
template<typename T >
AAX_EParameterOrientation AAX_CParameter< T >::mOrientation
protected
template<typename T >
AAX_ITaperDelegate<T>* AAX_CParameter< T >::mTaperDelegate
protected
template<typename T >
AAX_IDisplayDelegate<T>* AAX_CParameter< T >::mDisplayDelegate
protected
template<typename T >
AAX_IAutomationDelegate* AAX_CParameter< T >::mAutomationDelegate
protected
template<typename T >
bool AAX_CParameter< T >::mNeedNotify
protected
template<typename T >
T AAX_CParameter< T >::mValue
protected
template<typename T >
T AAX_CParameter< T >::mDefaultValue
protected

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