home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / strgen.zip / customer.cpv < prev    next >
Text File  |  1995-11-02  |  1KB  |  70 lines

  1.  
  2.  
  3. // Feature source code generation begins here...
  4. INotificationId Customer::NameId = "Customer::name";
  5. INotificationId Customer::StreetId = "Customer::street";
  6. INotificationId Customer::CityId = "Customer::city";
  7. INotificationId Customer::PhoneId = "Customer::phone";
  8.  
  9. IString Customer::Name() const
  10. {
  11.   return iName;
  12. }
  13.  
  14. Customer& Customer::setName(const IString& aName)
  15. {
  16.   if (!(iName == aName))
  17.   {
  18.     iName = aName;
  19.     notifyObservers(INotificationEvent(Customer::NameId, *this));
  20.   } // endif
  21.   return *this;
  22. }
  23.  
  24. IString Customer::Street() const
  25. {
  26.   return iStreet;
  27. }
  28.  
  29. Customer& Customer::setStreet(const IString& aStreet)
  30. {
  31.   if (!(iStreet == aStreet))
  32.   {
  33.     iStreet = aStreet;
  34.     notifyObservers(INotificationEvent(Customer::StreetId, *this));
  35.   } // endif
  36.   return *this;
  37. }
  38.  
  39. IString Customer::City() const
  40. {
  41.   return iCity;
  42. }
  43.  
  44. Customer& Customer::setCity(const IString& aCity)
  45. {
  46.   if (!(iCity == aCity))
  47.   {
  48.     iCity = aCity;
  49.     notifyObservers(INotificationEvent(Customer::CityId, *this));
  50.   } // endif
  51.   return *this;
  52. }
  53.  
  54. IString Customer::Phone() const
  55. {
  56.   return iPhone;
  57. }
  58.  
  59. Customer& Customer::setPhone(const IString& aPhone)
  60. {
  61.   if (!(iPhone == aPhone))
  62.   {
  63.     iPhone = aPhone;
  64.     notifyObservers(INotificationEvent(Customer::PhoneId, *this));
  65.   } // endif
  66.   return *this;
  67. }
  68.  
  69. // Feature source code generation ends here.
  70.