\hypertarget{a01878}{}\doxysection{AAX\+\_\+\+CNumber\+Display\+Delegate\texorpdfstring{$<$}{<} T, Precision, Space\+After \texorpdfstring{$>$}{>} Class Template Reference}
\label{a01878}\index{AAX\_CNumberDisplayDelegate$<$ T, Precision, SpaceAfter $>$@{AAX\_CNumberDisplayDelegate$<$ T, Precision, SpaceAfter $>$}}


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



Inheritance diagram for AAX\+\_\+\+CNumber\+Display\+Delegate\texorpdfstring{$<$}{<} T, Precision, Space\+After \texorpdfstring{$>$}{>}\+:
% FIG 0


Collaboration diagram for AAX\+\_\+\+CNumber\+Display\+Delegate\texorpdfstring{$<$}{<} T, Precision, Space\+After \texorpdfstring{$>$}{>}\+:
% FIG 1


\doxysubsection{Description}
\subsubsection*{template$<$typename T, uint32\+\_\+t Precision = 2, uint32\+\_\+t Space\+After = 0$>$\newline
class AAX\+\_\+\+CNumber\+Display\+Delegate$<$ T, Precision, Space\+After $>$}
A numeric display format conforming to \mbox{\hyperlink{a02242}{AAX\+\_\+\+IDisplay\+Delegate}}. 

