\doxysection{WNetwork\+Information.\+h}
\hypertarget{a00269_source}{}\label{a00269_source}\index{WNetworkInformation.h@{WNetworkInformation.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#include\ <RawDataSensor.h>}}
\DoxyCodeLine{00003\ }
\DoxyCodeLine{00004\ \textcolor{comment}{//\#include\ "{}WUtilities.h"{}}}
\DoxyCodeLine{00005\ }
\DoxyCodeLine{00006\ \textcolor{keyword}{using\ namespace\ }System;}
\DoxyCodeLine{00007\ \textcolor{keyword}{using\ namespace\ }std;}
\DoxyCodeLine{00008\ \textcolor{keyword}{using\ namespace\ }\mbox{\hyperlink{a00633}{WUtils}};}
\DoxyCodeLine{00009\ }
\DoxyCodeLine{00013\ \textcolor{keyword}{public\ ref\ class}\ \mbox{\hyperlink{a00808}{WNetworkInformation}}}
\DoxyCodeLine{00014\ \{}
\DoxyCodeLine{00015\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00016\ \ \ \ \ \mbox{\hyperlink{a00808_a14a1f034f2799459bd065085b3a08fe2}{WNetworkInformation}}()\ \{}
\DoxyCodeLine{00017\ \ \ \ \ \ \ \ \ \_info\ =\ \textcolor{keyword}{new}\ \mbox{\hyperlink{a00780}{NetworkInformation}}();}
\DoxyCodeLine{00018\ \ \ \ \ \}}
\DoxyCodeLine{00019\ }
\DoxyCodeLine{00020\ \ \ \ \ \mbox{\hyperlink{a00808_ae6b8cdbc000007e6263a0430200ef65a}{WNetworkInformation}}(\mbox{\hyperlink{a00808}{WNetworkInformation}}\string^\ toCopy)\ \{}
\DoxyCodeLine{00021\ \ \ \ \ \ \ \ \ \_info\ =\ \textcolor{keyword}{new}\ \mbox{\hyperlink{a00780}{NetworkInformation}}();}
\DoxyCodeLine{00022\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a00808_a454bfe9d0e3ac11764c3782374384bed}{IpAddress}}\ =\ toCopy-\/>\mbox{\hyperlink{a00808_a454bfe9d0e3ac11764c3782374384bed}{IpAddress}};}
\DoxyCodeLine{00023\ \ \ \ \ \ \ \ \ IpPort\ =\ toCopy-\/>IpPort;}
\DoxyCodeLine{00024\ \ \ \ \ \ \ \ \ Gateway\ =\ toCopy-\/>Gateway;}
\DoxyCodeLine{00025\ \ \ \ \ \ \ \ \ SubnetMask\ =\ toCopy-\/>SubnetMask;}
\DoxyCodeLine{00026\ \ \ \ \ \ \ \ \ DhcpMode\ =\ toCopy-\/>DhcpMode;}
\DoxyCodeLine{00027\ \ \ \ \ \}}
\DoxyCodeLine{00028\ \ \ \ \ }
\DoxyCodeLine{00029\ }
\DoxyCodeLine{00030\ \ \ \ \ \mbox{\hyperlink{a00808_aee7ac7653c82581f03f6530931d8cacc}{\string~WNetworkInformation}}()\ \{}
\DoxyCodeLine{00031\ \ \ \ \ \ \ \ \ \textcolor{keyword}{delete}(\_info);}
\DoxyCodeLine{00032\ \ \ \ \ \}}
\DoxyCodeLine{00033\ }
\DoxyCodeLine{00034\ \ \ \ \ \textcolor{keyword}{property}\ String\string^\ \mbox{\hyperlink{a00808_a454bfe9d0e3ac11764c3782374384bed}{IpAddress}}\ \{}
\DoxyCodeLine{00035\ \ \ \ \ \ \ \ \ String\string^\ get()\ \{}
\DoxyCodeLine{00036\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ gcnew\ String(\_info-\/>GetIpAddress().c\_str());}
\DoxyCodeLine{00037\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00038\ }
\DoxyCodeLine{00039\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ set(String\string^\ x)\ \{}
\DoxyCodeLine{00040\ \ \ \ \ \ \ \ \ \ \ \ \ \_info-\/>SetIpAddress(\textcolor{keywordtype}{string}(\mbox{\hyperlink{a01044_abd61f8446cca891042dd652174c59385}{WConverter::ConvertToNativeString}}(x)));}
\DoxyCodeLine{00041\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00042\ \ \ \ \ \}}
\DoxyCodeLine{00043\ }
\DoxyCodeLine{00044\ \ \ \ \ \textcolor{keyword}{property}\ \textcolor{keywordtype}{int}\ IpPort\ \{}
\DoxyCodeLine{00045\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{int}\ get()\ \{}
\DoxyCodeLine{00046\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \_info-\/>GetIpPort();}
\DoxyCodeLine{00047\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00048\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ set(\textcolor{keywordtype}{int}\ x)\ \{}
\DoxyCodeLine{00049\ \ \ \ \ \ \ \ \ \ \ \ \ \_info-\/>SetIpPort(x);}
\DoxyCodeLine{00050\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00051\ \ \ \ \ \}}
\DoxyCodeLine{00052\ }
\DoxyCodeLine{00053\ \ \ \ \ \textcolor{keyword}{property}\ String\string^\ Gateway\ \{}
\DoxyCodeLine{00054\ \ \ \ \ \ \ \ \ String\string^\ get()\ \{}
\DoxyCodeLine{00055\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ gcnew\ String(\_info-\/>GetGateway().c\_str());}
\DoxyCodeLine{00056\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00057\ }
\DoxyCodeLine{00058\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ set(String\string^\ x)\ \{}
\DoxyCodeLine{00059\ \ \ \ \ \ \ \ \ \ \ \ \ \_info-\/>SetGateway(\textcolor{keywordtype}{string}(\mbox{\hyperlink{a01044_abd61f8446cca891042dd652174c59385}{WConverter::ConvertToNativeString}}(x)));}
\DoxyCodeLine{00060\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00061\ \ \ \ \ \}}
\DoxyCodeLine{00062\ }
\DoxyCodeLine{00063\ \ \ \ \ \textcolor{keyword}{property}\ String\string^\ MacAddress\ \{}
\DoxyCodeLine{00064\ \ \ \ \ \ \ \ \ String\string^\ get()\ \{}
\DoxyCodeLine{00065\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ gcnew\ String(\_info-\/>GetMacAddress().c\_str());}
\DoxyCodeLine{00066\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00067\ }
\DoxyCodeLine{00068\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ set(String\string^\ x)\ \{}
\DoxyCodeLine{00069\ \ \ \ \ \ \ \ \ \ \ \ \ \_info-\/>SetMacAddress(\textcolor{keywordtype}{string}(\mbox{\hyperlink{a01044_abd61f8446cca891042dd652174c59385}{WConverter::ConvertToNativeString}}(x)));}
\DoxyCodeLine{00070\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00071\ \ \ \ \ \}}
\DoxyCodeLine{00072\ }
\DoxyCodeLine{00073\ \ \ \ \ \textcolor{keyword}{property}\ String\string^\ SubnetMask\ \{}
\DoxyCodeLine{00074\ \ \ \ \ \ \ \ \ String\string^\ get()\ \{}
\DoxyCodeLine{00075\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ gcnew\ String(\_info-\/>GetSubnetMask().c\_str());}
\DoxyCodeLine{00076\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00077\ }
\DoxyCodeLine{00078\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ set(String\string^\ x)\ \{}
\DoxyCodeLine{00079\ \ \ \ \ \ \ \ \ \ \ \ \ \_info-\/>SetSubnetMask(\textcolor{keywordtype}{string}(\mbox{\hyperlink{a01044_abd61f8446cca891042dd652174c59385}{WConverter::ConvertToNativeString}}(x)));}
\DoxyCodeLine{00080\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00081\ \ \ \ \ \}}
\DoxyCodeLine{00082\ }
\DoxyCodeLine{00083\ \ \ \ \ \textcolor{keyword}{property}\ \textcolor{keywordtype}{bool}\ DhcpMode\ \{}
\DoxyCodeLine{00084\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ get()\ \{}
\DoxyCodeLine{00085\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \_info-\/>GetDhcpMode();}
\DoxyCodeLine{00086\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00087\ }
\DoxyCodeLine{00088\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ set(\textcolor{keywordtype}{bool}\ x)\ \{}
\DoxyCodeLine{00089\ \ \ \ \ \ \ \ \ \ \ \ \ \_info-\/>SetDhcpMode(x);}
\DoxyCodeLine{00090\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00091\ \ \ \ \ \}}
\DoxyCodeLine{00092\ }
\DoxyCodeLine{00093\ \ \ \ \ \textcolor{keyword}{property}\ \mbox{\hyperlink{a00780}{NetworkInformation}}*\ \_\_native\ \{}
\DoxyCodeLine{00094\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a00780}{NetworkInformation}}*\ get()\ \{}
\DoxyCodeLine{00095\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \_info;}
\DoxyCodeLine{00096\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00097\ \ \ \ \ \}}
\DoxyCodeLine{00098\ }
\DoxyCodeLine{00099\ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keywordtype}{bool}\ operator==\ (\mbox{\hyperlink{a00808}{WNetworkInformation}}\string^\ pComp1,\ \mbox{\hyperlink{a00808}{WNetworkInformation}}\string^\ pComp2)\ \{}
\DoxyCodeLine{00100\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (System::Object::ReferenceEquals(pComp1,\ pComp2))}
\DoxyCodeLine{00101\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \textcolor{keyword}{true};}
\DoxyCodeLine{00102\ }
\DoxyCodeLine{00103\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (System::Object::ReferenceEquals(pComp1,\ \textcolor{keyword}{nullptr})\ ||}
\DoxyCodeLine{00104\ \ \ \ \ \ \ \ \ \ \ \ \ System::Object::ReferenceEquals(pComp2,\ \textcolor{keyword}{nullptr}))\ \{}
\DoxyCodeLine{00105\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \textcolor{keyword}{false};}
\DoxyCodeLine{00106\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00107\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ pComp1-\/>\mbox{\hyperlink{a00808_a454bfe9d0e3ac11764c3782374384bed}{IpAddress}}\ ==\ pComp2-\/>\mbox{\hyperlink{a00808_a454bfe9d0e3ac11764c3782374384bed}{IpAddress}}\ \&\&}
\DoxyCodeLine{00108\ \ \ \ \ \ \ \ \ \ \ \ \ pComp1-\/>IpPort\ ==\ pComp2-\/>IpPort\ \&\&}
\DoxyCodeLine{00109\ \ \ \ \ \ \ \ \ \ \ \ \ pComp1-\/>MacAddress\ ==\ pComp2-\/>MacAddress\ \&\&}
\DoxyCodeLine{00110\ \ \ \ \ \ \ \ \ \ \ \ \ pComp1-\/>SubnetMask\ ==\ pComp2-\/>SubnetMask\ \&\&}
\DoxyCodeLine{00111\ \ \ \ \ \ \ \ \ \ \ \ \ pComp1-\/>Gateway\ ==\ pComp2-\/>Gateway\ \&\&}
\DoxyCodeLine{00112\ \ \ \ \ \ \ \ \ \ \ \ \ pComp1-\/>DhcpMode\ ==\ pComp2-\/>DhcpMode;}
\DoxyCodeLine{00113\ \ \ \ \ \}}
\DoxyCodeLine{00114\ }
\DoxyCodeLine{00115\ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keywordtype}{bool}\ operator!=\ (\mbox{\hyperlink{a00808}{WNetworkInformation}}\string^\ pComp1,\ \mbox{\hyperlink{a00808}{WNetworkInformation}}\string^\ pComp2)\ \{}
\DoxyCodeLine{00116\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ !(pComp1\ ==\ pComp2);}
\DoxyCodeLine{00117\ \ \ \ \ \}}
\DoxyCodeLine{00118\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00119\ \ \ \ \ \mbox{\hyperlink{a00780}{NetworkInformation}}*\ \_info;}
\DoxyCodeLine{00120\ \};}
\DoxyCodeLine{00121\ }

\end{DoxyCode}
