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

tcsSELF_CMD.h

Go to the documentation of this file.
00001 #ifndef tcsSELF_CMD_H
00002 #define tcsSELF_CMD_H
00003 /******************************************************************************
00004 * E.S.O. - VLT project
00005 *
00006 * "@(#) $Id: tcsSELF_CMD.h,v 1.136 2003/11/27 15:10:05 vltsccm Exp $"
00007 *
00008 * who       when      what
00009 * --------  --------  --------------------------------------------------------
00010 * nfiebig   14/11/96  created
00011 */
00012 
00013 /******************************************************************************
00014  * Declaration of class tcsSELF_CMD.
00015  *-----------------------------------------------------------------------------
00016  */
00017 
00018 #ifndef __cplusplus
00019 #error This is a C++ include file and cannot be used from plain C
00020 #endif
00021 
00022 #include <fndSTRING.h>
00023 #include <evhCALLBACK.h>
00024 #include <evhOBJ_CALLBACK.h>
00025 #include <evhTASK.h>
00026 #include <evhCOMMAND.h>
00027 
00028 #include <tcsCMD_HANDLER.h>
00029 
00030 class tcsSELF_CMD : private evhCOMMAND
00031 {
00032   public:
00033     tcsSELF_CMD();
00034     ~tcsSELF_CMD();
00035     ccsCOMPL_STAT SetCmdHandler(tcsCMD_HANDLER *handler, const char *description = "");
00036     ccsCOMPL_STAT SetReplyHandler(evhCALLBACK &cb);
00037     ccsCOMPL_STAT SetErrorHandler(evhCALLBACK &cb);
00038     ccsCOMPL_STAT Send(msgCMD cmdName, const char *format, ...);
00039     ccsCOMPL_STAT Reset();
00040     const char *Command() const;
00041     vltLOGICAL IsActive();
00042 
00043   protected:
00044     evhCB_COMPL_STAT ReplyCB(msgMESSAGE &msg, void *);
00045     evhCB_COMPL_STAT ErrorCB(msgMESSAGE &msg, void *);
00046 
00047   private:
00048     fndSTRING         description;  // description of purpose for error logging
00049     tcsCMD_HANDLER   *cmdHandler;   // command handler to be used for replies
00050     evhCALLBACK      *userReplyCB;  // user's reply handler
00051     evhCALLBACK      *userErrorCB;  // user's error reply handler
00052 };
00053 
00054 #endif // !tcsSELF_CMD_H

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