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

  1. #ifndef _ILSREC_
  2. #define _ILSREC_
  3. //****************************************************************************
  4. // ILastSeenRecord Class - C++ Header File (ilsrec.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 <irecord.hpp>
  21. #include <istring.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:   ILastSeenRecord
  32. //
  33. // Purpose: Describes ILastSeenRecord
  34. //
  35. //**************************************************************************
  36. class _Export ILastSeenRecord : public IRecord
  37. {
  38. public:
  39.            ILastSeenRecord ();
  40.            ILastSeenRecord ( const IString & recordData );
  41.            ILastSeenRecord ( const ILastSeenRecord & aRecord );
  42.   virtual  ~ILastSeenRecord ();
  43.  
  44. ILastSeenRecord & operator = ( const ILastSeenRecord & aRecord );
  45. ILastSeenRecord & operator = ( const IString & aString );
  46.  
  47. /*------------------------------------------------------------------
  48.  * location
  49.  *-----------------------------------------------------------------*/
  50. virtual IString location () const;
  51. virtual ILastSeenRecord & setLocation (const IString & iLocation);
  52.  
  53.  
  54. /*------------------------------------------------------------------
  55.  * witness
  56.  *-----------------------------------------------------------------*/
  57. virtual IString witness() const;
  58. virtual ILastSeenRecord & setWitness (const IString & iWitness);
  59.  
  60.  
  61. /*------------------------------------------------------------------
  62.  * lastSeenDate
  63.  *-----------------------------------------------------------------*/
  64. virtual IString lastSeenDate() const;
  65. virtual ILastSeenRecord & setLastSeenDate (const IString & iLastSeenDate);
  66.  
  67.  
  68. /*------------------------------------------------------------------
  69.  * street
  70.  *-----------------------------------------------------------------*/
  71. virtual IString  street() const;
  72. virtual ILastSeenRecord & setStreet (const IString & iStreet);
  73.  
  74. /*------------------------------------------------------------------
  75.  * city
  76.  *-----------------------------------------------------------------*/
  77. virtual IString city() const;
  78. virtual ILastSeenRecord & setCity (const IString & iStreet);
  79.  
  80. /*------------------------------------------------------------------
  81.  * state
  82.  *-----------------------------------------------------------------*/
  83. virtual IString state() const;
  84. virtual ILastSeenRecord & setState (const IString & iStreet);
  85.  
  86. /*------------------------------------------------------------------
  87.  * comment
  88.  *-----------------------------------------------------------------*/
  89. virtual IString comment() const;
  90. virtual ILastSeenRecord &  setComment (const IString & iComment);
  91.  
  92.  
  93. private:
  94.    unsigned long dParentSize;
  95.    const unsigned long dMySize;
  96. };
  97.  
  98. /*----------------------------------------------------------------------------*/
  99. /* Resume compiler default packing.                                           */
  100. /*----------------------------------------------------------------------------*/
  101. #pragma pack()
  102.  
  103. #endif
  104.