home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / g / gina15.zip / demos / Address.h < prev    next >
C/C++ Source or Header  |  1992-02-27  |  2KB  |  74 lines

  1. // This may look like C code, but it is really -*- C++ -*-
  2.  
  3. //   Module      : Address.h   Version 1.8
  4. //   LastSCCS    : 7/29/91  18:00:05
  5. //   LastEdit    : "Thu Mar  7 11:20:52 1991"
  6. //   Description : 
  7. //   Author      : 
  8. //   Copyright   : GMD Schloss Birlinghoven
  9.  
  10. #ifndef Address_H
  11. #define Address_H
  12.  
  13. #include "Object.h"
  14. #include "String.h"
  15. #include "Date.h"
  16. #include "Integer.h"
  17.  
  18. class Address: public VIRTUAL Object {
  19.     DECLARE_MEMBERS(Address);
  20.  
  21.   public:
  22.     Address(const String*, const String*, const String*, const String*,
  23.         const String*, const String*, const String*, const String*,
  24.         const String*, const String*, const Date*, const Date*,
  25.         const Integer* key_number, bool copy_members = YES );
  26.     
  27.     ~Address();
  28.     
  29.     String  *LastName() const     { return the_last_name; };
  30.     String  *FirstNames() const   { return the_first_names; };
  31.     String  *Street() const       { return the_street; };
  32.     String  *HouseNumber() const  { return the_house_number; };
  33.     String  *CountryCode() const  { return the_country_code; };
  34.     String  *CityCode() const     { return the_city_code; };
  35.     String  *City() const         { return the_city; };
  36.     String  *LocalArea() const    { return the_local_area; };
  37.     String  *Telephone() const    { return the_telephone; };
  38.     String  *Email() const        { return the_email; };
  39.     Date    *CreationDate() const { return the_creation_date; };
  40.     Date    *LastModified() const { return the_last_modified; };
  41.     Integer *KeyNumber() const    { return the_key_number; };
  42.   private:
  43.     // New member variables
  44.     String  *the_last_name;
  45.     String  *the_first_names;
  46.     String  *the_street;
  47.     String  *the_house_number;
  48.     String  *the_country_code;
  49.     String  *the_city_code;
  50.     String  *the_city;
  51.     String  *the_local_area;
  52.     String  *the_telephone;
  53.     String  *the_email;
  54.     Date    *the_creation_date;
  55.     Date    *the_last_modified;
  56.     Integer *the_key_number;
  57.   protected:        // storer() functions for object I/O
  58.     virtual void storer(OIOofd&) const;
  59.     virtual void storer(OIOout&) const;
  60.   public:
  61.     bool operator==(const Address&) const;
  62.     bool operator!=(const Address& a) const
  63.         { return !(*this==a); }
  64.     virtual    int compare(const Object&) const;
  65.     virtual void deepenShallowCopy();
  66.     virtual unsigned hash() const;
  67.     virtual bool isEqual(const Object&) const;
  68.     virtual void printOn(ostream& strm =cout) const;
  69.     virtual const Class* species() const;
  70. };
  71.  
  72. #endif Address_H
  73.  
  74.