| AAX SDK 2.8.0 Avid Audio Extensions Development Kit

- Welcome
- Manual
- Classes
- Files
- Lists
- Support

- File List
- File Members

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
42 class AAX_CString;
43
62 class AAX_IDisplayDelegateBase
63{
64 public:
69 virtual ~AAX_IDisplayDelegateBase() { }
70};
71
77 template <typename T>
78 class AAX_IDisplayDelegate : public AAX_IDisplayDelegateBase
79{
80 public:
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
AAX.h
Various utility definitions for AAX.
AAX_CString
A generic AAX string class with similar functionality to std::string
Definition: AAX_CString.h:57
AAX_IDisplayDelegateBase
Defines the display behavior for a parameter.
Definition: AAX_IDisplayDelegate.h:63
AAX_IDisplayDelegateBase::~AAX_IDisplayDelegateBase
virtual ~AAX_IDisplayDelegateBase()
Virtual destructor.
Definition: AAX_IDisplayDelegate.h:69
AAX_IDisplayDelegate
Definition: AAX_IDisplayDelegate.h:79
AAX_IDisplayDelegate::ValueToString
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...
AAX_IDisplayDelegate::ValueToString
virtual bool ValueToString(T value, AAX_CString *valueString) const =0
Converts a real parameter value to a string representation.
AAX_IDisplayDelegate::Clone
virtual AAX_IDisplayDelegate * Clone() const =0
Constructs and returns a copy of the display delegate.
AAX_IDisplayDelegate::StringToValue
virtual bool StringToValue(const AAX_CString &valueString, T *value) const =0
Converts a string to a real parameter value.