\doxysection{WUtilities.\+h}
\hypertarget{a00617_source}{}\label{a00617_source}\index{WUtilities.h@{WUtilities.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00002\ }
\DoxyCodeLine{00003\ \textcolor{preprocessor}{\#include<string>}}
\DoxyCodeLine{00004\ \textcolor{preprocessor}{\#include\ <codecvt>}}
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#include<cstring>}}
\DoxyCodeLine{00006\ }
\DoxyCodeLine{00007\ \textcolor{preprocessor}{\#include\ <msclr\(\backslash\)marshal\_cppstd.h>}}
\DoxyCodeLine{00008\ \textcolor{keyword}{using\ namespace\ }std;}
\DoxyCodeLine{00009\ \textcolor{keyword}{using\ namespace\ }System;}
\DoxyCodeLine{00010\ \textcolor{keyword}{using\ namespace\ }System::Runtime::InteropServices;}
\DoxyCodeLine{00011\ }
\DoxyCodeLine{00012\ \textcolor{keyword}{namespace\ }\mbox{\hyperlink{a00633}{WUtils}}\ \{}
\DoxyCodeLine{00013\ \ \ \ \ \textcolor{keyword}{public\ ref\ class}\ \mbox{\hyperlink{a01044}{WConverter}}}
\DoxyCodeLine{00014\ \ \ \ \ \{}
\DoxyCodeLine{00015\ \ \ \ \ \textcolor{keyword}{public}:}
\DoxyCodeLine{00016\ \ \ \ \ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keywordtype}{char}*\ \mbox{\hyperlink{a01044_abd61f8446cca891042dd652174c59385}{ConvertToNativeString}}(String\string^\ toConvert)\ \{\ \ \ \ }
\DoxyCodeLine{00017\ \ \ \ \ \ \ \ \ \ \ \ \ msclr::interop::marshal\_context\ context;}
\DoxyCodeLine{00018\ \ \ \ \ \ \ \ \ \ \ \ \ std::string\ atest\ =\ context.marshal\_as<string,\ String>(toConvert);}
\DoxyCodeLine{00019\ \ \ \ \ \ \ \ \ \ \ \ \ IntPtr\ ptrToNativeString\ =\ Marshal::StringToHGlobalAnsi(toConvert);}
\DoxyCodeLine{00020\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{char}*\ nativeString\ =\ \textcolor{keyword}{static\_cast<}\textcolor{keywordtype}{char}*\textcolor{keyword}{>}(ptrToNativeString.ToPointer());}
\DoxyCodeLine{00021\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ (\textcolor{keywordtype}{char}\ *)nativeString;}
\DoxyCodeLine{00022\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00023\ \ \ \ \ \};}
\DoxyCodeLine{00024\ }
\DoxyCodeLine{00025\ \ \ \ \ \textcolor{keyword}{public\ enum\ class}\ \mbox{\hyperlink{a00633_a65e7fb45cb13ff66df21ad975defd2fe}{MeasurmentUnit}}}
\DoxyCodeLine{00026\ \ \ \ \ \{}
\DoxyCodeLine{00027\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a00633_a65e7fb45cb13ff66df21ad975defd2fea3be6521a73bcafce5b38459ec548bd11}{Millimeters}}\ =\ 0,}
\DoxyCodeLine{00028\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a00633_a65e7fb45cb13ff66df21ad975defd2fead73325cdb1cb4f9a1ed11bdab879321d}{Inches}}\ =\ 1}
\DoxyCodeLine{00029\ \ \ \ \ \};}
\DoxyCodeLine{00030\ \}}
\DoxyCodeLine{00031\ }

\end{DoxyCode}
