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

  1. #ifndef _IALSREC_
  2. #define _IALSREC_
  3. //****************************************************************************
  4. // IAliasRecord Class - C++ Header File (ialsrec.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:   IAliasRecord
  32. //
  33. // Purpose: Describes IAliasRecord
  34. //
  35. //**************************************************************************
  36. class _Export IAliasRecord : public IRecord
  37. {
  38. public:
  39.            IAliasRecord ();
  40.            IAliasRecord ( const IString & stringData );
  41.            IAliasRecord ( const IAliasRecord & aRecord );
  42.   virtual  ~IAliasRecord ();
  43.  
  44. IAliasRecord & operator = ( const IAliasRecord & aRecord );
  45. IAliasRecord & operator = ( const IString & aString );
  46.  
  47. /*------------------------------------------------------------------
  48.  * name
  49.  *-----------------------------------------------------------------*/
  50. virtual IString name () const;
  51. virtual IAliasRecord & setName (const IString & iName);
  52.  
  53. private:
  54.    unsigned long dParentSize;
  55.    const unsigned long dMySize;
  56. };
  57.  
  58. /*----------------------------------------------------------------------------*/
  59. /* Resume compiler default packing.                                           */
  60. /*----------------------------------------------------------------------------*/
  61. #pragma pack()
  62.  
  63. #endif
  64.