\hypertarget{a01805}{}\doxysection{AAX\+\_\+\+CBinary\+Display\+Delegate\texorpdfstring{$<$}{<} T \texorpdfstring{$>$}{>} Class Template Reference}
\label{a01805}\index{AAX\_CBinaryDisplayDelegate$<$ T $>$@{AAX\_CBinaryDisplayDelegate$<$ T $>$}}


{\ttfamily \#include $<$AAX\+\_\+\+CBinary\+Display\+Delegate.\+h$>$}



Inheritance diagram for AAX\+\_\+\+CBinary\+Display\+Delegate\texorpdfstring{$<$}{<} T \texorpdfstring{$>$}{>}\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=253pt]{a01804}
\end{center}
\end{figure}


Collaboration diagram for AAX\+\_\+\+CBinary\+Display\+Delegate\texorpdfstring{$<$}{<} T \texorpdfstring{$>$}{>}\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=253pt]{a01803}
\end{center}
\end{figure}


\doxysubsection{Description}
\subsubsection*{template$<$typename T$>$\newline
class AAX\+\_\+\+CBinary\+Display\+Delegate$<$ T $>$}
A binary display format conforming to \mbox{\hyperlink{a02221}{AAX\+\_\+\+IDisplay\+Delegate}}. 

This display delegate converts a parameter value to one of two provided strings (e.\+g. \char`\"{}\+True\char`\"{} and \char`\"{}\+False\char`\"{}.) \doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{a01805_a7261174f82f961b2573bfbf334ed064c}{AAX\+\_\+\+CBinary\+Display\+Delegate}} (const char $\ast$false\+String, const char $\ast$true\+String)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\mbox{\hyperlink{a01805_a5b7d4d97d370445390d5d79218d868d9}{AAX\+\_\+\+CBinary\+Display\+Delegate}} (const \mbox{\hyperlink{a01805}{AAX\+\_\+\+CBinary\+Display\+Delegate}} \&other)
\item 
\mbox{\hyperlink{a02221}{AAX\+\_\+\+IDisplay\+Delegate}}$<$ T $>$ $\ast$ \mbox{\hyperlink{a01805_ac0f060429501b13e2f79babbcfdda9ab}{Clone}} () const \mbox{\hyperlink{a00533_ac2f24a5172689ae684344abdcce55463}{AAX\+\_\+\+OVERRIDE}}
\begin{DoxyCompactList}\small\item\em Constructs and returns a copy of the display delegate. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{a01805_a37fc0647f758a9ff0d47595ba110ecdd}{Value\+To\+String}} (T value, \mbox{\hyperlink{a01933}{AAX\+\_\+\+CString}} $\ast$value\+String) const \mbox{\hyperlink{a00533_ac2f24a5172689ae684344abdcce55463}{AAX\+\_\+\+OVERRIDE}}
\begin{DoxyCompactList}\small\item\em Converts a real parameter value to a string representation. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{a01805_ad499fa03159aec7df8da1be67aae82c7}{Value\+To\+String}} (T value, int32\+\_\+t max\+Num\+Chars, \mbox{\hyperlink{a01933}{AAX\+\_\+\+CString}} $\ast$value\+String) const \mbox{\hyperlink{a00533_ac2f24a5172689ae684344abdcce55463}{AAX\+\_\+\+OVERRIDE}}
\begin{DoxyCompactList}\small\item\em Converts a real parameter value to a string representation using a size hint, useful for control surfaces and other character limited displays. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{a01805_ac707b7ca0e5fafdc4133959d8b7c5035}{String\+To\+Value}} (const \mbox{\hyperlink{a01933}{AAX\+\_\+\+CString}} \&value\+String, T $\ast$value) const \mbox{\hyperlink{a00533_ac2f24a5172689ae684344abdcce55463}{AAX\+\_\+\+OVERRIDE}}
\begin{DoxyCompactList}\small\item\em Converts a string to a real parameter value. \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{a01805_a3e6702d7c53a7f0a0f29ecf1ecd4b9b7}{Add\+Shortened\+Strings}} (const char $\ast$false\+String, const char $\ast$true\+String, int i\+Str\+Length)
\end{DoxyCompactItemize}
\begin{DoxyCompactItemize}
\item 
virtual \mbox{\hyperlink{a02221}{AAX\+\_\+\+IDisplay\+Delegate}} $\ast$ \mbox{\hyperlink{a02221_abc5378e497b2586aeb223bc3bb59154f}{Clone}} () const =0
\begin{DoxyCompactList}\small\item\em Constructs and returns a copy of the display delegate. \end{DoxyCompactList}\item 
virtual bool \mbox{\hyperlink{a02221_a7fd1e2f55055c817937bbfa66b73b2fd}{Value\+To\+String}} (T value, \mbox{\hyperlink{a01933}{AAX\+\_\+\+CString}} $\ast$value\+String) const =0
\begin{DoxyCompactList}\small\item\em Converts a real parameter value to a string representation. \end{DoxyCompactList}\item 
virtual bool \mbox{\hyperlink{a02221_a471c7381db773683b69216a9c3f5eda7}{Value\+To\+String}} (T value, int32\+\_\+t max\+Num\+Chars, \mbox{\hyperlink{a01933}{AAX\+\_\+\+CString}} $\ast$value\+String) const =0
\begin{DoxyCompactList}\small\item\em Converts a real parameter value to a string representation using a size hint, useful for control surfaces and other character limited displays. \end{DoxyCompactList}\item 
virtual bool \mbox{\hyperlink{a02221_aed5224775c9f733f091afddfba057d5e}{String\+To\+Value}} (const \mbox{\hyperlink{a01933}{AAX\+\_\+\+CString}} \&value\+String, T $\ast$value) const =0
\begin{DoxyCompactList}\small\item\em Converts a string to a real parameter value. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Public Member Functions inherited from \mbox{\hyperlink{a02217}{AAX\+\_\+\+IDisplay\+Delegate\+Base}}}
\begin{DoxyCompactItemize}
\item 
virtual \mbox{\hyperlink{a02217_a0fdaa922b4356fb4a246053bb441a840}{$\sim$\+AAX\+\_\+\+IDisplay\+Delegate\+Base}} ()
\begin{DoxyCompactList}\small\item\em Virtual destructor. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{a01805_a7261174f82f961b2573bfbf334ed064c}\label{a01805_a7261174f82f961b2573bfbf334ed064c}} 
\index{AAX\_CBinaryDisplayDelegate$<$ T $>$@{AAX\_CBinaryDisplayDelegate$<$ T $>$}!AAX\_CBinaryDisplayDelegate@{AAX\_CBinaryDisplayDelegate}}
\index{AAX\_CBinaryDisplayDelegate@{AAX\_CBinaryDisplayDelegate}!AAX\_CBinaryDisplayDelegate$<$ T $>$@{AAX\_CBinaryDisplayDelegate$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{AAX\_CBinaryDisplayDelegate()}{AAX\_CBinaryDisplayDelegate()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
\mbox{\hyperlink{a01805}{AAX\+\_\+\+CBinary\+Display\+Delegate}}$<$ T $>$\mbox{\hyperlink{a01805}{\+::\+AAX\+\_\+\+CBinary\+Display\+Delegate}} (\begin{DoxyParamCaption}\item[{const char $\ast$}]{false\+String,  }\item[{const char $\ast$}]{true\+String }\end{DoxyParamCaption})}



Constructor. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em false\+String} & The string that will be associated with false parameter values \\
\hline
\mbox{\texttt{ in}}  & {\em true\+String} & The string that will be associated with true parameter values \\
\hline
\end{DoxyParams}


References \mbox{\hyperlink{a01933_a34ccfa250b53a721417f32d4a74bfed6}{AAX\+\_\+\+CString\+::\+Length()}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{a01805_a7261174f82f961b2573bfbf334ed064c_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{a01805_a5b7d4d97d370445390d5d79218d868d9}\label{a01805_a5b7d4d97d370445390d5d79218d868d9}} 
\index{AAX\_CBinaryDisplayDelegate$<$ T $>$@{AAX\_CBinaryDisplayDelegate$<$ T $>$}!AAX\_CBinaryDisplayDelegate@{AAX\_CBinaryDisplayDelegate}}
\index{AAX\_CBinaryDisplayDelegate@{AAX\_CBinaryDisplayDelegate}!AAX\_CBinaryDisplayDelegate$<$ T $>$@{AAX\_CBinaryDisplayDelegate$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{AAX\_CBinaryDisplayDelegate()}{AAX\_CBinaryDisplayDelegate()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
\mbox{\hyperlink{a01805}{AAX\+\_\+\+CBinary\+Display\+Delegate}}$<$ T $>$\mbox{\hyperlink{a01805}{\+::\+AAX\+\_\+\+CBinary\+Display\+Delegate}} (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{a01805}{AAX\+\_\+\+CBinary\+Display\+Delegate}}$<$ T $>$ \&}]{other }\end{DoxyParamCaption})}



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{a01805_ac0f060429501b13e2f79babbcfdda9ab}\label{a01805_ac0f060429501b13e2f79babbcfdda9ab}} 
\index{AAX\_CBinaryDisplayDelegate$<$ T $>$@{AAX\_CBinaryDisplayDelegate$<$ T $>$}!Clone@{Clone}}
\index{Clone@{Clone}!AAX\_CBinaryDisplayDelegate$<$ T $>$@{AAX\_CBinaryDisplayDelegate$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{Clone()}{Clone()}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
\mbox{\hyperlink{a02221}{AAX\+\_\+\+IDisplay\+Delegate}}$<$ T $>$ $\ast$ \mbox{\hyperlink{a01805}{AAX\+\_\+\+CBinary\+Display\+Delegate}}$<$ T $>$\+::\+Clone (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}



Constructs and returns a copy of the display delegate. 

In general, this method\textquotesingle{}s implementation can use a simple copy constructor\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{keyword}{template}\ <\textcolor{keyword}{typename}\ T>}
\DoxyCodeLine{AAX\_CSubclassDisplayDelegate<T>*\ \ \ \ AAX\_CSubclassDisplayDelegate<T>::Clone()\textcolor{keyword}{\ const}}
\DoxyCodeLine{\textcolor{keyword}{}\{}
\DoxyCodeLine{\ \ \ \ \textcolor{keywordflow}{return}\ \textcolor{keyword}{new}\ AAX\_CSubclassDisplayDelegate(*\textcolor{keyword}{this});}
\DoxyCodeLine{\}}

\end{DoxyCode}
 

Implements \mbox{\hyperlink{a02221_abc5378e497b2586aeb223bc3bb59154f}{AAX\+\_\+\+IDisplay\+Delegate$<$ T $>$}}.

\mbox{\Hypertarget{a01805_a37fc0647f758a9ff0d47595ba110ecdd}\label{a01805_a37fc0647f758a9ff0d47595ba110ecdd}} 
\index{AAX\_CBinaryDisplayDelegate$<$ T $>$@{AAX\_CBinaryDisplayDelegate$<$ T $>$}!ValueToString@{ValueToString}}
\index{ValueToString@{ValueToString}!AAX\_CBinaryDisplayDelegate$<$ T $>$@{AAX\_CBinaryDisplayDelegate$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{ValueToString()}{ValueToString()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
bool \mbox{\hyperlink{a01805}{AAX\+\_\+\+CBinary\+Display\+Delegate}}$<$ T $>$\+::\+Value\+To\+String (\begin{DoxyParamCaption}\item[{T}]{value,  }\item[{\mbox{\hyperlink{a01933}{AAX\+\_\+\+CString}} $\ast$}]{value\+String }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}



Converts a real parameter value to a string representation. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em value} & The real parameter value that will be converted \\
\hline
\mbox{\texttt{ out}}  & {\em value\+String} & A string corresponding to value\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em true} & The string conversion was successful \\
\hline
{\em false} & The string conversion was unsuccessful \\
\hline
\end{DoxyRetVals}


Implements \mbox{\hyperlink{a02221_a7fd1e2f55055c817937bbfa66b73b2fd}{AAX\+\_\+\+IDisplay\+Delegate$<$ T $>$}}.

\mbox{\Hypertarget{a01805_ad499fa03159aec7df8da1be67aae82c7}\label{a01805_ad499fa03159aec7df8da1be67aae82c7}} 
\index{AAX\_CBinaryDisplayDelegate$<$ T $>$@{AAX\_CBinaryDisplayDelegate$<$ T $>$}!ValueToString@{ValueToString}}
\index{ValueToString@{ValueToString}!AAX\_CBinaryDisplayDelegate$<$ T $>$@{AAX\_CBinaryDisplayDelegate$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{ValueToString()}{ValueToString()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
bool \mbox{\hyperlink{a01805}{AAX\+\_\+\+CBinary\+Display\+Delegate}}$<$ T $>$\+::\+Value\+To\+String (\begin{DoxyParamCaption}\item[{T}]{value,  }\item[{int32\+\_\+t}]{max\+Num\+Chars,  }\item[{\mbox{\hyperlink{a01933}{AAX\+\_\+\+CString}} $\ast$}]{value\+String }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}



Converts a real parameter value to a string representation using a size hint, useful for control surfaces and other character limited displays. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em value} & The real parameter value that will be converted \\
\hline
\mbox{\texttt{ in}}  & {\em max\+Num\+Chars} & Size hint for the desired maximum number of characters in the string (not including null termination) \\
\hline
\mbox{\texttt{ out}}  & {\em value\+String} & A string corresponding to value\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em true} & The string conversion was successful \\
\hline
{\em false} & The string conversion was unsuccessful \\
\hline
\end{DoxyRetVals}


Implements \mbox{\hyperlink{a02221_a471c7381db773683b69216a9c3f5eda7}{AAX\+\_\+\+IDisplay\+Delegate$<$ T $>$}}.

\mbox{\Hypertarget{a01805_ac707b7ca0e5fafdc4133959d8b7c5035}\label{a01805_ac707b7ca0e5fafdc4133959d8b7c5035}} 
\index{AAX\_CBinaryDisplayDelegate$<$ T $>$@{AAX\_CBinaryDisplayDelegate$<$ T $>$}!StringToValue@{StringToValue}}
\index{StringToValue@{StringToValue}!AAX\_CBinaryDisplayDelegate$<$ T $>$@{AAX\_CBinaryDisplayDelegate$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{StringToValue()}{StringToValue()}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
bool \mbox{\hyperlink{a01805}{AAX\+\_\+\+CBinary\+Display\+Delegate}}$<$ T $>$\+::\+String\+To\+Value (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{a01933}{AAX\+\_\+\+CString}} \&}]{value\+String,  }\item[{T $\ast$}]{value }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}



Converts a string to a real parameter value. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em value\+String} & The string that will be converted \\
\hline
\mbox{\texttt{ out}}  & {\em value} & The real parameter value corresponding to value\+String\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em true} & The string conversion was successful \\
\hline
{\em false} & The string conversion was unsuccessful \\
\hline
\end{DoxyRetVals}


