home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / treecnr.zip / Person.cpp next >
C/C++ Source or Header  |  1996-02-20  |  3KB  |  84 lines

  1. /*******************************************************************************
  2. * FILE NAME: Person.cpp                                                        *
  3. *                                                                              *
  4. * DESCRIPTION:                                                                 *
  5. *   Class implementation of the class:                                         *
  6. *     Person- A person that can be added to an organization heirarchy          *
  7. * ---------------------------------------------------------------------------- *
  8. * Warning: This file was generated by the VisualAge C++ Visual Builder.        *
  9. * Modifications to this source file will be lost when the part is regenerated. *
  10. *******************************************************************************/
  11. #ifndef _INOTIFEV_
  12. #include <inotifev.hpp>
  13. #endif
  14.  
  15. #ifndef _IOBSERVR_
  16. #include <iobservr.hpp>
  17. #endif
  18.  
  19. #ifndef _ISTDNTFY_
  20. #include <istdntfy.hpp>
  21. #endif
  22.  
  23. #ifndef _PERSON_
  24. #include "Person.hpp"
  25. #endif
  26.  
  27. #ifndef _IVBDEFS_
  28. #include <ivbdefs.h>
  29. #endif
  30.  
  31. #ifndef _ITRACE_
  32. #include <itrace.hpp>
  33. #endif
  34.  
  35.  
  36. #pragma export (Person::readyId)
  37. const INotificationId Person::readyId = "Person::readyId";
  38.  
  39. //------------------------------------------------------------------------------
  40. // Person :: Person
  41. //------------------------------------------------------------------------------
  42. #pragma export (Person::Person(IString, IString, IString))
  43. Person::Person(IString name, IString bossName, IString phoneNumber)
  44. {
  45.  
  46.    initialize(name, bossName, phoneNumber);
  47. }     //end constructor
  48.  
  49.  
  50. //------------------------------------------------------------------------------
  51. // Person :: ~Person
  52. //------------------------------------------------------------------------------
  53. #pragma export (Person::~Person())
  54. Person::~Person()
  55. {
  56.  
  57. }
  58.  
  59. //------------------------------------------------------------------------------
  60. // Person :: initializePart
  61. //------------------------------------------------------------------------------
  62. #pragma export (Person::initializePart())
  63. Person & Person::initializePart()
  64. {
  65.    makeConnections();
  66.    notifyObservers(INotificationEvent(readyId, *this));
  67.    return *this;
  68. }
  69.  
  70.  
  71. //------------------------------------------------------------------------------
  72. // Person :: makeConnections
  73. //------------------------------------------------------------------------------
  74. #pragma export (Person::makeConnections())
  75. Boolean Person::makeConnections()
  76. {
  77.    this->enableNotification();
  78.  
  79.    return true;
  80. }
  81.  
  82.  
  83. #include "person.cpv"
  84.