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 Member Functions | Protected Attributes
AAX_CParameterManager Class Reference

#include <AAX_CParameterManager.h>

Collaboration diagram for AAX_CParameterManager:
Collaboration graph
[legend]

Description

A container object for plug-in parameters.

This implementation uses a STL vector to store a plug-in's set of parameters. This class contains a real implementation of the Parameter Manager (as opposed to a proxy.)

For more information, see Parameter Manager.

Todo:
Should the Parameter Manager return error codes?

Public Member Functions

 AAX_CParameterManager ()
 
 ~AAX_CParameterManager ()
 
void Initialize (AAX_IAutomationDelegate *iAutomationDelegateUnknown)
 Initialize the parameter manager. More...
 
int32_t NumParameters () const
 Returns the number of parameters in this instance of the parameter manager. More...
 
void RemoveParameterByID (AAX_CParamID identifier)
 Removes a parameter from the manager. More...
 
void RemoveAllParameters ()
 Removes all parameters from the manager. More...
 
AAX_IParameterGetParameterByID (AAX_CParamID identifier)
 Given a parameter ID, retrieves a reference to the requested parameter. More...
 
const AAX_IParameterGetParameterByID (AAX_CParamID identifier) const
 Given a parameter ID, retrieves a const reference to the requested parameter. More...
 
AAX_IParameterGetParameter (int32_t index)
 Given a parameter index, retrieves a reference to the requested parameter. More...
 
const AAX_IParameterGetParameter (int32_t index) const
 Given a parameter index, retrieves a const reference to the requested parameter. More...
 
int32_t ControlIndexFromID (AAX_CParamID identifier) const
 
void AddParameter (AAX_IParameter *param)
 
void RemoveParameter (AAX_IParameter *param)
 

Protected Attributes

AAX_IAutomationDelegatemAutomationDelegate
 
std::vector< AAX_IParameter * > mParameters
 
std::map< std::string,
AAX_IParameter * > 
mParametersMap
 

Constructor & Destructor Documentation

AAX_CParameterManager::AAX_CParameterManager ( )
AAX_CParameterManager::~AAX_CParameterManager ( )

Member Function Documentation

void AAX_CParameterManager::Initialize ( AAX_IAutomationDelegate iAutomationDelegateUnknown)

Initialize the parameter manager.

Called when plug-in instance is first instantiated. This method will initialize the plug-in's automation delegate, among other set-up tasks.

Parameters
[in]iAutomationDelegateUnknownA reference to the plug-in's AAX_IAutomationDelegate interface
int32_t AAX_CParameterManager::NumParameters ( ) const

Returns the number of parameters in this instance of the parameter manager.

void AAX_CParameterManager::RemoveParameterByID ( AAX_CParamID  identifier)

Removes a parameter from the manager.

Todo:
Should this method return success/failure code?
Parameters
[in]identifierID of the parameter that will be removed
void AAX_CParameterManager::RemoveAllParameters ( )

Removes all parameters from the manager.

Todo:
Should this method return success/failure code?
AAX_IParameter* AAX_CParameterManager::GetParameterByID ( AAX_CParamID  identifier)

Given a parameter ID, retrieves a reference to the requested parameter.

Parameters
[in]identifierID of the parameter that will be retrieved
const AAX_IParameter* AAX_CParameterManager::GetParameterByID ( AAX_CParamID  identifier) const

Given a parameter ID, retrieves a const reference to the requested parameter.

Parameters
[in]identifierID of the parameter that will be retrieved
AAX_IParameter* AAX_CParameterManager::GetParameter ( int32_t  index)

Given a parameter index, retrieves a reference to the requested parameter.

Parameter indices are incremented in the order that parameters are added to the manager. See AddParameter().

Parameters
[in]indexIndex of the parameter that will be retrieved
const AAX_IParameter* AAX_CParameterManager::GetParameter ( int32_t  index) const

Given a parameter index, retrieves a const reference to the requested parameter.

Parameter indices are incremented in the order that parameters are added to the manager. See AddParameter().

Parameters
[in]indexIndex of the parameter that will be retrieved
int32_t AAX_CParameterManager::ControlIndexFromID ( AAX_CParamID  identifier) const

Given a parameter ID, retrieves the index for the specified parameter

Todo:
This should be deprecated. Historically used for mouse-over GUI events.
Parameters
[in]identifierID of the parameter that will be retrieved
void AAX_CParameterManager::AddParameter ( AAX_IParameter param)

Adds a parameter to the manager

Todo:
Should this method return success/failure code?
Parameters
[in]paramReference to the parameter that will be added
void AAX_CParameterManager::RemoveParameter ( AAX_IParameter param)

Removes a parameter to the manager

Todo:
Should this method return success/failure code?
Parameters
[in]paramReference to the parameter that will be removed

Member Data Documentation

AAX_IAutomationDelegate* AAX_CParameterManager::mAutomationDelegate
protected
std::vector<AAX_IParameter*> AAX_CParameterManager::mParameters
protected
std::map<std::string, AAX_IParameter*> AAX_CParameterManager::mParametersMap
protected

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