template<typename T>
class AAX_CUnitDisplayDelegateDecorator< T >
A unit type decorator conforming to AAX_IDisplayDelegateDecorator.
This class is an AAX_IDisplayDelegateDecorator, meaning that it acts as a wrapper for other display delegates or concrete display types. For more information about display delegate decorators in AAX, see Display delegate decorators
The behavior of this class it to decorate parameter value strings with arbitrary units, such as "Hz" or "V". The inverse is also supported, so the unit string is pulled off of value strings when they are converted to real parameter values.
|
| AAX_CUnitDisplayDelegateDecorator (const AAX_IDisplayDelegate< T > &displayDelegate, const AAX_CString &unitString) |
| Constructor. More...
|
|
AAX_CUnitDisplayDelegateDecorator< 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...
|
|
| AAX_IDisplayDelegateDecorator (const AAX_IDisplayDelegate< T > &displayDelegate) |
| Constructor. More...
|
|
| AAX_IDisplayDelegateDecorator (const AAX_IDisplayDelegateDecorator &other) |
| Copy constructor. More...
|
|
| ~AAX_IDisplayDelegateDecorator () AAX_OVERRIDE |
| Virtual destructor. More...
|
|
AAX_IDisplayDelegateDecorator< T > * | Clone () const AAX_OVERRIDE |
| Constructs and returns a copy of the display delegate decorator. More...
|
|
bool | ValueToString (T value, AAX_CString *valueString) const AAX_OVERRIDE |
| Converts a string to a real parameter value. More...
|
|
bool | ValueToString (T value, int32_t maxNumChars, AAX_CString *valueString) const AAX_OVERRIDE |
| Converts a string to a real parameter value with a size constraint. More...
|
|
bool | StringToValue (const AAX_CString &valueString, T *value) const AAX_OVERRIDE |
| Converts a string to a real parameter value. More...
|
|
virtual | ~AAX_IDisplayDelegateBase () |
| Virtual destructor. More...
|
|