\hypertarget{classagOdalaunch_1_1EventHandler}{
\section{agOdalaunch::EventHandler Class Reference}
\label{d4/d60/classagOdalaunch_1_1EventHandler}\index{agOdalaunch::EventHandler@{agOdalaunch::EventHandler}}
}


An event handler.  




{\ttfamily \#include $<$event\_\-handler.h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classagOdalaunch_1_1EventHandler_a1310eae9355baf4812946de6acf7abe2}{EventHandler} (\hyperlink{classagOdalaunch_1_1ODA__EventRegister}{ODA\_\-EventRegister} $\ast$classPtr, \hyperlink{namespaceagOdalaunch_a753426b748f9b22aa3d9aff2cba70b25}{EVENT\_\-FUNC\_\-PTR} funcPtr)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hyperlink{classagOdalaunch_1_1EventHandler_abc17bff0af5942e4750696003e8e601a}{$\sim$EventHandler} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
void \hyperlink{classagOdalaunch_1_1EventHandler_ab15eeb1d2348986ddf60c82ff9b524b8}{Trigger} (AG\_\-Event $\ast$\hyperlink{structevent}{event})
\begin{DoxyCompactList}\small\item\em Trigger the event handler. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
An event handler. 

Class that wraps a pointer to a class and the event callback function pointer. The class can be cast and passed as a (void $\ast$) to C-\/based functions. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classagOdalaunch_1_1EventHandler_a1310eae9355baf4812946de6acf7abe2}{
\index{agOdalaunch::EventHandler@{agOdalaunch::EventHandler}!EventHandler@{EventHandler}}
\index{EventHandler@{EventHandler}!agOdalaunch::EventHandler@{agOdalaunch::EventHandler}}
\subsubsection[{EventHandler}]{\setlength{\rightskip}{0pt plus 5cm}agOdalaunch::EventHandler::EventHandler (
\begin{DoxyParamCaption}
\item[{{\bf ODA\_\-EventRegister} $\ast$}]{classPtr, }
\item[{{\bf EVENT\_\-FUNC\_\-PTR}}]{funcPtr}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d4/d60/classagOdalaunch_1_1EventHandler_a1310eae9355baf4812946de6acf7abe2}


Constructor. 


\begin{DoxyParams}{Parameters}
{\em classPtr} & A pointer to an \hyperlink{classagOdalaunch_1_1ODA__EventRegister}{ODA\_\-EventRegister} derived class (often the 'this' pointer). \\
\hline
{\em funcPtr} & An \hyperlink{classagOdalaunch_1_1ODA__EventRegister}{ODA\_\-EventRegister} derived classes member function cast to EVENT\_\-FUNC\_\-PTR. This method can be public, protected, or private. \\
\hline
\end{DoxyParams}
\hypertarget{classagOdalaunch_1_1EventHandler_abc17bff0af5942e4750696003e8e601a}{
\index{agOdalaunch::EventHandler@{agOdalaunch::EventHandler}!$\sim$EventHandler@{$\sim$EventHandler}}
\index{$\sim$EventHandler@{$\sim$EventHandler}!agOdalaunch::EventHandler@{agOdalaunch::EventHandler}}
\subsubsection[{$\sim$EventHandler}]{\setlength{\rightskip}{0pt plus 5cm}agOdalaunch::EventHandler::$\sim$EventHandler (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d4/d60/classagOdalaunch_1_1EventHandler_abc17bff0af5942e4750696003e8e601a}


Destructor. 



\subsection{Member Function Documentation}
\hypertarget{classagOdalaunch_1_1EventHandler_ab15eeb1d2348986ddf60c82ff9b524b8}{
\index{agOdalaunch::EventHandler@{agOdalaunch::EventHandler}!Trigger@{Trigger}}
\index{Trigger@{Trigger}!agOdalaunch::EventHandler@{agOdalaunch::EventHandler}}
\subsubsection[{Trigger}]{\setlength{\rightskip}{0pt plus 5cm}void agOdalaunch::EventHandler::Trigger (
\begin{DoxyParamCaption}
\item[{AG\_\-Event $\ast$}]{event}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d4/d60/classagOdalaunch_1_1EventHandler_ab15eeb1d2348986ddf60c82ff9b524b8}


Trigger the event handler. 

This method will call into the member function that was provided at construction. This is typically called by the EventReceiver function. 

The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
ag-\/odalaunch/src/\hyperlink{event__handler_8h}{event\_\-handler.h}\end{DoxyCompactItemize}
