home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / db02_src.zip / d_types.h < prev    next >
C/C++ Source or Header  |  1993-11-05  |  524b  |  31 lines

  1. #ifndef __DIAMOND_TYPES__
  2. #define __DIAMOND_TYPES__
  3.  
  4. // Diamond base type definitions.
  5.  
  6. #include <dbstr.h>
  7.  
  8. typedef double moneyType;
  9. typedef long dateType;
  10. typedef long uniqueType;
  11.  
  12. // type enumeration.
  13.  
  14. enum {D_LONG, D_ULONG, D_SHORT, D_USHORT, D_DOUBLE, D_FLOAT, D_MONEY, D_DATE, D_CHAR, D_UNIQUE, D_STRING, D_DATA, D_ICHAR};
  15.  
  16. struct d_int
  17. {
  18.     char data[4];
  19.  
  20.     d_int(long val=0);
  21.     d_int(const d_int& from);
  22.  
  23.     d_int& operator = (const d_int& from);
  24.     d_int& operator = (const long from);
  25.  
  26.     operator long() const;
  27. };
  28.  
  29.  
  30. #endif
  31.