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

  1. #ifndef _IALIAS_
  2. #define _IALIAS_
  3. /******************************************************************************
  4. * .FILE:        ialias.hpp                                                    *
  5. *                                                                             *
  6. * .DESCRIPTION: Header file for the class IAlias                              *
  7. *                                                                             *
  8. * .CLASSES:     IAlias                                                        *
  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 <istdntfy.hpp>             //Parent of IStandardNotifier
  28. #include <istring.hpp>
  29.  
  30. //Forward class references
  31.  
  32.  
  33. //**************************************************************************
  34. // Class:   IAlias
  35. //
  36. // Purpose: Describes IAlias Class.
  37. //   This class defines Alias objects for use in applications such as the
  38. //      Police Rap Sheet.
  39. //   These objects hold and manage all the data relevant to a person's alias.
  40. //
  41. //**************************************************************************
  42. class IVBSAMP_IMPORT IAlias : public IStandardNotifier
  43. {
  44.  
  45. public:
  46.  
  47. /*---------------------  CONSTRUCTORS/DESTRUCTORS  ----------------
  48.  *-----------------------------------------------------------------*/
  49. IAlias();
  50. virtual  ~IAlias();
  51.  
  52.  
  53. /*---------------------  NOTIFICATION EVENTS  ----------------------
  54.  | These INotificationId strings are used for all notifications that
  55.  | this class provides to its observers:
  56.  |     -aliasId            Notification identifier provided to
  57.  |                         observers when the alias attribute changes.
  58.  *-----------------------------------------------------------------*/
  59. static INotificationId aliasId;
  60.  
  61.  
  62. /*---------------------  ATTRIBUTES  -------------------------------
  63.  | The following members are for accessing the attributes of this class:
  64.  |     -alias              Returns the alias attribute.
  65.  |     -setAlias           Sets the alias attribute.
  66.  *-----------------------------------------------------------------*/
  67. virtual IString
  68.    alias() const;
  69. virtual IAlias &
  70.    setAlias(const IString & aAlias);
  71.  
  72.  
  73. /*---------------------  ACTIONS   ---------------------------------
  74.  | asString    Formatted string for listbox and debugging output.
  75.  *-----------------------------------------------------------------*/
  76. virtual IString
  77.    asString() const;
  78.  
  79.  
  80. /*---------------------  OPERATORS   -------------------------------
  81.  *-----------------------------------------------------------------*/
  82. Boolean
  83.    operator ==(const IAlias & value) const;
  84.    operator ==(const IAlias * value) const;
  85.    operator !=(const IAlias & value) const;
  86.    operator !=(const IAlias * value) const;
  87.  
  88. protected:
  89.  
  90. private:
  91. /*---------------------  PRIVATE MEMBER DATA  ---------------------
  92.  *-----------------------------------------------------------------*/
  93.    IString dAlias;
  94.  
  95. };   //IAlias
  96.  
  97. #endif
  98.