home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / VISBUILD / RAPSHEET / CPPOV23 / RAP.H < prev   
Text File  |  1995-05-15  |  7KB  |  176 lines

  1. #ifndef _RAP_         
  2. #define _RAP_
  3. /************************************************************************
  4.  * Police Rap Sheet Application - C++ Header File (irap.hpp)
  5.  *
  6.  * COPYRIGHT: Copyright (C) International Business Machines Corp., 1994,1995.
  7.  *
  8.  *************************************************************************/
  9.  
  10. /************************************************************************
  11.  * Resource IDs
  12.  ************************************************************************/
  13. #define    NOPHOTO_FOUND                   7
  14. #define    WAVES_FRONT                     1
  15. #define    WAVES_LEFT                      2
  16. #define    WAVES_RIGHT                     3
  17. #define    HAMMER_LEFT                     4
  18. #define    HAMMER_FRONT                    5
  19. #define    HAMMER_RIGHT                    6
  20. #define    FREE_BITMAP                  1000
  21. #define    BOOKED_BITMAP                1001
  22. #define    SUSPECT_BITMAP               1002
  23. #define    LOCK_BITMAP                  1003
  24.  
  25. #define    SUSPECT_ICON                 2000
  26. #define    WITNESS_ID_ICON              2001
  27. #define    CASES_ICON                   2002
  28. #define    MOST_WANTED_ICON             2003
  29. #define    PERSON_ICON                  2004
  30.  
  31. /*-----------------------------------------------------------------------
  32.  * Messages
  33.  *----------------------------------------------------------------------*/
  34. #define BUFFERFULL_WARNING  3000
  35. #define NOSUSPECTFOUND_MSG  3001
  36. #define NOSUSPECTSFOUND_MSG  3002
  37. #define GETSUSPECTERROR_MSG  3003
  38. #define GETSUSPECTSERROR_MSG  3004
  39.  
  40. /*-----------------------------------------------------------------------
  41.  * String values
  42.  *----------------------------------------------------------------------*/
  43. #define BLUE_EYES_STR     5000
  44. #define BROWN_EYES_STR    5001
  45. #define GREEN_EYES_STR    5002
  46. #define HAZEL_EYES_STR    5003
  47.  
  48. #define NO_HAIR_STR       5010
  49. #define BLACK_HAIR_STR    5011
  50. #define BLONDE_HAIR_STR   5012
  51. #define BROWN_HAIR_STR    5013
  52. #define GREY_HAIR_STR     5014
  53. #define RED_HAIR_STR      5015
  54.  
  55. #define ARSON_STR                      5020
  56. #define ACCOMPLICE_TO_MURDER_STR       5021
  57. #define ASSAULT_STR                    5022
  58. #define ASSAULT_W_DEADLY_WEAPON_STR    5023
  59. #define BREAKING_AND_ENTERING_STR      5024
  60. #define BURGLARY_STR                   5025
  61. #define DWI_STR                        5026
  62. #define EMBEZZLEMENT_STR               5027
  63. #define FRAUD_STR                      5028
  64. #define HIJACKING_STR                  5029
  65. #define HIT_AND_RUN_STR                5030
  66. #define KIDNAPPING_STR                 5031
  67. #define MANSLAUGHTER_STR               5032
  68. #define MURDER_STR                     5033
  69. #define PERJURY_STR                    5034
  70. #define TRESPASSING_STR                5035
  71. #define VANDALISM_STR                  5036
  72. #define WRECKLESS_DRIVING_STR          5037
  73.  
  74. #define ACQUITTED_STR                  5100
  75. #define ARRESTED_STR                   5101
  76. #define ARRAIGNED_STR                  5102
  77. #define CONVICTED_STR                  5103
  78. #define DROPPED_STR                    5104
  79. #define ESCAPED_STR                    5105
  80. #define FREE_ON_BOND_STR               5106
  81. #define RELEASED_STR                   5107
  82. #define RELEASED_ON_PAROLE_STR         5108
  83. #define UNDER_SUSPICION_STR            5109
  84. #define WANTED_STR                     5110
  85.  
  86. /************************************************************************
  87.  * Common lengths
  88.  ************************************************************************/
  89. #define    LAST_NAME_LEN                  30
  90. #define    FIRST_NAME_LEN                 20
  91. #define    DATE_LEN                       10
  92. #define    COMMENT_LEN                    50
  93. /************************************************************************
  94.  * Alias   lengths
  95.  ************************************************************************/
  96. #define    ALIAS_NAME_LEN                 50
  97.  
  98. /************************************************************************
  99.  * Address lengths
  100.  ************************************************************************/
  101. #define    ADDRESS_STREET_LEN             30
  102. #define    ADDRESS_CITY_LEN               20
  103. #define    ADDRESS_COUNTY_LEN             20
  104. #define    ADDRESS_STATE_LEN               2
  105. #define    ADDRESS_ZIP_LEN                10
  106. /************************************************************************
  107.  * Arrest lengths
  108.  ************************************************************************/
  109. #define    ARREST_CHARGE_LEN              20
  110. #define    ARREST_STATUS_LEN              15
  111. #define    ARREST_REPORT_LEN             200      /*varchar             */
  112. /************************************************************************
  113.  * Suspect lengths
  114.  ************************************************************************/
  115. #define    SUSPECT_BOOK_NUM_LEN           10
  116. #define    SUSPECT_COLOR_LEN              20
  117. #define    SUSPECT_TRAIT_DESC_LEN         50      /*varchar             */
  118. #define    SUSPECT_INFO_LEN              100      /*varchar             */
  119. #define    SUSPECT_MO_DESC_LEN           100      /*varchar             */
  120. /************************************************************************
  121.  * Last seen lengths
  122.  ************************************************************************/
  123. #define    LS_LOC_LEN                     50
  124. #define    LS_WITNESS_LEN                 50
  125.  
  126. /************************************************************************
  127.  * Typedefs
  128.  ************************************************************************/
  129. typedef struct {
  130.    unsigned long   book_number;
  131.    unsigned short  gender;
  132.    unsigned short  height;
  133.    unsigned short  weight;
  134.    unsigned short  hairColor;
  135.    unsigned short  eyeColor;
  136.    unsigned short  hasMole;
  137.    unsigned short  hasScar;
  138.    unsigned short  hasTattoo;
  139.    unsigned short  mugFront;
  140.    unsigned short  mugRight;
  141.    unsigned short  mugLeft;                     
  142.  
  143.    char            firstName[FIRST_NAME_LEN+1];
  144.    char            lastName[LAST_NAME_LEN+1];
  145.    char            birthDate[DATE_LEN+1];
  146.    char            info[SUSPECT_INFO_LEN+1];
  147.    char            MO[SUSPECT_MO_DESC_LEN+1];
  148.    char            moleDescription[SUSPECT_TRAIT_DESC_LEN+1];
  149.    char            scarDescription[SUSPECT_TRAIT_DESC_LEN+1];
  150.    char            tattooDescription[SUSPECT_TRAIT_DESC_LEN+1];
  151.    char            street[ADDRESS_STREET_LEN+1];
  152.    char            city[ADDRESS_CITY_LEN+1];
  153.    char            county[ADDRESS_COUNTY_LEN+1];
  154.    char            state[ADDRESS_STATE_LEN+1];
  155.    char            zip[ADDRESS_ZIP_LEN+1];
  156.    } SUSPECT_STRUCT, *SUSPECT_STRUCT_PTR;
  157.  
  158. typedef struct {
  159.    unsigned short  arrestCharge;
  160.    unsigned short  arrestStatus;
  161.    char            arrestDate[DATE_LEN+1];
  162.    char            arrestReport[ARREST_REPORT_LEN+1];
  163.    } ARREST_STRUCT;
  164.  
  165. typedef struct {
  166.    char            lastSeenLocation[LS_LOC_LEN+1];
  167.    char            lastSeenWitness[LS_WITNESS_LEN+1];
  168.    char            lastSeenDate[DATE_LEN+1];
  169.    char            lastSeenStreet[ADDRESS_STREET_LEN+1];
  170.    char            lastSeenCity[ADDRESS_CITY_LEN+1];
  171.    char            lastSeenState[ADDRESS_STATE_LEN+1];
  172.    char            lastSeenComment[COMMENT_LEN+1];
  173.    } LAST_SEEN_STRUCT;
  174.  
  175. #endif
  176.