freEvents.cxx

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   F.R.E.E. - flexible registration evaluation engine
00004   Version:   v.1.0.0
00005   Date:      $Date: 2006/09/01 12:00:00 $
00006   Module:    $RCSfile: freEvents.cxx,v $
00007   Language:  C++
00008 
00009 
00010 
00011   Copyright (c) 2007 Ralf o Floca (Department of Medical Informatics,
00012   Institute for Medical Biometry and Informatics, University of Heidelberg,
00013   Germany). All rights reserved.
00014   See FREECopyright.txt or http://www.mi.med.uni-hd.de/free/copyright.htm
00015   for details.
00016 
00017      This software is distributed WITHOUT ANY WARRANTY; without even 
00018      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00019      PURPOSE.  See the above copyright notices for more information.
00020 
00021 =========================================================================*/
00022 
00023 
00024 #include "freEvents.h"
00025 
00026 namespace FREE
00027 {
00028 
00032 
00033 
00034 
00035 NotificationEventBase::
00036 NotificationEventBase(NotifyEvent pNE)
00037 {
00038 m_NotifyEvent = pNE;
00039 };
00040 
00041 NotificationEventBase::
00042 NotificationEventBase()
00043 {
00044 m_NotifyEvent = NULL;
00045 };
00046 
00047 void
00048 NotificationEventBase::
00049 Execute(void* pSender, long threadID)
00050 {
00051         if (m_NotifyEvent) (*m_NotifyEvent)(pSender, threadID);
00052 };
00053 
00057 
00058 
00059 CallbackEventBase::
00060 CallbackEventBase(CallEvent pCE)
00061 {
00062         m_CallEvent = pCE;
00063 };
00064 
00065 CallbackEventBase::
00066 CallbackEventBase()
00067 {
00068         m_CallEvent = NULL;
00069 };
00070 
00071 bool
00072 CallbackEventBase::
00073 Execute(CallbackType callbackID, CallbackFlagType flag, void* pData, void* pSender, long threadID)
00074 {
00075         return (*m_CallEvent)(callbackID, flag, pData, pSender, threadID);
00076 };
00077 
00081 
00082 
00083 ProgressEventBase::
00084 ProgressEventBase(ProgEvent pPE)
00085 {
00086         m_ProgressEvent = pPE;
00087 };
00088 
00089 ProgressEventBase::
00090 ProgressEventBase()
00091 {
00092         m_ProgressEvent = NULL;
00093 };
00094 
00095 void
00096 ProgressEventBase::
00097 Execute(const long status, const std::string& sComment, void* pSender, long threadID)
00098 {
00099         (*m_ProgressEvent)(status, sComment, pSender, threadID);
00100 };
00101 
00102 } //end of namespace free

Generated at Sat Oct 13 15:53:48 2007 for f.r.e.e. - Flexible Registration and Evaluation Engine by doxygen 1.5.3 written by Dimitri van Heesch, © 1997-2000