Implements \mbox{\hyperlink{a02221_aed5224775c9f733f091afddfba057d5e}{AAX\+\_\+\+IDisplay\+Delegate$<$ T $>$}}.

\mbox{\Hypertarget{a01805_a3e6702d7c53a7f0a0f29ecf1ecd4b9b7}\label{a01805_a3e6702d7c53a7f0a0f29ecf1ecd4b9b7}} 
\index{AAX\_CBinaryDisplayDelegate$<$ T $>$@{AAX\_CBinaryDisplayDelegate$<$ T $>$}!AddShortenedStrings@{AddShortenedStrings}}
\index{AddShortenedStrings@{AddShortenedStrings}!AAX\_CBinaryDisplayDelegate$<$ T $>$@{AAX\_CBinaryDisplayDelegate$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{AddShortenedStrings()}{AddShortenedStrings()}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
void \mbox{\hyperlink{a01805}{AAX\+\_\+\+CBinary\+Display\+Delegate}}$<$ T $>$\+::\+Add\+Shortened\+Strings (\begin{DoxyParamCaption}\item[{const char $\ast$}]{false\+String,  }\item[{const char $\ast$}]{true\+String,  }\item[{int}]{i\+Str\+Length }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{a00788}{AAX\+\_\+\+CBinary\+Display\+Delegate.\+h}}\end{DoxyCompactItemize}