This display delegate converts a parameter value to a numeric string using a specified precision. \doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{a01878}{AAX\+\_\+\+CNumber\+Display\+Delegate}} $\ast$ \mbox{\hyperlink{a01878_ab92a0973a7ed56034aa269c760d6b935}{Clone}} () const \mbox{\hyperlink{a00542_ac2f24a5172689ae684344abdcce55463}{AAX\+\_\+\+OVERRIDE}}
\begin{DoxyCompactList}\small\item\em Constructs and returns a copy of the display delegate. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{a01878_a260439b47a0890a008f7984958e11662}{Value\+To\+String}} (T value, \mbox{\hyperlink{a01946}{AAX\+\_\+\+CString}} $\ast$value\+String) const \mbox{\hyperlink{a00542_ac2f24a5172689ae684344abdcce55463}{AAX\+\_\+\+OVERRIDE}}
\begin{DoxyCompactList}\small\item\em Converts a real parameter value to a string representation. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{a01878_a8cb553887b6a334fbcb6432770c67ed8}{Value\+To\+String}} (T value, int32\+\_\+t max\+Num\+Chars, \mbox{\hyperlink{a01946}{AAX\+\_\+\+CString}} $\ast$value\+String) const \mbox{\hyperlink{a00542_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{a01878_ad7fba7856368f7ffe4398e6efd65dfa5}{String\+To\+Value}} (const \mbox{\hyperlink{a01946}{AAX\+\_\+\+CString}} \&value\+String, T $\ast$value) const \mbox{\hyperlink{a00542_ac2f24a5172689ae684344abdcce55463}{AAX\+\_\+\+OVERRIDE}}
\begin{DoxyCompactList}\small\item\em Converts a string to a real parameter value. \end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{DoxyCompactItemize}
\item 
virtual \mbox{\hyperlink{a02242}{AAX\+\_\+\+IDisplay\+Delegate}} $\ast$ \mbox{\hyperlink{a02242_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{a02242_a7fd1e2f55055c817937bbfa66b73b2fd}{Value\+To\+String}} (T value, \mbox{\hyperlink{a01946}{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{a02242_a471c7381db773683b69216a9c3f5eda7}{Value\+To\+String}} (T value, int32\+\_\+t max\+Num\+Chars, \mbox{\hyperlink{a01946}{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{a02242_aed5224775c9f733f091afddfba057d5e}{String\+To\+Value}} (const \mbox{\hyperlink{a01946}{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{a02238}{AAX\+\_\+\+IDisplay\+Delegate\+Base}}}
\begin{DoxyCompactItemize}
\item 
virtual \mbox{\hyperlink{a02238_a0fdaa922b4356fb4a246053bb441a840}{$\sim$\+AAX\+\_\+\+IDisplay\+Delegate\+Base}} ()
\begin{DoxyCompactList}\small\item\em Virtual destructor. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{a01878_ab92a0973a7ed56034aa269c760d6b935}\label{a01878_ab92a0973a7ed56034aa269c760d6b935}} 
\index{AAX\_CNumberDisplayDelegate$<$ T, Precision, SpaceAfter $>$@{AAX\_CNumberDisplayDelegate$<$ T, Precision, SpaceAfter $>$}!Clone@{Clone}}
\index{Clone@{Clone}!AAX\_CNumberDisplayDelegate$<$ T, Precision, SpaceAfter $>$@{AAX\_CNumberDisplayDelegate$<$ T, Precision, SpaceAfter $>$}}
\doxysubsubsection{\texorpdfstring{Clone()}{Clone()}}
{\footnotesize\ttfamily template$<$typename T , uint32\+\_\+t Precision, uint32\+\_\+t Space\+After$>$ \\
\mbox{\hyperlink{a01878}{AAX\+\_\+\+CNumber\+Display\+Delegate}}$<$ T, Precision, Space\+After $>$ $\ast$ \mbox{\hyperlink{a01878}{AAX\+\_\+\+CNumber\+Display\+Delegate}}$<$ T, Precision, Space\+After $>$\+::\+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{a02242_abc5378e497b2586aeb223bc3bb59154f}{AAX\+\_\+\+IDisplay\+Delegate$<$ T $>$}}.

\mbox{\Hypertarget{a01878_a260439b47a0890a008f7984958e11662}\label{a01878_a260439b47a0890a008f7984958e11662}} 
\index{AAX\_CNumberDisplayDelegate$<$ T, Precision, SpaceAfter $>$@{AAX\_CNumberDisplayDelegate$<$ T, Precision, SpaceAfter $>$}!ValueToString@{ValueToString}}
\index{ValueToString@{ValueToString}!AAX\_CNumberDisplayDelegate$<$ T, Precision, SpaceAfter $>$@{AAX\_CNumberDisplayDelegate$<$ T, Precision, SpaceAfter $>$}}
\doxysubsubsection{\texorpdfstring{ValueToString()}{ValueToString()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily template$<$typename T , uint32\+\_\+t Precision, uint32\+\_\+t Space\+After$>$ \\
bool \mbox{\hyperlink{a01878}{AAX\+\_\+\+CNumber\+Display\+Delegate}}$<$ T, Precision, Space\+After $>$\+::\+Value\+To\+String (\begin{DoxyParamCaption}\item[{T}]{value,  }\item[{\mbox{\hyperlink{a01946}{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{a02242_a7fd1e2f55055c817937bbfa66b73b2fd}{AAX\+\_\+\+IDisplay\+Delegate$<$ T $>$}}.



References \mbox{\hyperlink{a01946_ac3aa81a641264098a440a4857be62091}{AAX\+\_\+\+CString\+::\+Append()}}, \mbox{\hyperlink{a01946_afa3a7dbecce9b739320e9a2ec4619194}{AAX\+\_\+\+CString\+::\+Append\+Number()}}, and \mbox{\hyperlink{a01946_a866d456c7cad181d1feda559a0ca3d07}{AAX\+\_\+\+CString\+::\+Clear()}}.

Here is the call graph for this function\+:
% FIG 2
\mbox{\Hypertarget{a01878_a8cb553887b6a334fbcb6432770c67ed8}\label{a01878_a8cb553887b6a334fbcb6432770c67ed8}} 
\index{AAX\_CNumberDisplayDelegate$<$ T, Precision, SpaceAfter $>$@{AAX\_CNumberDisplayDelegate$<$ T, Precision, SpaceAfter $>$}!ValueToString@{ValueToString}}
\index{ValueToString@{ValueToString}!AAX\_CNumberDisplayDelegate$<$ T, Precision, SpaceAfter $>$@{AAX\_CNumberDisplayDelegate$<$ T, Precision, SpaceAfter $>$}}
\doxysubsubsection{\texorpdfstring{ValueToString()}{ValueToString()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily template$<$typename T , uint32\+\_\+t Precision, uint32\+\_\+t Space\+After$>$ \\
bool \mbox{\hyperlink{a01878}{AAX\+\_\+\+CNumber\+Display\+Delegate}}$<$ T, Precision, Space\+After $>$\+::\+Value\+To\+String (\begin{DoxyParamCaption}\item[{T}]{value,  }\item[{int32\+\_\+t}]{max\+Num\+Chars,  }\item[{\mbox{\hyperlink{a01946}{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{a02242_a471c7381db773683b69216a9c3f5eda7}{AAX\+\_\+\+IDisplay\+Delegate$<$ T $>$}}.



References \mbox{\hyperlink{a01946_ac3aa81a641264098a440a4857be62091}{AAX\+\_\+\+CString\+::\+Append()}}, \mbox{\hyperlink{a01946_afa3a7dbecce9b739320e9a2ec4619194}{AAX\+\_\+\+CString\+::\+Append\+Number()}}, \mbox{\hyperlink{a01946_a866d456c7cad181d1feda559a0ca3d07}{AAX\+\_\+\+CString\+::\+Clear()}}, \mbox{\hyperlink{a01946_a8b31ded2ef83e2a4e32e547dded7f5bd}{AAX\+\_\+\+CString\+::\+Erase()}}, and \mbox{\hyperlink{a01946_a34ccfa250b53a721417f32d4a74bfed6}{AAX\+\_\+\+CString\+::\+Length()}}.

Here is the call graph for this function\+:
% FIG 3
\mbox{\Hypertarget{a01878_ad7fba7856368f7ffe4398e6efd65dfa5}\label{a01878_ad7fba7856368f7ffe4398e6efd65dfa5}} 
\index{AAX\_CNumberDisplayDelegate$<$ T, Precision, SpaceAfter $>$@{AAX\_CNumberDisplayDelegate$<$ T, Precision, SpaceAfter $>$}!StringToValue@{StringToValue}}
\index{StringToValue@{StringToValue}!AAX\_CNumberDisplayDelegate$<$ T, Precision, SpaceAfter $>$@{AAX\_CNumberDisplayDelegate$<$ T, Precision, SpaceAfter $>$}}
\doxysubsubsection{\texorpdfstring{StringToValue()}{StringToValue()}}
{\footnotesize\ttfamily template$<$typename T , uint32\+\_\+t Precision, uint32\+\_\+t Space\+After$>$ \\
bool \mbox{\hyperlink{a01878}{AAX\+\_\+\+CNumber\+Display\+Delegate}}$<$ T, Precision, Space\+After $>$\+::\+String\+To\+Value (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{a01946}{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{a02242_aed5224775c9f733f091afddfba057d5e}{AAX\+\_\+\+IDisplay\+Delegate$<$ T $>$}}.



References \mbox{\hyperlink{a01946_a6dc9a81e486621fd5e3ea56df137f3d7}{AAX\+\_\+\+CString\+::\+To\+Double()}}.

Here is the call graph for this function\+:
% FIG 4


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