\hypertarget{a00614_source}{}\doxysection{AAX\+\_\+\+CUnit\+Prefix\+Display\+Delegate\+Decorator.\+h}
\label{a00614_source}\index{AAX\_CUnitPrefixDisplayDelegateDecorator.h@{AAX\_CUnitPrefixDisplayDelegateDecorator.h}}
\mbox{\hyperlink{a00614}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00002\ \textcolor{comment}{/*}}
\DoxyCodeLine{00003\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ *\ \ Copyright\ 2014-\/2017,\ 2019,\ 2023\ Avid\ Technology,\ Inc.}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ *\ \ All\ rights\ reserved.}}
\DoxyCodeLine{00006\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00007\ \textcolor{comment}{\ *\ \ CONFIDENTIAL:\ this\ document\ contains\ confidential\ information\ of\ Avid.\ Do}}
\DoxyCodeLine{00008\ \textcolor{comment}{\ *\ \ not\ disclose\ to\ any\ third\ party.\ Use\ of\ the\ information\ contained\ in\ this}}
\DoxyCodeLine{00009\ \textcolor{comment}{\ *\ \ document\ is\ subject\ to\ an\ Avid\ SDK\ license.}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00011\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00012\ }
\DoxyCodeLine{00019\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00020\ }
\DoxyCodeLine{00021\ }
\DoxyCodeLine{00022\ \textcolor{preprocessor}{\#ifndef\ AAX\_CUNITPREFIXDISPLAYDELEGATEDECORATOR\_H}}
\DoxyCodeLine{00023\ \textcolor{preprocessor}{\#define\ AAX\_CUNITPREFIXDISPLAYDELEGATEDECORATOR\_H}}
\DoxyCodeLine{00024\ }
\DoxyCodeLine{00025\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{a00539}{AAX\_IDisplayDelegateDecorator.h}}"{}}}
\DoxyCodeLine{00026\ }
\DoxyCodeLine{00027\ }
\DoxyCodeLine{00058\ \textcolor{keyword}{template}\ <\textcolor{keyword}{typename}\ T>}
\DoxyCodeLine{00059\ \textcolor{keyword}{class\ }\mbox{\hyperlink{a01961}{AAX\_CUnitPrefixDisplayDelegateDecorator}}\ :\ \textcolor{keyword}{public}\ \mbox{\hyperlink{a02225}{AAX\_IDisplayDelegateDecorator}}<T>}
\DoxyCodeLine{00060\ \{}
\DoxyCodeLine{00061\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00062\ \ \ \ \ \mbox{\hyperlink{a01961}{AAX\_CUnitPrefixDisplayDelegateDecorator}}(\textcolor{keyword}{const}\ \mbox{\hyperlink{a02221}{AAX\_IDisplayDelegate<T>}}\&\ displayDelegate);}
\DoxyCodeLine{00063\ \ \ \ \ }
\DoxyCodeLine{00064\ \ \ \ \ \textcolor{comment}{//Virtual\ overrides}}
\DoxyCodeLine{00065\ \ \ \ \ \mbox{\hyperlink{a01961}{AAX\_CUnitPrefixDisplayDelegateDecorator<T>}}*\ \ \ \mbox{\hyperlink{a01961_aa09598c77cd1e9556013bc8cdd651a2b}{Clone}}()\ \textcolor{keyword}{const}\ \mbox{\hyperlink{a00533_ac2f24a5172689ae684344abdcce55463}{AAX\_OVERRIDE}};}
\DoxyCodeLine{00066\ \ \ \ \ \textcolor{keywordtype}{bool}\ \ \ \ \ \ \ \ \mbox{\hyperlink{a01961_a74d63ddd342455674e9b1b00dc0f76e2}{ValueToString}}(T\ value,\ \mbox{\hyperlink{a01933}{AAX\_CString}}*\ valueString)\ \textcolor{keyword}{const}\ \mbox{\hyperlink{a00533_ac2f24a5172689ae684344abdcce55463}{AAX\_OVERRIDE}};}
\DoxyCodeLine{00067\ \ \ \ \ \textcolor{keywordtype}{bool}\ \ \ \ \ \ \ \ \mbox{\hyperlink{a01961_a74d63ddd342455674e9b1b00dc0f76e2}{ValueToString}}(T\ value,\ int32\_t\ maxNumChars,\ \mbox{\hyperlink{a01933}{AAX\_CString}}*\ valueString)\ \textcolor{keyword}{const}\ \mbox{\hyperlink{a00533_ac2f24a5172689ae684344abdcce55463}{AAX\_OVERRIDE}};}
\DoxyCodeLine{00068\ \ \ \ \ \textcolor{keywordtype}{bool}\ \ \ \ \ \ \ \ \mbox{\hyperlink{a01961_a6d930afe0a249f6936504c25d9c29764}{StringToValue}}(\textcolor{keyword}{const}\ \mbox{\hyperlink{a01933}{AAX\_CString}}\&\ valueString,\ T*\ value)\ \textcolor{keyword}{const}\ \mbox{\hyperlink{a00533_ac2f24a5172689ae684344abdcce55463}{AAX\_OVERRIDE}};}
\DoxyCodeLine{00069\ \};}
\DoxyCodeLine{00070\ }
\DoxyCodeLine{00071\ }
\DoxyCodeLine{00072\ }
\DoxyCodeLine{00073\ \textcolor{keyword}{template}\ <\textcolor{keyword}{typename}\ T>}
\DoxyCodeLine{00074\ \mbox{\hyperlink{a01961_a016d8c90bc04c7cb1ad6a1c23a4caed0}{AAX\_CUnitPrefixDisplayDelegateDecorator<T>::AAX\_CUnitPrefixDisplayDelegateDecorator}}(\textcolor{keyword}{const}\ \mbox{\hyperlink{a02221}{AAX\_IDisplayDelegate<T>}}\&\ displayDelegate)\ \ :}
\DoxyCodeLine{00075\ \ \ \ \ \mbox{\hyperlink{a02225}{AAX\_IDisplayDelegateDecorator}}<T>(displayDelegate)}
\DoxyCodeLine{00076\ \{}
\DoxyCodeLine{00077\ }
\DoxyCodeLine{00078\ \}}
\DoxyCodeLine{00079\ }
\DoxyCodeLine{00080\ }
\DoxyCodeLine{00081\ \textcolor{keyword}{template}\ <\textcolor{keyword}{typename}\ T>}
\DoxyCodeLine{00082\ \mbox{\hyperlink{a01961}{AAX\_CUnitPrefixDisplayDelegateDecorator<T>}}*\ \ \ \ \ \ \ \mbox{\hyperlink{a01961_aa09598c77cd1e9556013bc8cdd651a2b}{AAX\_CUnitPrefixDisplayDelegateDecorator<T>::Clone}}()\textcolor{keyword}{\ const}}
\DoxyCodeLine{00083\ \textcolor{keyword}{}\{}
\DoxyCodeLine{00084\ \ \ \ \ \textcolor{keywordflow}{return}\ \textcolor{keyword}{new}\ \mbox{\hyperlink{a01961}{AAX\_CUnitPrefixDisplayDelegateDecorator}}(*\textcolor{keyword}{this});}
\DoxyCodeLine{00085\ \}}
\DoxyCodeLine{00086\ }
\DoxyCodeLine{00087\ \textcolor{keyword}{template}\ <\textcolor{keyword}{typename}\ T>}
\DoxyCodeLine{00088\ \textcolor{keywordtype}{bool}\ \ \ \ \ \ \ \ \mbox{\hyperlink{a01961_a74d63ddd342455674e9b1b00dc0f76e2}{AAX\_CUnitPrefixDisplayDelegateDecorator<T>::ValueToString}}(T\ value,\ \mbox{\hyperlink{a01933}{AAX\_CString}}*\ valueString)\textcolor{keyword}{\ const\ }}
\DoxyCodeLine{00089\ \textcolor{keyword}{}\{}
\DoxyCodeLine{00090\ \ \ \ \ \textcolor{comment}{//Find\ the\ proper\ unit\ prefix.}}
\DoxyCodeLine{00091\ \ \ \ \ T\ absValue\ =\ fabsf(\textcolor{keywordtype}{float}(value));\ \ \ \textcolor{comment}{//If\ you\ fail\ to\ compile\ on\ this\ line,\ you're\ trying\ to\ use\ this\ class\ with\ an\ integer\ type,\ which\ is\ not\ supported.}}
\DoxyCodeLine{00092\ \ \ \ \ \textcolor{keywordflow}{if}\ (absValue\ >=\ 1000000.0)}
\DoxyCodeLine{00093\ \ \ \ \ \{}
\DoxyCodeLine{00094\ \ \ \ \ \ \ \ \ value\ =\ value\ /\ ((T)\ 1000000.0);}
\DoxyCodeLine{00095\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ succeeded\ =\ \mbox{\hyperlink{a02225_ada5780cfa332ac7946bf95aa65ae96f5}{AAX\_IDisplayDelegateDecorator<T>::ValueToString}}(value,\ valueString);}
\DoxyCodeLine{00096\ \ \ \ \ \ \ \ \ *valueString\ +=\ \mbox{\hyperlink{a01933}{AAX\_CString}}(\textcolor{stringliteral}{"{}M"{}});}
\DoxyCodeLine{00097\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ succeeded;}
\DoxyCodeLine{00098\ \ \ \ \ \}}
\DoxyCodeLine{00099\ \ \ \ \ \textcolor{keywordflow}{if}\ (absValue\ >=\ ((T)\ 1000.0))}
\DoxyCodeLine{00100\ \ \ \ \ \{}
\DoxyCodeLine{00101\ \ \ \ \ \ \ \ \ value\ =\ value\ /\ ((T)\ 1000.0);}
\DoxyCodeLine{00102\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ succeeded\ =\ \mbox{\hyperlink{a02225_ada5780cfa332ac7946bf95aa65ae96f5}{AAX\_IDisplayDelegateDecorator<T>::ValueToString}}(value,\ valueString);}
\DoxyCodeLine{00103\ \ \ \ \ \ \ \ \ *valueString\ +=\ \mbox{\hyperlink{a01933}{AAX\_CString}}(\textcolor{stringliteral}{"{}k"{}});}
\DoxyCodeLine{00104\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ succeeded;}
\DoxyCodeLine{00105\ \ \ \ \ \}}
\DoxyCodeLine{00106\ \ \ \ \ \textcolor{keywordflow}{if}\ (absValue\ >=\ ((T)\ 1.0))}
\DoxyCodeLine{00107\ \ \ \ \ \{}
\DoxyCodeLine{00108\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \mbox{\hyperlink{a02225_ada5780cfa332ac7946bf95aa65ae96f5}{AAX\_IDisplayDelegateDecorator<T>::ValueToString}}(value,\ valueString);}
\DoxyCodeLine{00109\ \ \ \ \ \}}
\DoxyCodeLine{00110\ \ \ \ \ \textcolor{keywordflow}{if}\ (absValue\ >=\ ((T)\ 0.001))}
\DoxyCodeLine{00111\ \ \ \ \ \{}
\DoxyCodeLine{00112\ \ \ \ \ \ \ \ \ value\ =\ value\ /\ ((T)\ 0.001);}
\DoxyCodeLine{00113\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ succeeded\ =\ \mbox{\hyperlink{a02225_ada5780cfa332ac7946bf95aa65ae96f5}{AAX\_IDisplayDelegateDecorator<T>::ValueToString}}(value,\ valueString);}
\DoxyCodeLine{00114\ \ \ \ \ \ \ \ \ *valueString\ +=\ \mbox{\hyperlink{a01933}{AAX\_CString}}(\textcolor{stringliteral}{"{}m"{}});}
\DoxyCodeLine{00115\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ succeeded;}
\DoxyCodeLine{00116\ \ \ \ \ \}}
\DoxyCodeLine{00117\ \ \ \ \ \textcolor{keywordflow}{if}\ (absValue\ >=\ ((T)\ 0.000001))}
\DoxyCodeLine{00118\ \ \ \ \ \{}
\DoxyCodeLine{00119\ \ \ \ \ \ \ \ \ value\ =\ value\ /\ ((T)\ 0.000001);}
\DoxyCodeLine{00120\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ succeeded\ =\ \mbox{\hyperlink{a02225_ada5780cfa332ac7946bf95aa65ae96f5}{AAX\_IDisplayDelegateDecorator<T>::ValueToString}}(value,\ valueString);}
\DoxyCodeLine{00121\ \ \ \ \ \ \ \ \ *valueString\ +=\ \mbox{\hyperlink{a01933}{AAX\_CString}}(\textcolor{stringliteral}{"{}u"{}});}
\DoxyCodeLine{00122\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ succeeded;}
\DoxyCodeLine{00123\ \ \ \ \ \}}
\DoxyCodeLine{00124\ \ \ \ \ \textcolor{keywordflow}{return}\ \mbox{\hyperlink{a02225_ada5780cfa332ac7946bf95aa65ae96f5}{AAX\_IDisplayDelegateDecorator<T>::ValueToString}}(value,\ valueString);}
\DoxyCodeLine{00125\ \}}
\DoxyCodeLine{00126\ }
\DoxyCodeLine{00127\ \textcolor{keyword}{template}\ <\textcolor{keyword}{typename}\ T>}
\DoxyCodeLine{00128\ \textcolor{keywordtype}{bool}\ \ \ \ \ \ \ \ \mbox{\hyperlink{a01961_a74d63ddd342455674e9b1b00dc0f76e2}{AAX\_CUnitPrefixDisplayDelegateDecorator<T>::ValueToString}}(T\ value,\ int32\_t\ maxNumChars,\ \mbox{\hyperlink{a01933}{AAX\_CString}}*\ valueString)\textcolor{keyword}{\ const}}
\DoxyCodeLine{00129\ \textcolor{keyword}{}\{}
\DoxyCodeLine{00130\ \ \ \ \ \textcolor{comment}{//Find\ the\ proper\ unit\ prefix.}}
\DoxyCodeLine{00131\ \ \ \ \ \textcolor{comment}{//<DMT>\ The\ maxNumChars\ is\ decremented\ by\ 1\ in\ case\ of\ the\ unit\ modifier\ being\ required\ as\ this\ is\ more\ important\ than\ precision.}}
\DoxyCodeLine{00132\ \ \ \ \ }
\DoxyCodeLine{00133\ \ \ \ \ T\ absValue\ =\ fabsf(\textcolor{keywordtype}{float}(value));\ \ \ \textcolor{comment}{//If\ you\ fail\ to\ compile\ on\ this\ line,\ you're\ trying\ to\ use\ this\ class\ with\ an\ integer\ type,\ which\ is\ not\ supported.}}
\DoxyCodeLine{00134\ \ \ \ \ \textcolor{keywordflow}{if}\ (absValue\ >=\ 1000000.0)}
\DoxyCodeLine{00135\ \ \ \ \ \{}
\DoxyCodeLine{00136\ \ \ \ \ \ \ \ \ value\ =\ value\ /\ ((T)\ 1000000.0);}
\DoxyCodeLine{00137\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ succeeded\ =\ \mbox{\hyperlink{a02225_ada5780cfa332ac7946bf95aa65ae96f5}{AAX\_IDisplayDelegateDecorator<T>::ValueToString}}(value,\ maxNumChars-\/1,\ valueString);}
\DoxyCodeLine{00138\ \ \ \ \ \ \ \ \ *valueString\ +=\ \mbox{\hyperlink{a01933}{AAX\_CString}}(\textcolor{stringliteral}{"{}M"{}});}
\DoxyCodeLine{00139\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ succeeded;}
\DoxyCodeLine{00140\ \ \ \ \ \}}
\DoxyCodeLine{00141\ \ \ \ \ \textcolor{keywordflow}{if}\ (absValue\ >=\ ((T)\ 1000.0))}
\DoxyCodeLine{00142\ \ \ \ \ \{}
\DoxyCodeLine{00143\ \ \ \ \ \ \ \ \ value\ =\ value\ /\ ((T)\ 1000.0);}
\DoxyCodeLine{00144\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ succeeded\ =\ \mbox{\hyperlink{a02225_ada5780cfa332ac7946bf95aa65ae96f5}{AAX\_IDisplayDelegateDecorator<T>::ValueToString}}(value,\ maxNumChars-\/1,\ valueString);}
\DoxyCodeLine{00145\ \ \ \ \ \ \ \ \ *valueString\ +=\ \mbox{\hyperlink{a01933}{AAX\_CString}}(\textcolor{stringliteral}{"{}k"{}});}
\DoxyCodeLine{00146\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ succeeded;}
\DoxyCodeLine{00147\ \ \ \ \ \}}
\DoxyCodeLine{00148\ \ \ \ \ \textcolor{keywordflow}{if}\ (absValue\ >=\ ((T)\ 1.0))}
\DoxyCodeLine{00149\ \ \ \ \ \{}
\DoxyCodeLine{00150\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \mbox{\hyperlink{a02225_ada5780cfa332ac7946bf95aa65ae96f5}{AAX\_IDisplayDelegateDecorator<T>::ValueToString}}(value,\ maxNumChars,\ valueString);}
\DoxyCodeLine{00151\ \ \ \ \ \}}
\DoxyCodeLine{00152\ \ \ \ \ \textcolor{keywordflow}{if}\ (absValue\ >=\ ((T)\ 0.001))}
\DoxyCodeLine{00153\ \ \ \ \ \{}
\DoxyCodeLine{00154\ \ \ \ \ \ \ \ \ value\ =\ value\ /\ ((T)\ 0.001);}
\DoxyCodeLine{00155\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ succeeded\ =\ \mbox{\hyperlink{a02225_ada5780cfa332ac7946bf95aa65ae96f5}{AAX\_IDisplayDelegateDecorator<T>::ValueToString}}(value,\ maxNumChars-\/1,\ valueString);}
\DoxyCodeLine{00156\ \ \ \ \ \ \ \ \ *valueString\ +=\ \mbox{\hyperlink{a01933}{AAX\_CString}}(\textcolor{stringliteral}{"{}m"{}});}
\DoxyCodeLine{00157\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ succeeded;}
\DoxyCodeLine{00158\ \ \ \ \ \}}
\DoxyCodeLine{00159\ \ \ \ \ \textcolor{keywordflow}{if}\ (absValue\ >=\ ((T)\ 0.000001))}
\DoxyCodeLine{00160\ \ \ \ \ \{}
\DoxyCodeLine{00161\ \ \ \ \ \ \ \ \ value\ =\ value\ /\ ((T)\ 0.000001);}
\DoxyCodeLine{00162\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ succeeded\ =\ \mbox{\hyperlink{a02225_ada5780cfa332ac7946bf95aa65ae96f5}{AAX\_IDisplayDelegateDecorator<T>::ValueToString}}(value,\ maxNumChars-\/1,\ valueString);}
\DoxyCodeLine{00163\ \ \ \ \ \ \ \ \ *valueString\ +=\ \mbox{\hyperlink{a01933}{AAX\_CString}}(\textcolor{stringliteral}{"{}u"{}});}
\DoxyCodeLine{00164\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ succeeded;}
\DoxyCodeLine{00165\ \ \ \ \ \}}
\DoxyCodeLine{00166\ \ \ \ \ \textcolor{keywordflow}{return}\ \mbox{\hyperlink{a02225_ada5780cfa332ac7946bf95aa65ae96f5}{AAX\_IDisplayDelegateDecorator<T>::ValueToString}}(value,\ maxNumChars,\ valueString);}
\DoxyCodeLine{00167\ \}}
\DoxyCodeLine{00168\ }
\DoxyCodeLine{00169\ }
\DoxyCodeLine{00170\ \textcolor{keyword}{template}\ <\textcolor{keyword}{typename}\ T>}
\DoxyCodeLine{00171\ \textcolor{keywordtype}{bool}\ \ \ \ \ \ \ \ \mbox{\hyperlink{a01961_a6d930afe0a249f6936504c25d9c29764}{AAX\_CUnitPrefixDisplayDelegateDecorator<T>::StringToValue}}(\textcolor{keyword}{const}\ \mbox{\hyperlink{a01933}{AAX\_CString}}\&\ valueString,\ T*\ value)\textcolor{keyword}{\ const}}
\DoxyCodeLine{00172\ \textcolor{keyword}{}\{}
\DoxyCodeLine{00173\ \ \ \ \ \textcolor{comment}{//Just\ call\ through\ if\ there\ is\ obviously\ no\ unit\ string.}}
\DoxyCodeLine{00174\ \ \ \ \ \textcolor{keywordflow}{if}\ (valueString.\mbox{\hyperlink{a01933_a34ccfa250b53a721417f32d4a74bfed6}{Length}}()\ <=\ 1)}
\DoxyCodeLine{00175\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \mbox{\hyperlink{a02225_a18d19293f3eca619cb5bb7f1ffde1a8d}{AAX\_IDisplayDelegateDecorator<T>::StringToValue}}(valueString,\ value);}
\DoxyCodeLine{00176\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00177\ \ \ \ \ \textcolor{comment}{//Just\ call\ through\ if\ the\ end\ of\ this\ string\ does\ not\ match\ the\ unit\ string.\ \ \ }}
\DoxyCodeLine{00178\ \ \ \ \ \mbox{\hyperlink{a01933}{AAX\_CString}}\ valueStringCopy(valueString);}
\DoxyCodeLine{00179\ \ \ \ \ T\ valueScalar\ =\ 1;}
\DoxyCodeLine{00180\ \ \ \ \ T\ valueDivScalar\ =\ 1;}
\DoxyCodeLine{00181\ \ \ \ \ \textcolor{keywordflow}{switch}(valueString[valueString.\mbox{\hyperlink{a01933_a34ccfa250b53a721417f32d4a74bfed6}{Length}}()-\/1])}
\DoxyCodeLine{00182\ \ \ \ \ \{}
\DoxyCodeLine{00183\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ \textcolor{charliteral}{'M'}:}
\DoxyCodeLine{00184\ \ \ \ \ \ \ \ \ \ \ \ \ valueScalar\ =\ ((T)\ 1000000.0);}
\DoxyCodeLine{00185\ \ \ \ \ \ \ \ \ \ \ \ \ valueStringCopy.\mbox{\hyperlink{a01933_a8b31ded2ef83e2a4e32e547dded7f5bd}{Erase}}(valueString.\mbox{\hyperlink{a01933_a34ccfa250b53a721417f32d4a74bfed6}{Length}}()-\/1,\ 1);}
\DoxyCodeLine{00186\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
\DoxyCodeLine{00187\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ \textcolor{charliteral}{'k'}:}
\DoxyCodeLine{00188\ \ \ \ \ \ \ \ \ \ \ \ \ valueScalar\ =\ ((T)\ 1000.0);}
\DoxyCodeLine{00189\ \ \ \ \ \ \ \ \ \ \ \ \ valueStringCopy.\mbox{\hyperlink{a01933_a8b31ded2ef83e2a4e32e547dded7f5bd}{Erase}}(valueString.\mbox{\hyperlink{a01933_a34ccfa250b53a721417f32d4a74bfed6}{Length}}()-\/1,\ 1);}
\DoxyCodeLine{00190\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
\DoxyCodeLine{00191\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ \textcolor{charliteral}{'m'}:}
\DoxyCodeLine{00192\ \ \ \ \ \ \ \ \ \ \ \ \ valueScalar\ =\ ((T)\ 0.001);}
\DoxyCodeLine{00193\ \ \ \ \ \ \ \ \ \ \ \ \ valueStringCopy.\mbox{\hyperlink{a01933_a8b31ded2ef83e2a4e32e547dded7f5bd}{Erase}}(valueString.\mbox{\hyperlink{a01933_a34ccfa250b53a721417f32d4a74bfed6}{Length}}()-\/1,\ 1);}
\DoxyCodeLine{00194\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
\DoxyCodeLine{00195\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ \textcolor{charliteral}{'u'}:}
\DoxyCodeLine{00196\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{//\ Rounding\ errors\ occur\ when\ trying\ to\ use\ 0.000001\ so\ went\ to\ a\ div\ scalar\ instead.}}
\DoxyCodeLine{00197\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{//\ See\ bug\ https://audio-\/jira.avid.com/browse/PTSW-\/149426.}}
\DoxyCodeLine{00198\ \ \ \ \ \ \ \ \ \ \ \ \ valueDivScalar\ =\ ((T)\ 1000000.0);}
\DoxyCodeLine{00199\ \ \ \ \ \ \ \ \ \ \ \ \ valueStringCopy.\mbox{\hyperlink{a01933_a8b31ded2ef83e2a4e32e547dded7f5bd}{Erase}}(valueString.\mbox{\hyperlink{a01933_a34ccfa250b53a721417f32d4a74bfed6}{Length}}()-\/1,\ 1);}
\DoxyCodeLine{00200\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
\DoxyCodeLine{00201\ \ \ \ \ \}}
\DoxyCodeLine{00202\ \ \ \ \ \ }
\DoxyCodeLine{00203\ \ \ \ \ \textcolor{keywordtype}{bool}\ success\ =\ \mbox{\hyperlink{a02225_a18d19293f3eca619cb5bb7f1ffde1a8d}{AAX\_IDisplayDelegateDecorator<T>::StringToValue}}(valueStringCopy,\ value);}
\DoxyCodeLine{00204\ \ \ \ \ *value\ =\ valueScalar\ *\ (*value);}
\DoxyCodeLine{00205\ \ \ \ \ *value\ =\ (*value)\ /\ valueDivScalar;}
\DoxyCodeLine{00206\ \ \ \ \ \textcolor{keywordflow}{return}\ success;}
\DoxyCodeLine{00207\ \}}
\DoxyCodeLine{00208\ }
\DoxyCodeLine{00209\ }
\DoxyCodeLine{00210\ }
\DoxyCodeLine{00211\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//AAX\_CUNITPREFIXDISPLAYDELEGATEDECORATOR}}

\end{DoxyCode}
