![]() |
AAX SDK 2.6.1
Avid Audio Extensions Development Kit
|
#include <AAX_CStateDisplayDelegate.h>
A generic display format conforming to AAX_IDisplayDelegate.
This display delegate is similar to AAX_CNumberDisplayDelegate, but does not include precision or spacing templatizations.
Public Member Functions | |
| AAX_CStateDisplayDelegate (const char *iStateStrings[], T iMinState=0) | |
| Constructor taking a vector of C strings. | |
| AAX_CStateDisplayDelegate (int32_t inNumStates, const char *iStateStrings[], T iMinState=0) | |
| Constructor taking a vector of C strings. | |
| AAX_CStateDisplayDelegate (const std::vector< AAX_IString * > &iStateStrings, T iMinState=0) | |
| Constructor taking a vector of AAX_IString objects. | |
| AAX_CStateDisplayDelegate (const AAX_CStateDisplayDelegate &other) | |
| AAX_IDisplayDelegate< T > * | Clone () const AAX_OVERRIDE |
| Constructs and returns a copy of the display delegate. | |
| bool | ValueToString (T value, AAX_CString *valueString) const AAX_OVERRIDE |
| Converts a real parameter value to a string representation. | |
| bool | ValueToString (T value, int32_t maxNumChars, AAX_CString *valueString) const AAX_OVERRIDE |
| Converts a real parameter value to a string representation using a size hint, useful for control surfaces and other character limited displays. | |
| bool | StringToValue (const AAX_CString &valueString, T *value) const AAX_OVERRIDE |
| Converts a string to a real parameter value. | |
| void | AddShortenedStrings (const char *iStateStrings[], int iLength) |
| bool | Compare (const AAX_CString &valueString, const AAX_CString &stateString) const |
| virtual AAX_IDisplayDelegate * | Clone () const =0 |
| Constructs and returns a copy of the display delegate. | |
| virtual bool | ValueToString (T value, AAX_CString *valueString) const =0 |
| Converts a real parameter value to a string representation. | |
| virtual bool | ValueToString (T value, int32_t maxNumChars, AAX_CString *valueString) const =0 |
| Converts a real parameter value to a string representation using a size hint, useful for control surfaces and other character limited displays. | |
| virtual bool | StringToValue (const AAX_CString &valueString, T *value) const =0 |
| Converts a string to a real parameter value. | |
Public Member Functions inherited from AAX_IDisplayDelegateBase | |
| virtual | ~AAX_IDisplayDelegateBase () |
| Virtual destructor. | |
|
explicit |
Constructor taking a vector of C strings.
Each state name will be copied into the display delegate; the C strings may be disposed after construction.
iStateStrings must be NULL-terminated
|
explicit |
Constructor taking a vector of C strings.
Each state name will be copied into the display delegate; the C strings may be disposed after construction.
State strings will be copied into the display delegate until either a NULL pointer is encountered or inNumStates strings have been copied
|
explicit |
Constructor taking a vector of AAX_IString objects.
Each AAX_IString will be copied into the display delegate and may be disposed after construction. The AAX_IString will not be mutated.
| AAX_CStateDisplayDelegate< T >::AAX_CStateDisplayDelegate | ( | const AAX_CStateDisplayDelegate< T > & | other | ) |
|
virtual |
Constructs and returns a copy of the display delegate.
In general, this method's implementation can use a simple copy constructor:
Implements AAX_IDisplayDelegate< T >.
|
virtual |
Converts a real parameter value to a string representation.
| [in] | value | The real parameter value that will be converted |
| [out] | valueString | A string corresponding to value |
| true | The string conversion was successful |
| false | The string conversion was unsuccessful |
Implements AAX_IDisplayDelegate< T >.
|
virtual |
Converts a real parameter value to a string representation using a size hint, useful for control surfaces and other character limited displays.
| [in] | value | The real parameter value that will be converted |
| [in] | maxNumChars | Size hint for the desired maximum number of characters in the string (not including null termination) |
| [out] | valueString | A string corresponding to value |
| true | The string conversion was successful |
| false | The string conversion was unsuccessful |
Implements AAX_IDisplayDelegate< T >.
|
virtual |
Converts a string to a real parameter value.
| [in] | valueString | The string that will be converted |
| [out] | value | The real parameter value corresponding to valueString |
| true | The string conversion was successful |
| false | The string conversion was unsuccessful |
Implements AAX_IDisplayDelegate< T >.
| void AAX_CStateDisplayDelegate< T >::AddShortenedStrings | ( | const char * | iStateStrings[], |
| int | iLength | ||
| ) |
| bool AAX_CStateDisplayDelegate< T >::Compare | ( | const AAX_CString & | valueString, |
| const AAX_CString & | stateString | ||
| ) | const |
1.9.6