AAX SDK 2.8.0
Avid Audio Extensions Development Kit
Loading...
Searching...
No Matches
AAX_IDisplayDelegate.h
Go to the documentation of this file.
1/*================================================================================================*/
2/*
3 *
4 * Copyright 2014-2015, 2023-2024 Avid Technology, Inc.
5 * All rights reserved.
6 *
7 * This file is part of the Avid AAX SDK.
8 *
9 * The AAX SDK is subject to commercial or open-source licensing.
10 *
11 * By using the AAX SDK, you agree to the terms of both the Avid AAX SDK License
12 * Agreement and Avid Privacy Policy.
13 *
14 * AAX SDK License: https://developer.avid.com/aax
15 * Privacy Policy: https://www.avid.com/legal/privacy-policy-statement
16 *
17 * Or: You may also use this code under the terms of the GPL v3 (see
18 * www.gnu.org/licenses).
19 *
20 * THE AAX SDK IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
21 * EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
22 * DISCLAIMED.
23 *
24 */
25
32/*================================================================================================*/
33
34
35#ifndef AAX_IDISPLAYDELETGATE_H
36#define AAX_IDISPLAYDELETGATE_H
37
38#include "AAX.h"
39
40
41//Forward declarations
42class AAX_CString;
43
63{
64public:
70};
71
77template <typename T>
79{
80public:
81
95 virtual AAX_IDisplayDelegate* Clone() const = 0;
96
107 virtual bool ValueToString(T value, AAX_CString* valueString) const = 0;
108
121 virtual bool ValueToString(T value, int32_t maxNumChars, AAX_CString* valueString) const = 0;
122
133 virtual bool StringToValue(const AAX_CString& valueString, T* value) const = 0;
134};
135
136
137
138#endif //AAX_IDISPLAYDELETGATE_H
Various utility definitions for AAX.
A generic AAX string class with similar functionality to std::string
Definition: AAX_CString.h:57
Defines the display behavior for a parameter.
Definition: AAX_IDisplayDelegate.h:63
virtual ~AAX_IDisplayDelegateBase()
Virtual destructor.
Definition: AAX_IDisplayDelegate.h:69
Definition: AAX_IDisplayDelegate.h:79
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 AAX_IDisplayDelegate * Clone() const =0
Constructs and returns a copy of the display delegate.
virtual bool StringToValue(const AAX_CString &valueString, T *value) const =0
Converts a string to a real parameter value.