\section{marlin\-:\-:Processor\-Mgr Class Reference}
\label{classmarlin_1_1ProcessorMgr}\index{marlin\-::\-Processor\-Mgr@{marlin\-::\-Processor\-Mgr}}


\doxyref{Processor}{p.}{classmarlin_1_1Processor} manager singleton class.  




{\ttfamily \#include $<$Processor\-Mgr.\-h$>$}

Inheritance diagram for marlin\-:\-:Processor\-Mgr\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classmarlin_1_1ProcessorMgr}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual {\bf $\sim$\-Processor\-Mgr} ()\label{classmarlin_1_1ProcessorMgr_abfaca1bdc10445e5ac7f88c4deafe136}

\begin{DoxyCompactList}\small\item\em destructor deletes \doxyref{Processor\-Event\-Seeder}{p.}{classmarlin_1_1ProcessorEventSeeder} \end{DoxyCompactList}\item 
bool {\bf add\-Active\-Processor} (const std\-::string \&processor\-Type, const std\-::string \&processor\-Name, {\bf String\-Parameters} $\ast$parameters, const std\-::string condition=\char`\"{}true\char`\"{})
\begin{DoxyCompactList}\small\item\em Add a processor of type processor\-Type with name processor\-Name to the list of active processors. \end{DoxyCompactList}\item 
void {\bf remove\-Active\-Processor} (const std\-::string \&name)\label{classmarlin_1_1ProcessorMgr_ad072e01e3fade25a25720ee552dba3c2}

\begin{DoxyCompactList}\small\item\em Remove processor with name from list of active processors. \end{DoxyCompactList}\item 
{\bf Processor} $\ast$ {\bf get\-Active\-Processor} (const std\-::string \&name)
\begin{DoxyCompactList}\small\item\em Return the active processor with the given name. \end{DoxyCompactList}\item 
{\bf Processor} $\ast$ {\bf get\-Processor} (const std\-::string \&type)
\begin{DoxyCompactList}\small\item\em Return the processor that has been registered with the given type. \end{DoxyCompactList}\item 
void {\bf dump\-Registered\-Processors} ()\label{classmarlin_1_1ProcessorMgr_a9b786976586db6104ba8ae2c9fbeeb69}

\begin{DoxyCompactList}\small\item\em Dump information of all registered processors to stdout. \end{DoxyCompactList}\item 
void {\bf dump\-Registered\-Processors\-X\-M\-L} ()\label{classmarlin_1_1ProcessorMgr_a6e0f8d998618db68578ad76fff4a951d}

\begin{DoxyCompactList}\small\item\em Dump information of all registered processors in X\-M\-L format to stdout. \end{DoxyCompactList}\item 
virtual void {\bfseries init} ()\label{classmarlin_1_1ProcessorMgr_a0a515effe36c50994d01d50684b3ac9b}

\item 
virtual void {\bfseries process\-Run\-Header} (L\-C\-Run\-Header $\ast$)\label{classmarlin_1_1ProcessorMgr_a18d81ccf3227e6bd1ac8accab44c38aa}

\item 
virtual void {\bfseries process\-Event} (L\-C\-Event $\ast$)\label{classmarlin_1_1ProcessorMgr_a917fb8d467bfa5cc74b28edf6eb83c58}

\item 
virtual void {\bfseries end} ()\label{classmarlin_1_1ProcessorMgr_ab6a099bd7cb4af686159bab566d144f8}

\item 
virtual void {\bfseries modify\-Run\-Header} (L\-C\-Run\-Header $\ast$)\label{classmarlin_1_1ProcessorMgr_a2b5b305a6f119fa550725014681c11f9}

\item 
virtual void {\bfseries modify\-Event} (L\-C\-Event $\ast$)\label{classmarlin_1_1ProcessorMgr_ae0549bf7f7a75a6757f4d63cd485a19d}

\item 
virtual void {\bf read\-Data\-Source} (int num\-Events)\label{classmarlin_1_1ProcessorMgr_a16ec85911ae01b13b94a34565a92191a}

\begin{DoxyCompactList}\small\item\em Calls \doxyref{read\-Data\-Source()}{p.}{classmarlin_1_1ProcessorMgr_a16ec85911ae01b13b94a34565a92191a} for all Processors of type \doxyref{Data\-Source\-Processor}{p.}{classmarlin_1_1DataSourceProcessor}. \end{DoxyCompactList}\item 
virtual void {\bf set\-Processor\-Return\-Value} ({\bf Processor} $\ast$proc, bool val)\label{classmarlin_1_1ProcessorMgr_a86e8d8e613aeca6c327884e926653931}

\begin{DoxyCompactList}\small\item\em Set the return value for the given processor. \end{DoxyCompactList}\item 
virtual void {\bf set\-Processor\-Return\-Value} ({\bf Processor} $\ast$proc, bool val, const std\-::string \&name)\label{classmarlin_1_1ProcessorMgr_aae637496ff21f95e4956e6c3f8f4e51f}

\begin{DoxyCompactList}\small\item\em Set the named return value for the given processor. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static {\bf Processor\-Mgr} $\ast$ {\bf instance} ()\label{classmarlin_1_1ProcessorMgr_ae6fde5f3fdf229c843b9d3e4a6653d0f}

\begin{DoxyCompactList}\small\item\em Return the instance of this manager. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
void {\bf register\-Processor} ({\bf Processor} $\ast$processor)\label{classmarlin_1_1ProcessorMgr_ab41e1159b43032d1a5a2920d2c9c432a}

\begin{DoxyCompactList}\small\item\em Register a processor with the given name. \end{DoxyCompactList}\item 
std\-::set$<$ std\-::string $>$ {\bf get\-Available\-Processor\-Types} ()\label{classmarlin_1_1ProcessorMgr_a5a18b233dea53ca6ce313229a80bc6a5}

\begin{DoxyCompactList}\small\item\em Returns a list of all registered processors found. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
class {\bfseries Processor}\label{classmarlin_1_1ProcessorMgr_af37dcfbfcb6939b2878353a117ef691a}

\item 
class {\bfseries C\-M\-Processor}\label{classmarlin_1_1ProcessorMgr_a3df8d1864bb738248af93491cf49eda0}

\item 
class {\bfseries Marlin\-Steer\-Check}\label{classmarlin_1_1ProcessorMgr_a5ff64bb4aff3948075d2c6622f6b3cc4}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\doxyref{Processor}{p.}{classmarlin_1_1Processor} manager singleton class. 

Holds references to all registered Processors.

Responsible for creating the instance of \doxyref{Processor\-Event\-Seeder}{p.}{classmarlin_1_1ProcessorEventSeeder} and setting the Global\-::\-E\-V\-E\-N\-T\-S\-E\-E\-D\-E\-R variable.

\begin{DoxyAuthor}{Author}
F. Gaede, D\-E\-S\-Y 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}

