\doxysection{WSensor\+Lamps.\+h}
\hypertarget{a00287_source}{}\label{a00287_source}\index{WSensorLamps.h@{WSensorLamps.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#include\ <RawDataSensor.h>}}
\DoxyCodeLine{00003\ }
\DoxyCodeLine{00004\ }
\DoxyCodeLine{00005\ \textcolor{keyword}{public\ enum\ class}\ LedColor\ \{\ Black\ =\ 0,\ Red\ =\ 1,\ Green\ =\ 2,\ Orange\ =\ 3,\ Blue\ =\ 4\ \};}
\DoxyCodeLine{00006\ }
\DoxyCodeLine{00010\ \textcolor{keyword}{public\ ref\ class}\ \mbox{\hyperlink{a00820}{WSensorLamps}}}
\DoxyCodeLine{00011\ \{}
\DoxyCodeLine{00012\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00013\ \ \ \ \ \mbox{\hyperlink{a00820_a0c88e8afeabd96cf894b7d680240fab2}{WSensorLamps}}()\ \{}
\DoxyCodeLine{00014\ \ \ \ \ \ \ \ \ \_lamps\ =\ \textcolor{keyword}{new}\ \mbox{\hyperlink{a00792}{SensorLamps}}();}
\DoxyCodeLine{00015\ \ \ \ \ \}}
\DoxyCodeLine{00016\ \ \ \ \ \mbox{\hyperlink{a00820_afb1864227b1915f9d13409abbd2baf1c}{WSensorLamps}}(\mbox{\hyperlink{a00820}{WSensorLamps}}\string^\ toCopy)\ \{}
\DoxyCodeLine{00017\ \ \ \ \ \ \ \ \ \_lamps\ =\ \textcolor{keyword}{new}\ \mbox{\hyperlink{a00792}{SensorLamps}}();}
\DoxyCodeLine{00018\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a00820_a8c1b5573fecf18ba416b4aaa12f0efa8}{Led1}}\ =\ toCopy-\/>\mbox{\hyperlink{a00820_a8c1b5573fecf18ba416b4aaa12f0efa8}{Led1}};}
\DoxyCodeLine{00019\ \ \ \ \ \ \ \ \ Led2\ =\ toCopy-\/>Led2;}
\DoxyCodeLine{00020\ \ \ \ \ \ \ \ \ Led3\ =\ toCopy-\/>Led3;}
\DoxyCodeLine{00021\ \ \ \ \ \ \ \ \ Led4\ =\ toCopy-\/>Led4;}
\DoxyCodeLine{00022\ \ \ \ \ \}}
\DoxyCodeLine{00023\ \ \ \ \ \mbox{\hyperlink{a00820_aa401b721666ab9e9661f34f576ea8530}{WSensorLamps}}(LedColor\ pLed1,\ LedColor\ pLed2,\ LedColor\ pLed3,\ LedColor\ pLed4)\ \{}
\DoxyCodeLine{00024\ \ \ \ \ \ \ \ \ \_lamps\ =\ \textcolor{keyword}{new}\ \mbox{\hyperlink{a00792}{SensorLamps}}();}
\DoxyCodeLine{00025\ \ \ \ \ \}}
\DoxyCodeLine{00026\ \ \ \ \ \mbox{\hyperlink{a00820_afe99b12320a1de93474292aa62c65aae}{\string~WSensorLamps}}()\ \{}
\DoxyCodeLine{00027\ \ \ \ \ \ \ \ \ \textcolor{keyword}{delete}(\_lamps);}
\DoxyCodeLine{00028\ \ \ \ \ \}}
\DoxyCodeLine{00029\ \ \ \ \ \textcolor{keyword}{property}\ LedColor\ \mbox{\hyperlink{a00820_a8c1b5573fecf18ba416b4aaa12f0efa8}{Led1}}\ \{}
\DoxyCodeLine{00030\ \ \ \ \ \ \ \ \ LedColor\ get()\ \{}
\DoxyCodeLine{00031\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \mbox{\hyperlink{a00820_a73aba9360c1f818a5661349965d7952a}{GetColor}}(\_lamps-\/>GetLed1());}
\DoxyCodeLine{00032\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00033\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ set(LedColor\ x)\ \{}
\DoxyCodeLine{00034\ \ \ \ \ \ \ \ \ \ \ \ \ \_lamps-\/>SetLed1((\textcolor{keywordtype}{int})x);}
\DoxyCodeLine{00035\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00036\ \ \ \ \ \}}
\DoxyCodeLine{00037\ \ \ \ \ \textcolor{keyword}{property}\ LedColor\ Led2\ \{}
\DoxyCodeLine{00038\ \ \ \ \ \ \ \ \ LedColor\ get()\ \{}
\DoxyCodeLine{00039\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \mbox{\hyperlink{a00820_a73aba9360c1f818a5661349965d7952a}{GetColor}}(\_lamps-\/>GetLed2());}
\DoxyCodeLine{00040\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00041\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ set(LedColor\ x)\ \{}
\DoxyCodeLine{00042\ \ \ \ \ \ \ \ \ \ \ \ \ \_lamps-\/>SetLed2((\textcolor{keywordtype}{int})x);}
\DoxyCodeLine{00043\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00044\ \ \ \ \ \}}
\DoxyCodeLine{00045\ \ \ \ \ \textcolor{keyword}{property}\ LedColor\ Led3\ \{}
\DoxyCodeLine{00046\ \ \ \ \ \ \ \ \ LedColor\ get()\ \{}
\DoxyCodeLine{00047\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \mbox{\hyperlink{a00820_a73aba9360c1f818a5661349965d7952a}{GetColor}}(\_lamps-\/>GetLed3());}
\DoxyCodeLine{00048\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00049\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ set(LedColor\ x)\ \{}
\DoxyCodeLine{00050\ \ \ \ \ \ \ \ \ \ \ \ \ \_lamps-\/>SetLed3((\textcolor{keywordtype}{int})x);}
\DoxyCodeLine{00051\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00052\ \ \ \ \ \}}
\DoxyCodeLine{00053\ \ \ \ \ \textcolor{keyword}{property}\ LedColor\ Led4\ \{}
\DoxyCodeLine{00054\ \ \ \ \ \ \ \ \ LedColor\ get()\ \{}
\DoxyCodeLine{00055\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \mbox{\hyperlink{a00820_a73aba9360c1f818a5661349965d7952a}{GetColor}}(\_lamps-\/>GetLed4());}
\DoxyCodeLine{00056\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00057\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ set(LedColor\ x)\ \{}
\DoxyCodeLine{00058\ \ \ \ \ \ \ \ \ \ \ \ \ \_lamps-\/>SetLed4((\textcolor{keywordtype}{int})x);}
\DoxyCodeLine{00059\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00060\ \ \ \ \ \}}
\DoxyCodeLine{00061\ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keywordtype}{bool}\ operator==\ (\mbox{\hyperlink{a00820}{WSensorLamps}}\string^\ pComp1,\ \mbox{\hyperlink{a00820}{WSensorLamps}}\string^\ pComp2)\ \{}
\DoxyCodeLine{00062\ }
\DoxyCodeLine{00063\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (System::Object::ReferenceEquals(pComp1,\ pComp2))}
\DoxyCodeLine{00064\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \textcolor{keyword}{true};}
\DoxyCodeLine{00065\ }
\DoxyCodeLine{00066\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (System::Object::ReferenceEquals(pComp1,\ \textcolor{keyword}{nullptr})\ ||}
\DoxyCodeLine{00067\ \ \ \ \ \ \ \ \ \ \ \ \ System::Object::ReferenceEquals(pComp2,\ \textcolor{keyword}{nullptr}))\ \{}
\DoxyCodeLine{00068\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \textcolor{keyword}{false};}
\DoxyCodeLine{00069\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00070\ }
\DoxyCodeLine{00071\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ pComp1-\/>\mbox{\hyperlink{a00820_a8c1b5573fecf18ba416b4aaa12f0efa8}{Led1}}\ ==\ pComp2-\/>\mbox{\hyperlink{a00820_a8c1b5573fecf18ba416b4aaa12f0efa8}{Led1}}\ \&\&}
\DoxyCodeLine{00072\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ pComp1-\/>Led2\ ==\ pComp2-\/>Led2\ \&\&}
\DoxyCodeLine{00073\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ pComp1-\/>Led3\ ==\ pComp2-\/>Led3\ \&\&}
\DoxyCodeLine{00074\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ pComp1-\/>Led4\ ==\ pComp2-\/>Led4;}
\DoxyCodeLine{00075\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00076\ \ \ \ \ \}}
\DoxyCodeLine{00077\ }
\DoxyCodeLine{00078\ \ \ \ \ \textcolor{keyword}{static}\ \textcolor{keywordtype}{bool}\ operator!=\ (\mbox{\hyperlink{a00820}{WSensorLamps}}\string^\ pComp1,\ \mbox{\hyperlink{a00820}{WSensorLamps}}\string^\ pComp2)\ \{}
\DoxyCodeLine{00079\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ !(pComp1\ ==\ pComp2);}
\DoxyCodeLine{00080\ \ \ \ \ \}}
\DoxyCodeLine{00081\ }
\DoxyCodeLine{00082\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00083\ \ \ \ \ \mbox{\hyperlink{a00792}{SensorLamps}}*\ \_lamps;}
\DoxyCodeLine{00084\ }
\DoxyCodeLine{00085\ \ \ \ \ LedColor\ \mbox{\hyperlink{a00820_a73aba9360c1f818a5661349965d7952a}{GetColor}}(\textcolor{keywordtype}{int}\ color)\ \{}
\DoxyCodeLine{00086\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{switch}\ (color)\ \{}
\DoxyCodeLine{00087\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ 0:}
\DoxyCodeLine{00088\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ LedColor::Black;}
\DoxyCodeLine{00089\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
\DoxyCodeLine{00090\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ 1:}
\DoxyCodeLine{00091\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ LedColor::Red;}
\DoxyCodeLine{00092\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
\DoxyCodeLine{00093\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ 2:}
\DoxyCodeLine{00094\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ LedColor::Green;}
\DoxyCodeLine{00095\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
\DoxyCodeLine{00096\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ 3:}
\DoxyCodeLine{00097\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ LedColor::Orange;}
\DoxyCodeLine{00098\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
\DoxyCodeLine{00099\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ 4:}
\DoxyCodeLine{00100\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ LedColor::Blue;}
\DoxyCodeLine{00101\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
\DoxyCodeLine{00102\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00103\ \ \ \ \ \}}
\DoxyCodeLine{00104\ \};}
\DoxyCodeLine{00105\ }

\end{DoxyCode}
