\doxysection{Utility Class Reference}
\hypertarget{a00874}{}\label{a00874}\index{Utility@{Utility}}


Common utility class.  




{\ttfamily \#include $<$Utility.\+h$>$}

\doxysubsubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static double \mbox{\hyperlink{a00874_a611463632ef40fc66973d73439146849}{To\+Inches}} (double metric\+Milimeters)
\begin{DoxyCompactList}\small\item\em Converts milimeters to inches. \end{DoxyCompactList}\item 
static double \mbox{\hyperlink{a00874_aaa32549da86b50c7b3b55fc00bae7aba}{To\+Milimeters}} (double imperial\+Inches)
\begin{DoxyCompactList}\small\item\em Converts inches to milimeters. \end{DoxyCompactList}\item 
static int16\+\_\+t \mbox{\hyperlink{a00874_ab1f1e6ff1ae288a524aee620c4730021}{be16\+\_\+to\+\_\+cpu\+\_\+signed}} (string recv\+Buffer)
\begin{DoxyCompactList}\small\item\em Computes a string to 16bit int. \end{DoxyCompactList}\item 
static int16\+\_\+t \mbox{\hyperlink{a00874_a69a428e4bde4fd5cff77225c2ad137c3}{be16\+\_\+to\+\_\+cpu\+\_\+signed}} (char recv\+Char)
\begin{DoxyCompactList}\small\item\em Computes a char to 16bit int. \end{DoxyCompactList}\item 
static int16\+\_\+t \mbox{\hyperlink{a00874_a9dbc2d84b8194c25ebd643d059238634}{be16\+\_\+to\+\_\+cpu\+\_\+signed}} (char high, char low)
\begin{DoxyCompactList}\small\item\em Computes a char combinaison to 16bit int. \end{DoxyCompactList}\item 
static uint16\+\_\+t \mbox{\hyperlink{a00874_a592761ad138c0edc0eb16013f6950a8a}{be16\+\_\+to\+\_\+cpu\+\_\+unsigned}} (string recv\+Buffer)
\begin{DoxyCompactList}\small\item\em Computes a string to unsigned 16bit int. \end{DoxyCompactList}\item 
static uint16\+\_\+t \mbox{\hyperlink{a00874_a85a03163eed3599f0d7a4d218c92c5d5}{be16\+\_\+to\+\_\+cpu\+\_\+unsigned}} (char recv\+Char)
\begin{DoxyCompactList}\small\item\em Computes a char to unsigned 16bit int. \end{DoxyCompactList}\item 
static uint16\+\_\+t \mbox{\hyperlink{a00874_a0561bfcd7b96c7ef119dcc07bf21b9bf}{be16\+\_\+to\+\_\+cpu\+\_\+unsigned}} (char high, char low)
\begin{DoxyCompactList}\small\item\em Computes a char combinaison to unsigned 16bit int. \end{DoxyCompactList}\item 
static string \mbox{\hyperlink{a00874_a3534b5a3ccae917a45398964ea8aeffb}{Replace\+All}} (string str, const string \&from, const string \&to)
\begin{DoxyCompactList}\small\item\em Replaces all \textquotesingle{}from\textquotesingle{} char to \textquotesingle{}to\textquotesingle{} chars in a string. \end{DoxyCompactList}\item 
static vector$<$ string $>$ \mbox{\hyperlink{a00874_afc52a1825651b792e1e81dba75e36bfe}{Split}} (string to\+Split, string delimiter)
\begin{DoxyCompactList}\small\item\em Split a string base in a delimitor int a strings vector. \end{DoxyCompactList}\item 
static string \mbox{\hyperlink{a00874_a2a2cb0e91a6161ef39c9be1f46220b6e}{Convert\+To\+Hex\+Representation8}} (int8\+\_\+t to\+Convert)
\begin{DoxyCompactList}\small\item\em Convert a 8bit integer to a hexadecimal string representaiton. \end{DoxyCompactList}\item 
static string \mbox{\hyperlink{a00874_a309923f2d2fe6cb401077a584061e751}{Convert\+To\+Hex\+Representation16}} (int16\+\_\+t to\+Convert)
\begin{DoxyCompactList}\small\item\em Convert a 16bit integer to a hexadecimal string representaiton. \end{DoxyCompactList}\item 
static string \mbox{\hyperlink{a00874_a4f836d2efd684cb6864e78a20480fef0}{Convert\+To\+Hex\+Representation32}} (int32\+\_\+t to\+Convert)
\begin{DoxyCompactList}\small\item\em Convert a 32bit integer to a hexadecimal string representaiton. \end{DoxyCompactList}\item 
static string \mbox{\hyperlink{a00874_a69ab225d2c52b35a2fe26ea4705fbc96}{Convert\+To\+Hex\+Representation64}} (int64\+\_\+t to\+Convert)
\begin{DoxyCompactList}\small\item\em Convert a 64bit integer to a hexadecimal string representaiton. \end{DoxyCompactList}\item 
static int8\+\_\+t \mbox{\hyperlink{a00874_ac5d049d99ba9beffcdb3f8b12451307d}{Convert\+Hex\+To8\+Bit}} (char \texorpdfstring{$\ast$}{*}to\+Convert)
\begin{DoxyCompactList}\small\item\em Convert a 1 pos char array to 8bit integer. \end{DoxyCompactList}\item 
static int16\+\_\+t \mbox{\hyperlink{a00874_ad6a8c60badd1ec38c0472ae8557e96e5}{Convert\+Hex\+To16\+Bit}} (char \texorpdfstring{$\ast$}{*}to\+Convert)
\begin{DoxyCompactList}\small\item\em Convert a 2 pos char array to 16bit integer. \end{DoxyCompactList}\item 
static int32\+\_\+t \mbox{\hyperlink{a00874_a922d8fff800c4ccf8c3e7b18d60598ac}{Convert\+Hex\+To32\+Bit}} (char \texorpdfstring{$\ast$}{*}to\+Convert)
\begin{DoxyCompactList}\small\item\em Convert a 4 pos char array to 32bit integer. \end{DoxyCompactList}\item 
static int64\+\_\+t \mbox{\hyperlink{a00874_aa5c57d5210ae53fd4a4e63e6beca3833}{Convert\+Hex\+To64\+Bit}} (char \texorpdfstring{$\ast$}{*}to\+Convert)
\begin{DoxyCompactList}\small\item\em Convert a 8 pos char array to 64bit integer. \end{DoxyCompactList}\item 
static uint8\+\_\+t \mbox{\hyperlink{a00874_ad5a0c42bbf07f9fd4d05566b41a71b7a}{Convert\+Hex\+To\+Unsigned8\+Bit}} (char \texorpdfstring{$\ast$}{*}to\+Convert)
\begin{DoxyCompactList}\small\item\em Convert a 1 pos char array to 8bit integer. \end{DoxyCompactList}\item 
static uint16\+\_\+t \mbox{\hyperlink{a00874_a63f73012b177680bcb9f324cd5b68da7}{Convert\+Hex\+To\+Unsigned16\+Bit}} (char \texorpdfstring{$\ast$}{*}to\+Convert)
\begin{DoxyCompactList}\small\item\em Convert a 2 pos char array to 16bit unsigned integer. \end{DoxyCompactList}\item 
static uint32\+\_\+t \mbox{\hyperlink{a00874_aa9a10b47e752259fc717516cca0318c6}{Convert\+Hex\+To\+Unsigned32\+Bit}} (char \texorpdfstring{$\ast$}{*}to\+Convert)
\begin{DoxyCompactList}\small\item\em Convert a 4 pos char array to 32bit unsigned integer. \end{DoxyCompactList}\item 
static uint64\+\_\+t \mbox{\hyperlink{a00874_a69330f041f352347f3f34c0dac2fddaf}{Convert\+Hex\+To\+Unsigned64\+Bit}} (char \texorpdfstring{$\ast$}{*}to\+Convert)
\begin{DoxyCompactList}\small\item\em Convert a 8 pos char array to 64bit unsigned integer. \end{DoxyCompactList}\item 
static string \mbox{\hyperlink{a00874_a15540fdba0e29b04c2b84c199f6daecb}{Extract\+Ip\+Model}} (const char \texorpdfstring{$\ast$}{*}to\+Format)
\begin{DoxyCompactList}\small\item\em From 4 chars pointer, rebuild an understable ip v4 adress/gateway/mask. \end{DoxyCompactList}\item 
static string \mbox{\hyperlink{a00874_a88b83e51be2aa757e65979726df3957d}{Extract\+Mac\+Model}} (const char \texorpdfstring{$\ast$}{*}to\+Format)
\begin{DoxyCompactList}\small\item\em From 6 chars pointer, rebuild an understable mac adress. \end{DoxyCompactList}\item 
static string \mbox{\hyperlink{a00874_a8a9968076f96af353fe5f7767df0e493}{Remove\+Trailing\+Zeros}} (std\+::string to\+Clean)
\begin{DoxyCompactList}\small\item\em Trim a string to leave 1 decimal char removing extra zeros. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Common utility class. 

\doxysubsection{Member Function Documentation}
\Hypertarget{a00874_a9dbc2d84b8194c25ebd643d059238634}\index{Utility@{Utility}!be16\_to\_cpu\_signed@{be16\_to\_cpu\_signed}}
\index{be16\_to\_cpu\_signed@{be16\_to\_cpu\_signed}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{be16\_to\_cpu\_signed()}{be16\_to\_cpu\_signed()}\hspace{0.1cm}{\footnotesize\ttfamily [1/3]}}
{\footnotesize\ttfamily \label{a00874_a9dbc2d84b8194c25ebd643d059238634} 
int16\+\_\+t Utility\+::be16\+\_\+to\+\_\+cpu\+\_\+signed (\begin{DoxyParamCaption}\item[{char}]{high}{, }\item[{char}]{low}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Computes a char combinaison to 16bit int. 


\begin{DoxyParams}{Parameters}
{\em high} & The high bytes of the int\\
\hline
{\em low} & The low bytes of the int\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a 16bit int structure
\end{DoxyReturn}



\begin{DoxyParams}{Parameters}
{\em high} & The high bytes of the int\\
\hline
{\em low} & The low bytes of the int\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
an 16bit int structure
\end{DoxyReturn}
\Hypertarget{a00874_a69a428e4bde4fd5cff77225c2ad137c3}\index{Utility@{Utility}!be16\_to\_cpu\_signed@{be16\_to\_cpu\_signed}}
\index{be16\_to\_cpu\_signed@{be16\_to\_cpu\_signed}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{be16\_to\_cpu\_signed()}{be16\_to\_cpu\_signed()}\hspace{0.1cm}{\footnotesize\ttfamily [2/3]}}
{\footnotesize\ttfamily \label{a00874_a69a428e4bde4fd5cff77225c2ad137c3} 
int16\+\_\+t Utility\+::be16\+\_\+to\+\_\+cpu\+\_\+signed (\begin{DoxyParamCaption}\item[{char}]{recv\+Char}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Computes a char to 16bit int. 


\begin{DoxyParams}{Parameters}
{\em recv\+Char} & The char to be converted\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a 16bit int structure
\end{DoxyReturn}
\Hypertarget{a00874_ab1f1e6ff1ae288a524aee620c4730021}\index{Utility@{Utility}!be16\_to\_cpu\_signed@{be16\_to\_cpu\_signed}}
\index{be16\_to\_cpu\_signed@{be16\_to\_cpu\_signed}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{be16\_to\_cpu\_signed()}{be16\_to\_cpu\_signed()}\hspace{0.1cm}{\footnotesize\ttfamily [3/3]}}
{\footnotesize\ttfamily \label{a00874_ab1f1e6ff1ae288a524aee620c4730021} 
int16\+\_\+t Utility\+::be16\+\_\+to\+\_\+cpu\+\_\+signed (\begin{DoxyParamCaption}\item[{string}]{recv\+Buffer}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Computes a string to 16bit int. 


\begin{DoxyParams}{Parameters}
{\em recv\+Buffer} & The buffer to converted\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a 16bit int structure
\end{DoxyReturn}
\Hypertarget{a00874_a0561bfcd7b96c7ef119dcc07bf21b9bf}\index{Utility@{Utility}!be16\_to\_cpu\_unsigned@{be16\_to\_cpu\_unsigned}}
\index{be16\_to\_cpu\_unsigned@{be16\_to\_cpu\_unsigned}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{be16\_to\_cpu\_unsigned()}{be16\_to\_cpu\_unsigned()}\hspace{0.1cm}{\footnotesize\ttfamily [1/3]}}
{\footnotesize\ttfamily \label{a00874_a0561bfcd7b96c7ef119dcc07bf21b9bf} 
uint16\+\_\+t Utility\+::be16\+\_\+to\+\_\+cpu\+\_\+unsigned (\begin{DoxyParamCaption}\item[{char}]{high}{, }\item[{char}]{low}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Computes a char combinaison to unsigned 16bit int. 


\begin{DoxyParams}{Parameters}
{\em high} & The high bytes of the int\\
\hline
{\em low} & The low bytes of the int\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
an unsigned 16bit int structure
\end{DoxyReturn}



\begin{DoxyParams}{Parameters}
{\em high} & The high bytes of the int\\
\hline
{\em low} & The low bytes of the int\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a unsigned 16bit int structure
\end{DoxyReturn}
\Hypertarget{a00874_a85a03163eed3599f0d7a4d218c92c5d5}\index{Utility@{Utility}!be16\_to\_cpu\_unsigned@{be16\_to\_cpu\_unsigned}}
\index{be16\_to\_cpu\_unsigned@{be16\_to\_cpu\_unsigned}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{be16\_to\_cpu\_unsigned()}{be16\_to\_cpu\_unsigned()}\hspace{0.1cm}{\footnotesize\ttfamily [2/3]}}
{\footnotesize\ttfamily \label{a00874_a85a03163eed3599f0d7a4d218c92c5d5} 
uint16\+\_\+t Utility\+::be16\+\_\+to\+\_\+cpu\+\_\+unsigned (\begin{DoxyParamCaption}\item[{char}]{recv\+Char}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Computes a char to unsigned 16bit int. 


\begin{DoxyParams}{Parameters}
{\em recv\+Char} & The char to be converted\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
an unsigned 16bit int structure
\end{DoxyReturn}
\Hypertarget{a00874_a592761ad138c0edc0eb16013f6950a8a}\index{Utility@{Utility}!be16\_to\_cpu\_unsigned@{be16\_to\_cpu\_unsigned}}
\index{be16\_to\_cpu\_unsigned@{be16\_to\_cpu\_unsigned}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{be16\_to\_cpu\_unsigned()}{be16\_to\_cpu\_unsigned()}\hspace{0.1cm}{\footnotesize\ttfamily [3/3]}}
{\footnotesize\ttfamily \label{a00874_a592761ad138c0edc0eb16013f6950a8a} 
uint16\+\_\+t Utility\+::be16\+\_\+to\+\_\+cpu\+\_\+unsigned (\begin{DoxyParamCaption}\item[{string}]{recv\+Buffer}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Computes a string to unsigned 16bit int. 


\begin{DoxyParams}{Parameters}
{\em recv\+Buffer} & The buffer to converted\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
an 16bit unsigned int structure
\end{DoxyReturn}



\begin{DoxyParams}{Parameters}
{\em recv\+Buffer} & The buffer to converted\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
an unsigned 16bit int structure
\end{DoxyReturn}
\Hypertarget{a00874_ad6a8c60badd1ec38c0472ae8557e96e5}\index{Utility@{Utility}!ConvertHexTo16Bit@{ConvertHexTo16Bit}}
\index{ConvertHexTo16Bit@{ConvertHexTo16Bit}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{ConvertHexTo16Bit()}{ConvertHexTo16Bit()}}
{\footnotesize\ttfamily \label{a00874_ad6a8c60badd1ec38c0472ae8557e96e5} 
int16\+\_\+t Utility\+::\+Convert\+Hex\+To16\+Bit (\begin{DoxyParamCaption}\item[{char \texorpdfstring{$\ast$}{*}}]{to\+Convert}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Convert a 2 pos char array to 16bit integer. 


\begin{DoxyParams}{Parameters}
{\em to\+Convert} & the char array to convert\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The 16 bit integer
\end{DoxyReturn}
\Hypertarget{a00874_a922d8fff800c4ccf8c3e7b18d60598ac}\index{Utility@{Utility}!ConvertHexTo32Bit@{ConvertHexTo32Bit}}
\index{ConvertHexTo32Bit@{ConvertHexTo32Bit}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{ConvertHexTo32Bit()}{ConvertHexTo32Bit()}}
{\footnotesize\ttfamily \label{a00874_a922d8fff800c4ccf8c3e7b18d60598ac} 
int32\+\_\+t Utility\+::\+Convert\+Hex\+To32\+Bit (\begin{DoxyParamCaption}\item[{char \texorpdfstring{$\ast$}{*}}]{to\+Convert}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Convert a 4 pos char array to 32bit integer. 


\begin{DoxyParams}{Parameters}
{\em to\+Convert} & the char array to convert\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The 32 bit integer
\end{DoxyReturn}
\Hypertarget{a00874_aa5c57d5210ae53fd4a4e63e6beca3833}\index{Utility@{Utility}!ConvertHexTo64Bit@{ConvertHexTo64Bit}}
\index{ConvertHexTo64Bit@{ConvertHexTo64Bit}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{ConvertHexTo64Bit()}{ConvertHexTo64Bit()}}
{\footnotesize\ttfamily \label{a00874_aa5c57d5210ae53fd4a4e63e6beca3833} 
int64\+\_\+t Utility\+::\+Convert\+Hex\+To64\+Bit (\begin{DoxyParamCaption}\item[{char \texorpdfstring{$\ast$}{*}}]{to\+Convert}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Convert a 8 pos char array to 64bit integer. 


\begin{DoxyParams}{Parameters}
{\em to\+Convert} & the char array to convert\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The 64 bit integer
\end{DoxyReturn}
\Hypertarget{a00874_ac5d049d99ba9beffcdb3f8b12451307d}\index{Utility@{Utility}!ConvertHexTo8Bit@{ConvertHexTo8Bit}}
\index{ConvertHexTo8Bit@{ConvertHexTo8Bit}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{ConvertHexTo8Bit()}{ConvertHexTo8Bit()}}
{\footnotesize\ttfamily \label{a00874_ac5d049d99ba9beffcdb3f8b12451307d} 
int8\+\_\+t Utility\+::\+Convert\+Hex\+To8\+Bit (\begin{DoxyParamCaption}\item[{char \texorpdfstring{$\ast$}{*}}]{to\+Convert}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Convert a 1 pos char array to 8bit integer. 


\begin{DoxyParams}{Parameters}
{\em to\+Convert} & the char array to convert\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The 8 bit integer
\end{DoxyReturn}
\Hypertarget{a00874_a63f73012b177680bcb9f324cd5b68da7}\index{Utility@{Utility}!ConvertHexToUnsigned16Bit@{ConvertHexToUnsigned16Bit}}
\index{ConvertHexToUnsigned16Bit@{ConvertHexToUnsigned16Bit}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{ConvertHexToUnsigned16Bit()}{ConvertHexToUnsigned16Bit()}}
{\footnotesize\ttfamily \label{a00874_a63f73012b177680bcb9f324cd5b68da7} 
uint16\+\_\+t Utility\+::\+Convert\+Hex\+To\+Unsigned16\+Bit (\begin{DoxyParamCaption}\item[{char \texorpdfstring{$\ast$}{*}}]{to\+Convert}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Convert a 2 pos char array to 16bit unsigned integer. 


\begin{DoxyParams}{Parameters}
{\em to\+Convert} & the char array to convert\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The 16 bit unsigned integer
\end{DoxyReturn}
\Hypertarget{a00874_aa9a10b47e752259fc717516cca0318c6}\index{Utility@{Utility}!ConvertHexToUnsigned32Bit@{ConvertHexToUnsigned32Bit}}
\index{ConvertHexToUnsigned32Bit@{ConvertHexToUnsigned32Bit}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{ConvertHexToUnsigned32Bit()}{ConvertHexToUnsigned32Bit()}}
{\footnotesize\ttfamily \label{a00874_aa9a10b47e752259fc717516cca0318c6} 
uint32\+\_\+t Utility\+::\+Convert\+Hex\+To\+Unsigned32\+Bit (\begin{DoxyParamCaption}\item[{char \texorpdfstring{$\ast$}{*}}]{to\+Convert}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Convert a 4 pos char array to 32bit unsigned integer. 


\begin{DoxyParams}{Parameters}
{\em to\+Convert} & the char array to convert\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The 32 bit unsigned integer
\end{DoxyReturn}
\Hypertarget{a00874_a69330f041f352347f3f34c0dac2fddaf}\index{Utility@{Utility}!ConvertHexToUnsigned64Bit@{ConvertHexToUnsigned64Bit}}
\index{ConvertHexToUnsigned64Bit@{ConvertHexToUnsigned64Bit}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{ConvertHexToUnsigned64Bit()}{ConvertHexToUnsigned64Bit()}}
{\footnotesize\ttfamily \label{a00874_a69330f041f352347f3f34c0dac2fddaf} 
uint64\+\_\+t Utility\+::\+Convert\+Hex\+To\+Unsigned64\+Bit (\begin{DoxyParamCaption}\item[{char \texorpdfstring{$\ast$}{*}}]{to\+Convert}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Convert a 8 pos char array to 64bit unsigned integer. 


\begin{DoxyParams}{Parameters}
{\em to\+Convert} & the char array to convert\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The 64 bit unsigned integer
\end{DoxyReturn}
\Hypertarget{a00874_ad5a0c42bbf07f9fd4d05566b41a71b7a}\index{Utility@{Utility}!ConvertHexToUnsigned8Bit@{ConvertHexToUnsigned8Bit}}
\index{ConvertHexToUnsigned8Bit@{ConvertHexToUnsigned8Bit}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{ConvertHexToUnsigned8Bit()}{ConvertHexToUnsigned8Bit()}}
{\footnotesize\ttfamily \label{a00874_ad5a0c42bbf07f9fd4d05566b41a71b7a} 
uint8\+\_\+t Utility\+::\+Convert\+Hex\+To\+Unsigned8\+Bit (\begin{DoxyParamCaption}\item[{char \texorpdfstring{$\ast$}{*}}]{to\+Convert}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Convert a 1 pos char array to 8bit integer. 


\begin{DoxyParams}{Parameters}
{\em to\+Convert} & the char array to convert\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The 8 bit integer
\end{DoxyReturn}
\Hypertarget{a00874_a309923f2d2fe6cb401077a584061e751}\index{Utility@{Utility}!ConvertToHexRepresentation16@{ConvertToHexRepresentation16}}
\index{ConvertToHexRepresentation16@{ConvertToHexRepresentation16}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{ConvertToHexRepresentation16()}{ConvertToHexRepresentation16()}}
{\footnotesize\ttfamily \label{a00874_a309923f2d2fe6cb401077a584061e751} 
string Utility\+::\+Convert\+To\+Hex\+Representation16 (\begin{DoxyParamCaption}\item[{int16\+\_\+t}]{to\+Convert}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Convert a 16bit integer to a hexadecimal string representaiton. 


\begin{DoxyParams}{Parameters}
{\em to\+Convert} & the number to convert\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A string representing the hew expression of the converted number
\end{DoxyReturn}
\Hypertarget{a00874_a4f836d2efd684cb6864e78a20480fef0}\index{Utility@{Utility}!ConvertToHexRepresentation32@{ConvertToHexRepresentation32}}
\index{ConvertToHexRepresentation32@{ConvertToHexRepresentation32}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{ConvertToHexRepresentation32()}{ConvertToHexRepresentation32()}}
{\footnotesize\ttfamily \label{a00874_a4f836d2efd684cb6864e78a20480fef0} 
string Utility\+::\+Convert\+To\+Hex\+Representation32 (\begin{DoxyParamCaption}\item[{int32\+\_\+t}]{to\+Convert}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Convert a 32bit integer to a hexadecimal string representaiton. 


\begin{DoxyParams}{Parameters}
{\em to\+Convert} & the number to convert\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A string representing the hew expression of the converted number
\end{DoxyReturn}
\Hypertarget{a00874_a69ab225d2c52b35a2fe26ea4705fbc96}\index{Utility@{Utility}!ConvertToHexRepresentation64@{ConvertToHexRepresentation64}}
\index{ConvertToHexRepresentation64@{ConvertToHexRepresentation64}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{ConvertToHexRepresentation64()}{ConvertToHexRepresentation64()}}
{\footnotesize\ttfamily \label{a00874_a69ab225d2c52b35a2fe26ea4705fbc96} 
string Utility\+::\+Convert\+To\+Hex\+Representation64 (\begin{DoxyParamCaption}\item[{int64\+\_\+t}]{to\+Convert}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Convert a 64bit integer to a hexadecimal string representaiton. 


\begin{DoxyParams}{Parameters}
{\em to\+Convert} & the number to convert\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A string representing the hew expression of the converted number
\end{DoxyReturn}
\Hypertarget{a00874_a2a2cb0e91a6161ef39c9be1f46220b6e}\index{Utility@{Utility}!ConvertToHexRepresentation8@{ConvertToHexRepresentation8}}
\index{ConvertToHexRepresentation8@{ConvertToHexRepresentation8}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{ConvertToHexRepresentation8()}{ConvertToHexRepresentation8()}}
{\footnotesize\ttfamily \label{a00874_a2a2cb0e91a6161ef39c9be1f46220b6e} 
string Utility\+::\+Convert\+To\+Hex\+Representation8 (\begin{DoxyParamCaption}\item[{int8\+\_\+t}]{to\+Convert}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Convert a 8bit integer to a hexadecimal string representaiton. 


\begin{DoxyParams}{Parameters}
{\em to\+Convert} & the number to convert\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A string representing the hew expression of the converted number
\end{DoxyReturn}
\Hypertarget{a00874_a15540fdba0e29b04c2b84c199f6daecb}\index{Utility@{Utility}!ExtractIpModel@{ExtractIpModel}}
\index{ExtractIpModel@{ExtractIpModel}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{ExtractIpModel()}{ExtractIpModel()}}
{\footnotesize\ttfamily \label{a00874_a15540fdba0e29b04c2b84c199f6daecb} 
string Utility\+::\+Extract\+Ip\+Model (\begin{DoxyParamCaption}\item[{const char \texorpdfstring{$\ast$}{*}}]{to\+Format}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



From 4 chars pointer, rebuild an understable ip v4 adress/gateway/mask. 


\begin{DoxyParams}{Parameters}
{\em to\+Fromat} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\end{DoxyReturn}
\Hypertarget{a00874_a88b83e51be2aa757e65979726df3957d}\index{Utility@{Utility}!ExtractMacModel@{ExtractMacModel}}
\index{ExtractMacModel@{ExtractMacModel}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{ExtractMacModel()}{ExtractMacModel()}}
{\footnotesize\ttfamily \label{a00874_a88b83e51be2aa757e65979726df3957d} 
string Utility\+::\+Extract\+Mac\+Model (\begin{DoxyParamCaption}\item[{const char \texorpdfstring{$\ast$}{*}}]{to\+Format}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



From 6 chars pointer, rebuild an understable mac adress. 


\begin{DoxyParams}{Parameters}
{\em to\+Fromat} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\end{DoxyReturn}
\Hypertarget{a00874_a8a9968076f96af353fe5f7767df0e493}\index{Utility@{Utility}!RemoveTrailingZeros@{RemoveTrailingZeros}}
\index{RemoveTrailingZeros@{RemoveTrailingZeros}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{RemoveTrailingZeros()}{RemoveTrailingZeros()}}
{\footnotesize\ttfamily \label{a00874_a8a9968076f96af353fe5f7767df0e493} 
string Utility\+::\+Remove\+Trailing\+Zeros (\begin{DoxyParamCaption}\item[{std\+::string}]{to\+Clean}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Trim a string to leave 1 decimal char removing extra zeros. 


\begin{DoxyParams}{Parameters}
{\em to\+Clean} & The string to be trimmed\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The trimmed string
\end{DoxyReturn}
\Hypertarget{a00874_a3534b5a3ccae917a45398964ea8aeffb}\index{Utility@{Utility}!ReplaceAll@{ReplaceAll}}
\index{ReplaceAll@{ReplaceAll}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{ReplaceAll()}{ReplaceAll()}}
{\footnotesize\ttfamily \label{a00874_a3534b5a3ccae917a45398964ea8aeffb} 
string Utility\+::\+Replace\+All (\begin{DoxyParamCaption}\item[{string}]{str}{, }\item[{const string \&}]{from}{, }\item[{const string \&}]{to}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Replaces all \textquotesingle{}from\textquotesingle{} char to \textquotesingle{}to\textquotesingle{} chars in a string. 


\begin{DoxyParams}{Parameters}
{\em str} & The source string\\
\hline
{\em from} & The string to be replaced\\
\hline
{\em to} & The replacement string\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A copy of the source string with replacement applied
\end{DoxyReturn}
\Hypertarget{a00874_afc52a1825651b792e1e81dba75e36bfe}\index{Utility@{Utility}!Split@{Split}}
\index{Split@{Split}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{Split()}{Split()}}
{\footnotesize\ttfamily \label{a00874_afc52a1825651b792e1e81dba75e36bfe} 
vector$<$ string $>$ Utility\+::\+Split (\begin{DoxyParamCaption}\item[{string}]{to\+Split}{, }\item[{string}]{delimiter}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Split a string base in a delimitor int a strings vector. 


\begin{DoxyParams}{Parameters}
{\em to\+Split} & The source string\\
\hline
{\em delimiter} & The delimiter on which the source string has to be splitted\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A vecotr of the splitted string
\end{DoxyReturn}
\Hypertarget{a00874_a611463632ef40fc66973d73439146849}\index{Utility@{Utility}!ToInches@{ToInches}}
\index{ToInches@{ToInches}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{ToInches()}{ToInches()}}
{\footnotesize\ttfamily \label{a00874_a611463632ef40fc66973d73439146849} 
double Utility\+::\+To\+Inches (\begin{DoxyParamCaption}\item[{double}]{metric\+Milimeters}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Converts milimeters to inches. 


\begin{DoxyParams}{Parameters}
{\em metric\+Milimeters} & The value in milimeters\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A double representing the conversion to inches
\end{DoxyReturn}
\Hypertarget{a00874_aaa32549da86b50c7b3b55fc00bae7aba}\index{Utility@{Utility}!ToMilimeters@{ToMilimeters}}
\index{ToMilimeters@{ToMilimeters}!Utility@{Utility}}
\doxysubsubsection{\texorpdfstring{ToMilimeters()}{ToMilimeters()}}
{\footnotesize\ttfamily \label{a00874_aaa32549da86b50c7b3b55fc00bae7aba} 
double Utility\+::\+To\+Milimeters (\begin{DoxyParamCaption}\item[{double}]{imperial\+Inches}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Converts inches to milimeters. 


\begin{DoxyParams}{Parameters}
{\em imperial\+Inches} & The value in milimeters\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A double representing the conversion to milimeters
\end{DoxyReturn}


The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Utility.\+h\item 
Utility.\+cpp\end{DoxyCompactItemize}
