| AAX SDK 2.6.1 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 Avid Technology, Inc.
5 * All rights reserved.
6 *
7 * CONFIDENTIAL: this document contains confidential information of Avid. Do
8 * not disclose to any third party. Use of the information contained in this
9 * document is subject to an Avid SDK license.
10 *
11 */
12
19/*================================================================================================*/
20
21
22#ifndef AAX_IDISPLAYDELETGATE_H
23#define AAX_IDISPLAYDELETGATE_H
24
25#include "AAX.h"
26
27
28//Forward declarations
29 class AAX_CString;
30
49 class AAX_IDisplayDelegateBase
50{
51 public:
56 virtual ~AAX_IDisplayDelegateBase() { }
57};
58
64 template <typename T>
65 class AAX_IDisplayDelegate : public AAX_IDisplayDelegateBase
66{
67 public:
68
82 virtual AAX_IDisplayDelegate* Clone() const = 0;
83
94 virtual bool ValueToString(T value, AAX_CString* valueString) const = 0;
95
108 virtual bool ValueToString(T value, int32_t maxNumChars, AAX_CString* valueString) const = 0;
109
120 virtual bool StringToValue(const AAX_CString& valueString, T* value) const = 0;
121};
122
123
124
125#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:44
AAX_IDisplayDelegateBase
Defines the display behavior for a parameter.
Definition: AAX_IDisplayDelegate.h:50
AAX_IDisplayDelegateBase::~AAX_IDisplayDelegateBase
virtual ~AAX_IDisplayDelegateBase()
Virtual destructor.
Definition: AAX_IDisplayDelegate.h:56
AAX_IDisplayDelegate
Definition: AAX_IDisplayDelegate.h:66
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.