home *** CD-ROM | disk | FTP | other *** search
- /*******************************************************************************
- * FILE NAME: Person.cpp *
- * *
- * DESCRIPTION: *
- * Class implementation of the class: *
- * Person- A person that can be added to an organization heirarchy *
- * ---------------------------------------------------------------------------- *
- * Warning: This file was generated by the VisualAge C++ Visual Builder. *
- * Modifications to this source file will be lost when the part is regenerated. *
- *******************************************************************************/
- #ifndef _INOTIFEV_
- #include <inotifev.hpp>
- #endif
-
- #ifndef _IOBSERVR_
- #include <iobservr.hpp>
- #endif
-
- #ifndef _ISTDNTFY_
- #include <istdntfy.hpp>
- #endif
-
- #ifndef _PERSON_
- #include "Person.hpp"
- #endif
-
- #ifndef _IVBDEFS_
- #include <ivbdefs.h>
- #endif
-
- #ifndef _ITRACE_
- #include <itrace.hpp>
- #endif
-
-
- #pragma export (Person::readyId)
- const INotificationId Person::readyId = "Person::readyId";
-
- //------------------------------------------------------------------------------
- // Person :: Person
- //------------------------------------------------------------------------------
- #pragma export (Person::Person(IString, IString, IString))
- Person::Person(IString name, IString bossName, IString phoneNumber)
- {
-
- initialize(name, bossName, phoneNumber);
- } //end constructor
-
-
- //------------------------------------------------------------------------------
- // Person :: ~Person
- //------------------------------------------------------------------------------
- #pragma export (Person::~Person())
- Person::~Person()
- {
-
- }
-
- //------------------------------------------------------------------------------
- // Person :: initializePart
- //------------------------------------------------------------------------------
- #pragma export (Person::initializePart())
- Person & Person::initializePart()
- {
- makeConnections();
- notifyObservers(INotificationEvent(readyId, *this));
- return *this;
- }
-
-
- //------------------------------------------------------------------------------
- // Person :: makeConnections
- //------------------------------------------------------------------------------
- #pragma export (Person::makeConnections())
- Boolean Person::makeConnections()
- {
- this->enableNotification();
-
- return true;
- }
-
-
- #include "person.cpv"
-