AAX SDK  2.4.1
Avid Audio Extensions Development Kit
AAX_IDisplayDelegate.h
Go to the documentation of this file.
1 /*================================================================================================*/
2 /*
3  *
4  * Copyright 2014-2015 by Avid Technology, Inc.
5  * All rights reserved.
6  *
7  * CONFIDENTIAL: This document contains confidential information. Do not
8  * read or examine this document unless you are an Avid Technology employee
9  * or have signed a non-disclosure agreement with Avid Technology which protects
10  * the confidentiality of this document. DO NOT DISCLOSE ANY INFORMATION
11  * CONTAINED IN THIS DOCUMENT TO ANY THIRD-PARTY WITHOUT THE PRIOR WRITTEN CONSENT
12  * OF Avid Technology, INC.
13  *
14  */
15 
22 /*================================================================================================*/
23 
24 
25 #ifndef AAX_IDISPLAYDELETGATE_H
26 #define AAX_IDISPLAYDELETGATE_H
27 
28 #include "AAX.h"
29 
30 
31 //Forward declarations
32 class AAX_CString;
33 
53 {
54 public:
60 };
61 
67 template <typename T>
69 {
70 public:
71 
85  virtual AAX_IDisplayDelegate* Clone() const = 0;
86 
97  virtual bool ValueToString(T value, AAX_CString* valueString) const = 0;
98 
111  virtual bool ValueToString(T value, int32_t maxNumChars, AAX_CString* valueString) const = 0;
112 
123  virtual bool StringToValue(const AAX_CString& valueString, T* value) const = 0;
124 };
125 
126 
127 
128 #endif //AAX_IDISPLAYDELETGATE_H
Various utility definitions for AAX.
A generic AAX string class with similar functionality to std::string
Definition: AAX_CString.h:46
Defines the display behavior for a parameter.
Definition: AAX_IDisplayDelegate.h:53
virtual ~AAX_IDisplayDelegateBase()
Virtual destructor.
Definition: AAX_IDisplayDelegate.h:59
Classes for parameter value string conversion.
Definition: AAX_IDisplayDelegate.h:69
virtual AAX_IDisplayDelegate * Clone() const =0
Constructs and returns a copy of the display delegate.
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 surf...
virtual bool ValueToString(T value, AAX_CString *valueString) const =0
Converts a real parameter value to a string representation.
virtual bool StringToValue(const AAX_CString &valueString, T *value) const =0
Converts a string to a real parameter value.