home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / VISBUILD / RAPSHEET / CPPOV23 / IARSTREC.HPP < prev    next >
Text File  |  1995-05-14  |  3KB  |  77 lines

  1. #ifndef _IARSTREC_
  2. #define _IARSTREC_
  3. //****************************************************************************
  4. // IArrestRecord Class - C++ Header File (iarstrec.hpp)                      *
  5. //                                                                           *
  6. // COPYRIGHT: Copyright (C) International Business Machines Corp., 1994,1995 *
  7. //                                                                           *
  8. // DISCLAIMER OF WARRANTIES:                                                 *
  9. //   The following [enclosed] code is sample code created by IBM             *
  10. //   Corporation.  This sample code is not part of any standard IBM product  *
  11. //   and is provided to you solely for the purpose of assisting you in the   *
  12. //   development of your applications.  The code is provided "AS IS",        *
  13. //   without warranty of any kind.  IBM shall not be liable for any damages  *
  14. //   arising out of your use of the sample code, even if they have been      *
  15. //   advised of the possibility of such damages.                             *
  16. //****************************************************************************
  17. //NOTE: WE RECOMMEND USING A FIXED-SPACE FONT TO LOOK AT THE SOURCE.
  18. //
  19.  
  20. #include <istring.hpp>
  21. #include <irecord.hpp>
  22.  
  23. //Forward declarations of other classes
  24.  
  25. /*----------------------------------------------------------------------------*/
  26. /* Align classes on four byte boundary.                                       */
  27. /*----------------------------------------------------------------------------*/
  28. #pragma pack(4)
  29.  
  30. //**************************************************************************
  31. // Class:   IArrestRecord
  32. //
  33. // Purpose: Describes IArrestRecord
  34. //
  35. //**************************************************************************
  36. class _Export IArrestRecord : public IRecord
  37. {
  38. public:
  39.            IArrestRecord ();
  40.            IArrestRecord ( const IString & recordData );
  41.            IArrestRecord ( const IArrestRecord & aRecord );
  42.   virtual  ~IArrestRecord ();
  43.  
  44. IArrestRecord & operator = ( const IArrestRecord & aRecord );
  45. IArrestRecord & operator = ( const IString & aString );
  46.  
  47. /*------------------------------------------------------------------
  48.  * charge
  49.  *-----------------------------------------------------------------*/
  50. virtual unsigned short charge () const;
  51. virtual IArrestRecord & setCharge (unsigned short iCharge);
  52.  
  53. /*------------------------------------------------------------------
  54.  * status
  55.  *-----------------------------------------------------------------*/
  56. virtual unsigned short status () const;
  57. virtual IArrestRecord & setStatus (unsigned short iStatus);
  58.  
  59. /*------------------------------------------------------------------
  60.  * statusDate
  61.  *-----------------------------------------------------------------*/
  62. virtual IString statusDate () const;
  63. virtual IArrestRecord & setStatusDate (const IString & iStatusDate);
  64.  
  65.  
  66. private:
  67.    unsigned long dParentSize;
  68.    const unsigned long dMySize;
  69. };
  70.  
  71. /*----------------------------------------------------------------------------*/
  72. /* Resume compiler default packing.                                           */
  73. /*----------------------------------------------------------------------------*/
  74. #pragma pack()
  75.  
  76. #endif
  77.