\section{lccd\-:\-:I\-Conditions\-Handler Class Reference}
\label{classlccd_1_1IConditionsHandler}\index{lccd\-::\-I\-Conditions\-Handler@{lccd\-::\-I\-Conditions\-Handler}}


Abstract handler for conditions data.  




{\ttfamily \#include $<$I\-Conditions\-Handler.\-hh$>$}

Inheritance diagram for lccd\-:\-:I\-Conditions\-Handler\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.307692cm]{classlccd_1_1IConditionsHandler}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual void {\bf update\-Event} (lcio\-::\-L\-C\-Event $\ast$evt)=0
\begin{DoxyCompactList}\small\item\em Retrieves the new conditions data if required by evt-\/$>$get\-Timestamp() and adds a collection to event with its name. \end{DoxyCompactList}\item 
virtual void {\bf update} ({\bf L\-C\-C\-D\-Time\-Stamp} timestamp)=0
\begin{DoxyCompactList}\small\item\em Retrieves the new conditions data if required by timestamp. \end{DoxyCompactList}\item 
virtual lcio\-::\-L\-C\-Collection $\ast$ {\bf current\-Collection} ()=0\label{classlccd_1_1IConditionsHandler_a195003b870b4d3ba7933299609408e60}

\begin{DoxyCompactList}\small\item\em Returns the current collection of conditions data. \end{DoxyCompactList}\item 
virtual void {\bf register\-Change\-Listener} ({\bf I\-Conditions\-Change\-Listener} $\ast$cl)=0\label{classlccd_1_1IConditionsHandler_a873afa49af2285848ca70a7a68d13b9d}

\begin{DoxyCompactList}\small\item\em Every \doxyref{I\-Conditions\-Change\-Listener}{p.}{classlccd_1_1IConditionsChangeListener} will be notified if the conditions data of this instance has changed. \end{DoxyCompactList}\item 
virtual void {\bf remove\-Change\-Listener} ({\bf I\-Conditions\-Change\-Listener} $\ast$cl)=0\label{classlccd_1_1IConditionsHandler_a88f1b74563f53a0304354188bb187d68}

\begin{DoxyCompactList}\small\item\em Remove the specified listener from list of registered listeners ;. \end{DoxyCompactList}\item 
virtual bool {\bf is\-Change\-Listener\-Registered} ({\bf I\-Conditions\-Change\-Listener} $\ast$cl)=0\label{classlccd_1_1IConditionsHandler_a55c4e07fc6500227b0c456315955ad5f}

\begin{DoxyCompactList}\small\item\em checks if the change\-Listner is Registered \end{DoxyCompactList}\item 
virtual void {\bf register\-Default\-Collection} (lcio\-::\-L\-C\-Collection $\ast$col)=0\label{classlccd_1_1IConditionsHandler_a5d715cce6bf7eed20cd72dab43febc35}

\begin{DoxyCompactList}\small\item\em Register a pointer to a default collection which will be passed to the \doxyref{I\-Conditions\-Change\-Listener}{p.}{classlccd_1_1IConditionsChangeListener} if no data can be found for a given time stamp. \end{DoxyCompactList}\item 
virtual lcio\-::\-L\-C\-Collection $\ast$ {\bf default\-Collection} ()=0\label{classlccd_1_1IConditionsHandler_a31cbce3a859d11b9fe91d55b8fe19506}

\begin{DoxyCompactList}\small\item\em The default collection registered with the handler. \end{DoxyCompactList}\item 
virtual lcio\-::\-L\-C\-Collection $\ast$ {\bf last\-Valid\-Collection} ()=0\label{classlccd_1_1IConditionsHandler_add3bf3854840ab086285df1d9c4d7ded}

\begin{DoxyCompactList}\small\item\em The last valid collection held by the handler. \end{DoxyCompactList}\item 
virtual const std\-::string {\bf name} ()=0
\begin{DoxyCompactList}\small\item\em The name of this conditions handler -\/ used, e.\-g. \end{DoxyCompactList}\item 
virtual {\bf L\-C\-C\-D\-Time\-Stamp} {\bf valid\-Since} ()=0\label{classlccd_1_1IConditionsHandler_a9cfc0bf6246e302278d818d1f2218c5b}

\begin{DoxyCompactList}\small\item\em First timestamp for which the current conditions data is valid. \end{DoxyCompactList}\item 
virtual {\bf L\-C\-C\-D\-Time\-Stamp} {\bf valid\-Till} ()=0\label{classlccd_1_1IConditionsHandler_a242c7a1a3ae759e39f4cf8bea16d8e36}

\begin{DoxyCompactList}\small\item\em Last timestamp for which the current conditions data is valid. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Abstract handler for conditions data. 

