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

agws.h

Go to the documentation of this file.
00001 #ifndef agws_H
00002 #define agws_H
00003 /******************************************************************************
00004 * E.S.O. - VLT project
00005 *
00006 * "@(#) $Id: agws.h,v 1.182 2003/11/12 08:34:08 vltsccm Exp $"
00007 *
00008 * who       when      what
00009 * --------  --------  -------------------------------------------------------
00010 * gchiozzi  02/10/97  Removed function agwsMswListPoint(). Not used any more.
00011 * awalland  22/11/96  Changed path to catalog library (for NOV96)
00012 * nfiebig   23/08/96  skycat lib includes added
00013 * nfiebig   30/05/96  service function prototypes added 
00014 * gchiozzi  29/02/96  created
00015 */
00016 
00017 /************************************************************************
00018  *
00019  *   General include file for the "agws" module.
00020  *   It contains common definitions used in every component of the module
00021  */
00022 
00023 #ifndef __cplusplus
00024 #error This is a C++ include file and cannot be used from plain C
00025 #endif
00026 
00027 /*
00028  * cat lib includes (keep before any evh includes, otherwise conflict!)
00029  */
00030 #include <cat/TcsCatalog.h>
00031 
00032 #include "eccsTestTools.h"
00033 #include "eccsDB_ATTR.h"
00034 #include "evhCALLBACK.h"
00035 
00036 /* 
00037  * Includes with error messages 
00038  */
00039 #include "agwsErrors.h"
00040 
00041 /* 
00042  *  Defines for the target telescope.
00043  *  The default target is VLT
00044  *  Up to now only VLT and NTT
00045  *  All other common defines used both in C/C++ code and dbLoader definitions
00046  */
00047 
00048 #include "tcs.h"
00049 #include "agwsDefines.h"
00050 
00051 /*
00052  *  Value/Name conversion tables:
00053  *  The defines for both values and names are in agwsDefines.h
00054  *  Other applications sending or receiving these values/string
00055  *  can include this file and link the file agws.C with the code
00056  *  for the mapping functions.
00057  *  We have to think if there is a better place where to put these
00058  *  common things.
00059  */
00060 
00061 #include "fndNAME_MAP.h"
00062 
00063 extern fndNAME_MAP agwsStateNameMap;
00064 
00065 #include "oslx.h"
00066 #include "agwsTARGET_LIST.h"
00067 
00068 /*
00069  * define the eccs log level
00070  */
00071 #ifdef eccsLOG_LEVEL
00072 #undef eccsLOG_LEVEL
00073 #endif
00074 #define eccsLOG_LEVEL 0
00075 
00076 /*
00077  * global variables 
00078  */
00079 extern dbSYMADDRESS     agwsDbRoot;  // module database root point
00080 extern agwsTARGET_LIST *agwsTargets; // list of sub-command targets
00081 
00082 /*
00083  * service function prototypes
00084  */
00085 char                   *agwsGetProcName(const msgPROCESSID &orgId);
00086 char                   *agwsDestTarget(msgMESSAGE &msg);
00087 ccsCOMPL_STAT           agwsSendReply(msgMESSAGE &user, const char *format, ...);
00088 ccsCOMPL_STAT           agwsSendErrorReply(msgMESSAGE &user, vltINT16 errorNumber, 
00089              ccsLOC_ID location, ...);
00090 ccsCOMPL_STAT           agwsGetTimeout(char *cmdName, ccsTIMEVAL &timeout);
00091  
00092 /*
00093  * macro to delete a dynamic object and invalidate its pointer
00094  */
00095 #define DELETE(objPtr)       \
00096     if (objPtr != NULL)      \
00097         {                    \
00098         delete objPtr;       \
00099         objPtr = NULL;       \
00100         }
00101 
00102 #endif // !agws_H

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