![]() |
AAX SDK
2.4.1
Avid Audio Extensions Development Kit
|
#include <AAX_CBinaryDisplayDelegate.h>
A binary display format conforming to AAX_IDisplayDelegate.
This display delegate converts a parameter value to one of two provided strings (e.g. "True" and "False".)
Public Member Functions | |
AAX_CBinaryDisplayDelegate (const char *falseString, const char *trueString) | |
Constructor. More... | |
AAX_CBinaryDisplayDelegate (const AAX_CBinaryDisplayDelegate &other) | |
AAX_IDisplayDelegate< T > * | Clone () const AAX_OVERRIDE |
Constructs and returns a copy of the display delegate. More... | |
bool | ValueToString (T value, AAX_CString *valueString) const AAX_OVERRIDE |
Converts a real parameter value to a string representation. More... | |
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. More... | |
bool | StringToValue (const AAX_CString &valueString, T *value) const AAX_OVERRIDE |
Converts a string to a real parameter value. More... | |
virtual void | AddShortenedStrings (const char *falseString, const char *trueString, int iStrLength) |
![]() | |
virtual | ~AAX_IDisplayDelegateBase () |
Virtual destructor. More... | |
AAX_CBinaryDisplayDelegate< T >::AAX_CBinaryDisplayDelegate | ( | const char * | falseString, |
const char * | trueString | ||
) |
Constructor.
[in] | falseString | The string that will be associated with false parameter values |
[in] | trueString | The string that will be associated with true parameter values |
References AAX_CString::Length().
AAX_CBinaryDisplayDelegate< T >::AAX_CBinaryDisplayDelegate | ( | const AAX_CBinaryDisplayDelegate< 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 >.
|
virtual |