Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

agwsCON_CHECK.h

Go to the documentation of this file.
00001 #ifndef agwsCON_CHECK_H
00002 #define agwsCON_CHECK_H
00003 /******************************************************************************
00004 * E.S.O. - VLT project
00005 *
00006 * "@(#) $Id: agwsCON_CHECK.h,v 1.182 2003/11/12 08:34:08 vltsccm Exp $"
00007 *
00008 * who       when      what
00009 * --------  --------  --------------------------------------------------------
00010 * rkarban 2001-12-06 remove functions for setting timer getting CB
00011 * rkarban 2001-12-06 make method to access interval
00012 * rkarban 2001-11-27 make all public methods virtual
00013 * gchiozzi  23/09/97  Added handling of check loop time on db.
00014 * gchiozzi  29/02/96  created
00015 */
00016 /******************************************************************************
00017  *
00018  *-----------------------------------------------------------------------------
00019  */
00020 
00021 #ifndef __cplusplus
00022 #error This is a C++ include file and cannot be used from plain C
00023 #endif
00024 
00025 /*
00026  * module includes
00027  */
00028 #include "agws.h"
00029 #include "evhDB_TASK.h"
00030 #include "evhTIMER.h"
00031 
00032 /*
00033  * periodic check interval in seconds
00034  */
00035 class agwsCON_CHECK : public evhDB_TASK
00036 {
00037   public:
00038     agwsCON_CHECK(const dbSYMADDRESS  dbPoint);
00039     virtual ~agwsCON_CHECK();
00040 
00041     virtual ccsCOMPL_STAT Init();
00042     virtual ccsCOMPL_STAT CheckStart();
00043     virtual ccsCOMPL_STAT CheckGuiding();
00044 
00045     virtual ccsCOMPL_STAT StartPeriodicCheck(evhCALLBACK &userCB);
00046     virtual ccsCOMPL_STAT StopPeriodicCheck();
00047 
00048     virtual evhCB_COMPL_STAT PeriodicCheckCB(msgMESSAGE &, void *);
00049 
00050   protected:
00051     vltINT32 Interval() {return interval;};
00052 
00053   private:
00054     vltINT32      interval; // time bettween two checks
00055     evhTIMER     *timer;    // timer to trigger periodic checks
00056     evhCALLBACK  *stopCB;   // call-back for requesting stop of auto-guiding
00057 };
00058 
00059 #endif 

Generated on Wed Dec 3 14:52:06 2003 for ATCS API by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001