![]() |
AAX SDK
2.1.1
Avid Audio Extensions Development Kit
|
#include <AAX_CNumberDisplayDelegate.h>


A numeric display format conforming to AAX_IDisplayDelegate.
This display delegate converts a parameter value to a numeric string using a specified precision.
Public Member Functions | |
| AAX_CNumberDisplayDelegate * | Clone () const |
| Constructs and returns a copy of the display delegate. More... | |
| bool | ValueToString (T value, AAX_CString *valueString) const |
| Converts a real parameter value to a string representation. More... | |
| bool | ValueToString (T value, int32_t maxNumChars, AAX_CString *valueString) const |
| 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 |
| Converts a string to a real parameter value. More... | |
Public Member Functions inherited from AAX_IDisplayDelegateBase | |
| virtual | ~AAX_IDisplayDelegateBase () |
| Virtual destructor. More... | |
|
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 >.
References AAX_CString::Append(), AAX_CString::AppendNumber(), and AAX_CString::Clear().

|
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 >.
References AAX_CString::Append(), AAX_CString::AppendNumber(), AAX_CString::Clear(), AAX_CString::Erase(), and AAX_CString::Length().

|
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 >.
References AAX_CString::ToDouble().

1.8.5