Need one implementation instance for every data set. Check documentation of concrete implemetation for behaviour on update, e.\-g. a simple file handler might ignore calls to update and always hold the same data set.

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

\end{DoxyVersion}
\begin{DoxyParagraph}{Id\-:}
\doxyref{I\-Conditions\-Handler.\-hh}{p.}{IConditionsHandler_8hh_source},v 1.\-3 2007-\/04-\/27 13\-:21\-:31 gaede Exp 
\end{DoxyParagraph}


\subsection{Member Function Documentation}
\index{lccd\-::\-I\-Conditions\-Handler@{lccd\-::\-I\-Conditions\-Handler}!name@{name}}
\index{name@{name}!lccd::IConditionsHandler@{lccd\-::\-I\-Conditions\-Handler}}
\subsubsection[{name}]{\setlength{\rightskip}{0pt plus 5cm}virtual const std\-::string lccd\-::\-I\-Conditions\-Handler\-::name (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [pure virtual]}}\label{classlccd_1_1IConditionsHandler_ad3ceb30f1efff718615b0473da668593}


The name of this conditions handler -\/ used, e.\-g. 

as name of the collection in update( lcio\-::\-L\-C\-Event$\ast$ evt ).

\begin{DoxySeeAlso}{See Also}
update( lcio\-::\-L\-C\-Event$\ast$ evt ) 
\end{DoxySeeAlso}


Implemented in {\bf lccd\-::\-Conditions\-Handler\-Base} \doxyref{}{p.}{classlccd_1_1ConditionsHandlerBase_a3ae3fc825ceec5e40475cbc1a0058d63}.

\index{lccd\-::\-I\-Conditions\-Handler@{lccd\-::\-I\-Conditions\-Handler}!update@{update}}
\index{update@{update}!lccd::IConditionsHandler@{lccd\-::\-I\-Conditions\-Handler}}
\subsubsection[{update}]{\setlength{\rightskip}{0pt plus 5cm}virtual void lccd\-::\-I\-Conditions\-Handler\-::update (
\begin{DoxyParamCaption}
\item[{{\bf L\-C\-C\-D\-Time\-Stamp}}]{timestamp}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [pure virtual]}}\label{classlccd_1_1IConditionsHandler_afc5cb44b3b44e82358315314137f447e}


Retrieves the new conditions data if required by timestamp. 

Notifies all registered listeners\par
 See implementation classes for details. 

Implemented in {\bf lccd\-::\-D\-B\-File\-Handler} \doxyref{}{p.}{classlccd_1_1DBFileHandler_a9ca320c3e756f0748b6b566d21f69b81}, {\bf lccd\-::\-D\-B\-Cond\-Handler} \doxyref{}{p.}{classlccd_1_1DBCondHandler_a3ea91c36bcdb5e79824c581802d0004e}, {\bf lccd\-::\-Conditions\-Handler\-Base} \doxyref{}{p.}{classlccd_1_1ConditionsHandlerBase_aafbe952660e65887cd9290b4e62ae256}, {\bf lccd\-::\-Simple\-File\-Handler} \doxyref{}{p.}{classlccd_1_1SimpleFileHandler_ab6f581b8f1b6f0da93b66758c7f9edc1}, and {\bf lccd\-::\-Data\-File\-Handler} \doxyref{}{p.}{classlccd_1_1DataFileHandler_aba38df4316e275dbe205626915fb09d3}.

\index{lccd\-::\-I\-Conditions\-Handler@{lccd\-::\-I\-Conditions\-Handler}!update\-Event@{update\-Event}}
\index{update\-Event@{update\-Event}!lccd::IConditionsHandler@{lccd\-::\-I\-Conditions\-Handler}}
\subsubsection[{update\-Event}]{\setlength{\rightskip}{0pt plus 5cm}virtual void lccd\-::\-I\-Conditions\-Handler\-::update\-Event (
\begin{DoxyParamCaption}
\item[{lcio\-::\-L\-C\-Event $\ast$}]{evt}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [pure virtual]}}\label{classlccd_1_1IConditionsHandler_af358f80aaaaaf469d612dc93ea2d813e}


Retrieves the new conditions data if required by evt-\/$>$get\-Timestamp() and adds a collection to event with its name. 

Notifies all registered listeners 

Implemented in {\bf lccd\-::\-Conditions\-Handler\-Base} \doxyref{}{p.}{classlccd_1_1ConditionsHandlerBase_abf805ee1bb8c4ca332af9df520252fdf}, and {\bf lccd\-::\-Data\-File\-Handler} \doxyref{}{p.}{classlccd_1_1DataFileHandler_a55d7c0741018701b2db015a26ea6f041}.



The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
I\-Conditions\-Handler.\-hh\end{DoxyCompactItemize}
