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

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