home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / visbuild / rapsheet / cppwv23 / iaddrrec.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-08  |  4.1 KB  |  90 lines

  1. #ifndef _IADDRREC_
  2. #define _IADDRREC_
  3. /******************************************************************************
  4. * .FILE:        iaddrrec.hpp                                                  *
  5. *                                                                             *
  6. * .DESCRIPTION: Header file for the class, IAddressRecord                     *
  7. *                                                                             *
  8. * .CLASSES:     IAddressRecord                                                *
  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. #include "ivbsamps.h"
  27. #include <istring.hpp>
  28. #include <irecord.hpp>
  29.  
  30. //Forward declarations of other classes
  31.  
  32. /*----------------------------------------------------------------------------*/
  33. /* Align classes on four byte boundary.                                       */
  34. /*----------------------------------------------------------------------------*/
  35. #pragma pack(4)
  36.  
  37. //**************************************************************************
  38. // Class:   IAddressRecord
  39. //
  40. // Purpose: Describes IAddressRecord
  41. //
  42. //**************************************************************************
  43. class IVBSAMP_IMPORT IAddressRecord : public IRecord
  44. {
  45. public:
  46.            IAddressRecord ();
  47.            IAddressRecord ( const IString & recordData );
  48.            IAddressRecord ( const IAddressRecord & aRecord );
  49.   virtual  ~IAddressRecord ();
  50.  
  51. IAddressRecord & operator = ( const IAddressRecord & aRecord );
  52. IAddressRecord & operator = ( const IString & aString );
  53.  
  54. /*------------------------------------------------------------------
  55.  * street
  56.  *-----------------------------------------------------------------*/
  57. virtual IString street () const;
  58. virtual IAddressRecord & setStreet (IString iStreet);
  59.  
  60. /*------------------------------------------------------------------
  61.  * city
  62.  *-----------------------------------------------------------------*/
  63. virtual IString city () const;
  64. virtual IAddressRecord & setCity (const IString & iCity);
  65.  
  66. /*------------------------------------------------------------------
  67.  * state
  68.  *-----------------------------------------------------------------*/
  69. virtual IString state () const;
  70. virtual IAddressRecord & setState (const IString iState);
  71.  
  72. /*------------------------------------------------------------------
  73.  * zip
  74.  *-----------------------------------------------------------------*/
  75. virtual IString zip () const;
  76. virtual IAddressRecord & setZip (const IString & iZip);
  77.  
  78.  
  79. private:
  80.    unsigned long dParentSize;
  81.    const unsigned long dMySize;
  82. };
  83.  
  84. /*----------------------------------------------------------------------------*/
  85. /* Resume compiler default packing.                                           */
  86. /*----------------------------------------------------------------------------*/
  87. #pragma pack()
  88.  
  89. #endif
  90.