home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / visbuild / rapsheet / cppwv23 / rap.h < prev   
Encoding:
C/C++ Source or Header  |  1996-02-09  |  8.7 KB  |  193 lines

  1. #ifndef _RAP_
  2. #define _RAP_
  3. /******************************************************************************
  4. * .FILE:        rap.h                                                         *
  5. *                                                                             *
  6. * .DESCRIPTION: Symbolic definitions and structures for the Police Rap Sheet  *
  7. *                                                                             *
  8. * .CLASSES:                                                                   *
  9. *                                                                             *
  10. * .COPYRIGHT:                                                                 *
  11. *    Licensed Material - Program-Property of IBM                              *
  12. *    (C) Copyright IBM Corp. 1992, 1996 - All Rights Reserved                 *
  13. *                                                                             *
  14. * .DISCLAIMER:                                                                *
  15. *   The following [enclosed] code is sample code created by IBM               *
  16. *   Corporation.  This sample code is not part of any standard IBM product    *
  17. *   and is provided to you solely for the purpose of assisting you in the     *
  18. *   development of your applications.  The code is provided 'AS IS',          *
  19. *   without warranty of any kind.  IBM shall not be liable for any damages    *
  20. *   arising out of your use of the sample code, even if they have been        *
  21. *   advised of the possibility of such damages.                               *
  22. *                                                                             *
  23. * .NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          *
  24. *                                                                             *
  25. ******************************************************************************/
  26.  
  27. /************************************************************************
  28.  * Resource IDs
  29.  ************************************************************************/
  30. #define    NOPHOTO_FOUND                   7
  31. #define    WAVES_FRONT                     1
  32. #define    WAVES_LEFT                      2
  33. #define    WAVES_RIGHT                     3
  34. #define    HAMMER_LEFT                     4
  35. #define    HAMMER_FRONT                    5
  36. #define    HAMMER_RIGHT                    6
  37. #define    FREE_BITMAP                  1000
  38. #define    BOOKED_BITMAP                1001
  39. #define    SUSPECT_BITMAP               1002
  40. #define    LOCK_BITMAP                  1003
  41.  
  42. #define    SUSPECT_ICON                 2000
  43. #define    WITNESS_ID_ICON              2001
  44. #define    CASES_ICON                   2002
  45. #define    MOST_WANTED_ICON             2003
  46. #define    PERSON_ICON                  2004
  47.  
  48. /*-----------------------------------------------------------------------
  49.  * Messages
  50.  *----------------------------------------------------------------------*/
  51. #define BUFFERFULL_WARNING  3000
  52. #define NOSUSPECTFOUND_MSG  3001
  53. #define NOSUSPECTSFOUND_MSG  3002
  54. #define GETSUSPECTERROR_MSG  3003
  55. #define GETSUSPECTSERROR_MSG  3004
  56.  
  57. /*-----------------------------------------------------------------------
  58.  * String values
  59.  *----------------------------------------------------------------------*/
  60. #define BLUE_EYES_STR     5000
  61. #define BROWN_EYES_STR    5001
  62. #define GREEN_EYES_STR    5002
  63. #define HAZEL_EYES_STR    5003
  64.  
  65. #define NO_HAIR_STR       5010
  66. #define BLACK_HAIR_STR    5011
  67. #define BLONDE_HAIR_STR   5012
  68. #define BROWN_HAIR_STR    5013
  69. #define GREY_HAIR_STR     5014
  70. #define RED_HAIR_STR      5015
  71.  
  72. #define ARSON_STR                      5020
  73. #define ACCOMPLICE_TO_MURDER_STR       5021
  74. #define ASSAULT_STR                    5022
  75. #define ASSAULT_W_DEADLY_WEAPON_STR    5023
  76. #define BREAKING_AND_ENTERING_STR      5024
  77. #define BURGLARY_STR                   5025
  78. #define DWI_STR                        5026
  79. #define EMBEZZLEMENT_STR               5027
  80. #define FRAUD_STR                      5028
  81. #define HIJACKING_STR                  5029
  82. #define HIT_AND_RUN_STR                5030
  83. #define KIDNAPPING_STR                 5031
  84. #define MANSLAUGHTER_STR               5032
  85. #define MURDER_STR                     5033
  86. #define PERJURY_STR                    5034
  87. #define TRESPASSING_STR                5035
  88. #define VANDALISM_STR                  5036
  89. #define WRECKLESS_DRIVING_STR          5037
  90.  
  91. #define ACQUITTED_STR                  5100
  92. #define ARRESTED_STR                   5101
  93. #define ARRAIGNED_STR                  5102
  94. #define CONVICTED_STR                  5103
  95. #define DROPPED_STR                    5104
  96. #define ESCAPED_STR                    5105
  97. #define FREE_ON_BOND_STR               5106
  98. #define RELEASED_STR                   5107
  99. #define RELEASED_ON_PAROLE_STR         5108
  100. #define UNDER_SUSPICION_STR            5109
  101. #define WANTED_STR                     5110
  102.  
  103. /************************************************************************
  104.  * Common lengths
  105.  ************************************************************************/
  106. #define    LAST_NAME_LEN                  30
  107. #define    FIRST_NAME_LEN                 20
  108. #define    DATE_LEN                       10
  109. #define    COMMENT_LEN                    50
  110. /************************************************************************
  111.  * Alias   lengths
  112.  ************************************************************************/
  113. #define    ALIAS_NAME_LEN                 50
  114.  
  115. /************************************************************************
  116.  * Address lengths
  117.  ************************************************************************/
  118. #define    ADDRESS_STREET_LEN             30
  119. #define    ADDRESS_CITY_LEN               20
  120. #define    ADDRESS_COUNTY_LEN             20
  121. #define    ADDRESS_STATE_LEN               2
  122. #define    ADDRESS_ZIP_LEN                10
  123. /************************************************************************
  124.  * Arrest lengths
  125.  ************************************************************************/
  126. #define    ARREST_CHARGE_LEN              20
  127. #define    ARREST_STATUS_LEN              15
  128. #define    ARREST_REPORT_LEN             200      /*varchar             */
  129. /************************************************************************
  130.  * Suspect lengths
  131.  ************************************************************************/
  132. #define    SUSPECT_BOOK_NUM_LEN           10
  133. #define    SUSPECT_COLOR_LEN              20
  134. #define    SUSPECT_TRAIT_DESC_LEN         50      /*varchar             */
  135. #define    SUSPECT_INFO_LEN              100      /*varchar             */
  136. #define    SUSPECT_MO_DESC_LEN           100      /*varchar             */
  137. /************************************************************************
  138.  * Last seen lengths
  139.  ************************************************************************/
  140. #define    LS_LOC_LEN                     50
  141. #define    LS_WITNESS_LEN                 50
  142.  
  143. /************************************************************************
  144.  * Typedefs
  145.  ************************************************************************/
  146. typedef struct {
  147.    unsigned long   book_number;
  148.    unsigned short  gender;
  149.    unsigned short  height;
  150.    unsigned short  weight;
  151.    unsigned short  hairColor;
  152.    unsigned short  eyeColor;
  153.    unsigned short  hasMole;
  154.    unsigned short  hasScar;
  155.    unsigned short  hasTattoo;
  156.    unsigned short  mugFront;
  157.    unsigned short  mugRight;
  158.    unsigned short  mugLeft;
  159.  
  160.    char            firstName[FIRST_NAME_LEN+1];
  161.    char            lastName[LAST_NAME_LEN+1];
  162.    char            birthDate[DATE_LEN+1];
  163.    char            info[SUSPECT_INFO_LEN+1];
  164.    char            MO[SUSPECT_MO_DESC_LEN+1];
  165.    char            moleDescription[SUSPECT_TRAIT_DESC_LEN+1];
  166.    char            scarDescription[SUSPECT_TRAIT_DESC_LEN+1];
  167.    char            tattooDescription[SUSPECT_TRAIT_DESC_LEN+1];
  168.    char            street[ADDRESS_STREET_LEN+1];
  169.    char            city[ADDRESS_CITY_LEN+1];
  170.    char            county[ADDRESS_COUNTY_LEN+1];
  171.    char            state[ADDRESS_STATE_LEN+1];
  172.    char            zip[ADDRESS_ZIP_LEN+1];
  173.    } SUSPECT_STRUCT, *SUSPECT_STRUCT_PTR;
  174.  
  175. typedef struct {
  176.    unsigned short  arrestCharge;
  177.    unsigned short  arrestStatus;
  178.    char            arrestDate[DATE_LEN+1];
  179.    char            arrestReport[ARREST_REPORT_LEN+1];
  180.    } ARREST_STRUCT;
  181.  
  182. typedef struct {
  183.    char            lastSeenLocation[LS_LOC_LEN+1];
  184.    char            lastSeenWitness[LS_WITNESS_LEN+1];
  185.    char            lastSeenDate[DATE_LEN+1];
  186.    char            lastSeenStreet[ADDRESS_STREET_LEN+1];
  187.    char            lastSeenCity[ADDRESS_CITY_LEN+1];
  188.    char            lastSeenState[ADDRESS_STATE_LEN+1];
  189.    char            lastSeenComment[COMMENT_LEN+1];
  190.    } LAST_SEEN_STRUCT;
  191.  
  192. #endif
  193.