home *** CD-ROM | disk | FTP | other *** search
/ VRML Tools for 3D Cyberspace / VRML_Tools_For_3D_Cyberspace.iso / amber / include / datamsg.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-01  |  872 b   |  47 lines

  1. /**********************************************************************
  2. //  DIVE Laboratories, Inc.
  3. //  Copyright(c) 1995
  4. //  All rights reserved
  5. //  FILE:   dataMsg.hpp
  6. //
  7. //  DESCRIPTION
  8. //  This header file provides message definitions for sending 
  9. //  messages via sockets as well as the definition for the dataMsgClass.
  10. //
  11. //  Author: M. Doucet
  12. //
  13. //  Modification History:
  14. //  4/25/95     Created
  15. //
  16. //**********************************************************************/
  17. #ifndef _DATAMSG_H
  18. #define _DATAMSG_H
  19.  
  20. #define MAX_DATA_SIZE 16
  21.  
  22. struct dataMsgStruct {
  23.  
  24.     int        msgSrc;
  25.     int        msgDest;
  26.     int         msgClass;
  27.     int        msgDir;
  28.     int        msgInt[4];
  29.     float        msgFloat1[4];
  30.     float     msgFloat2[4];
  31.     char         msgData[MAX_DATA_SIZE];
  32.  
  33. };
  34.  
  35. class dataMsgClass
  36. {
  37.  
  38. public:
  39.  
  40.     dataMsgStruct data;
  41.  
  42.     dataMsgClass();
  43.     ~dataMsgClass();
  44. };
  45.  
  46. #endif
  47.