00001 #ifndef fswsCON_INS_H 00002 #define fswsCON_INS_H 00003 /****************************************************************************** 00004 * E.S.O. - VLT project 00005 * 00006 * "@(#) $Id: fswsCON_INS.h,v 1.67 2003/11/12 08:38:03 vltsccm Exp $" 00007 * 00008 * who when what 00009 * -------- -------- -------------------------------------------------------- 00010 * gchiozzi 16/12/97 created 00011 */ 00012 00013 /****************************************************************************** 00014 * Declaration of the fswsCON_INS class. This is the generic class for 00015 * interfacing to instruments. 00016 *----------------------------------------------------------------------------- 00017 */ 00018 00019 #ifndef __cplusplus 00020 #error This is a C++ include file and cannot be used from plain C 00021 #endif 00022 00023 #include "fsws.h" 00024 #include "agwsCMD_HANDLER.h" 00025 #include "evhDB_COMMAND.h" 00026 #include "fswsCON_CHOP.h" 00027 00028 class fswsCON_INS : public evhDB_TASK 00029 { 00030 public: 00031 fswsCON_INS(const dbSYMADDRESS dbPoint, 00032 fswsCON_CHOP &fswsConCHOP); 00033 00034 virtual ~fswsCON_INS(); 00035 00036 virtual ccsCOMPL_STAT Init(); 00037 virtual ccsCOMPL_STAT Reset(); 00038 00039 virtual vltINT32 RgState(); 00040 virtual void RgState(vltINT32 state); 00041 00042 virtual const char* FsDestination(); 00043 virtual const char* FsDestinationEnv(); 00044 virtual const char* FsDestinationProc(); 00045 00046 virtual evhCB_COMPL_STAT FsReqCB(msgMESSAGE &msg, agwsCMD_HANDLER &handler); 00047 virtual evhCB_COMPL_STAT FsRelCB(msgMESSAGE &msg, agwsCMD_HANDLER &handler); 00048 00049 protected: 00050 virtual evhCB_COMPL_STAT FsGetBidOkCB(msgMESSAGE &msg, agwsCMD_HANDLER &handler); 00051 00052 virtual evhCB_COMPL_STAT GeneralOkCB(msgMESSAGE &msg, agwsCMD_HANDLER &handler); 00053 virtual evhCB_COMPL_STAT GeneralErrorCB(msgMESSAGE &msg, agwsCMD_HANDLER &handler); 00054 00055 private: 00056 agwsCMD_HANDLER fsReqCmdHandler; // FSREQ command handler 00057 agwsCMD_HANDLER fsRelCmdHandler; // FSREL command handler 00058 00059 eccsDB_INT32 rgState; 00060 eccsDB_STRING fsDestination; 00061 msgMESSAGE fsRequest; 00062 00063 fswsCON_CHOP &fswsConCHOP; 00064 char bid[32]; 00065 eccsDB_INT32 fsMode; 00066 }; 00067 00068 #endif // !fswsCON_INS_H 00069 00070 // __oOo__