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

agwsFOCUS_DATA_TBL.h

Go to the documentation of this file.
00001 #ifndef agwsFOCUS_DATA_TBL_H
00002 #define agwsFOCUS_DATA_TBL_H
00003 /******************************************************************************
00004 * E.S.O. - VLT project
00005 *
00006 * "@(#) $Id: agwsFOCUS_DATA_TBL.h,v 1.182 2003/11/12 08:34:14 vltsccm Exp $"
00007 *
00008 * who       when      what
00009 * --------  --------  ----------------------------------------------
00010 * nfiebig   29/05/96  created
00011 */
00012 
00013 /************************************************************************
00014  * Definition of the agwsTRANSFER service class
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 "agws.h"
00023 #include "ECCS.h"
00024 #include "eccsDB_TABLE.h"
00025 
00026 class agwsFOCUS_DATA : public eccsDB_TABLE_RECORD
00027 {
00028   public:
00029     vltBYTES32    focus;
00030     vltBYTES32    camera;
00031 
00032     ccsCOMPL_STAT Unpack( void *pBuffer )
00033     {
00034   char *buffer = reinterpret_cast<char *>(pBuffer);
00035   memcpy( &focus, buffer, sizeof(focus) ); 
00036   buffer = buffer+sizeof(focus);
00037   memcpy( &camera, buffer, sizeof(camera) ); 
00038   return(SUCCESS);
00039     }
00040     ccsCOMPL_STAT Pack( void *buffer )
00041     {
00042   int size = 0;
00043         dbFillBuf( (char**)&buffer, (char*)&focus ,&size, dbBYTES32);
00044         dbFillBuf( (char**)&buffer, (char*)&camera,&size, dbBYTES32);
00045   return(SUCCESS);
00046     }
00047 };
00048 
00049 #endif // !agwsFOCUS_DATA_TBL_H
00050 
00051 // __oOo__

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