\end{DoxyVersion}
\begin{DoxyParagraph}{Id\-:}
\doxyref{Processor\-Mgr.\-h}{p.}{ProcessorMgr_8h_source},v 1.\-16 2007-\/08-\/13 10\-:38\-:39 gaede Exp 
\end{DoxyParagraph}


\subsection{Member Function Documentation}
\index{marlin\-::\-Processor\-Mgr@{marlin\-::\-Processor\-Mgr}!add\-Active\-Processor@{add\-Active\-Processor}}
\index{add\-Active\-Processor@{add\-Active\-Processor}!marlin::ProcessorMgr@{marlin\-::\-Processor\-Mgr}}
\subsubsection[{add\-Active\-Processor}]{\setlength{\rightskip}{0pt plus 5cm}bool marlin\-::\-Processor\-Mgr\-::add\-Active\-Processor (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{processor\-Type, }
\item[{const std\-::string \&}]{processor\-Name, }
\item[{{\bf String\-Parameters} $\ast$}]{parameters, }
\item[{const std\-::string}]{condition = {\ttfamily \char`\"{}true\char`\"{}}}
\end{DoxyParamCaption}
)}\label{classmarlin_1_1ProcessorMgr_ad0b520e9dc3feee38cd6ccdd9764d640}


Add a processor of type processor\-Type with name processor\-Name to the list of active processors. 

Initializes the parameters (if != 0).Add a processor of type processor\-Type with name processor\-Name to the list of active processors including a condition for the execution of the process\-Event() method. 

References marlin\-::\-Logical\-Expressions\-::add\-Condition(), get\-Processor(), and marlin\-::\-Processor\-::new\-Processor().

\index{marlin\-::\-Processor\-Mgr@{marlin\-::\-Processor\-Mgr}!get\-Active\-Processor@{get\-Active\-Processor}}
\index{get\-Active\-Processor@{get\-Active\-Processor}!marlin::ProcessorMgr@{marlin\-::\-Processor\-Mgr}}
\subsubsection[{get\-Active\-Processor}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Processor} $\ast$ marlin\-::\-Processor\-Mgr\-::get\-Active\-Processor (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{name}
\end{DoxyParamCaption}
)}\label{classmarlin_1_1ProcessorMgr_af7e4b9929d203aa0f9f096d3dd9cc999}


Return the active processor with the given name. 

N\-U\-L\-L if no processor exists. \index{marlin\-::\-Processor\-Mgr@{marlin\-::\-Processor\-Mgr}!get\-Processor@{get\-Processor}}
\index{get\-Processor@{get\-Processor}!marlin::ProcessorMgr@{marlin\-::\-Processor\-Mgr}}
\subsubsection[{get\-Processor}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Processor} $\ast$ marlin\-::\-Processor\-Mgr\-::get\-Processor (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{type}
\end{DoxyParamCaption}
)}\label{classmarlin_1_1ProcessorMgr_ab8ecb2e303f36c6e3de629f6480f6ef2}


Return the processor that has been registered with the given type. 

N\-U\-L\-L if no processor exists. 

Referenced by add\-Active\-Processor().



The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
Processor\-Mgr.\-h\item 
Processor\-Mgr.\-cc\end{DoxyCompactItemize}
