< previous page page_398 next page >

Page 398
LISTING 22.3 continued
d5ef64f4d3250b96ba5c07ca5bbc2f56.gif
155:   }
156:
157:   // int String::ConstructorCount = 0;
158:
159:   ostream& operator<<( ostream& theStream, String& theString)
160:   {
161:       theStream << theString.GetString();
162:       return theStream;
163:   }
164:
165:   class pAddress
166:   {
167:   public:
168:      pAddress(SERVICE theService,
169:               const String& theAddress,
170:               const String& theDisplay):
171:         itsService(theService),
172:         itsAddressString(theAddress),
173:         itsDisplayString(theDisplay)
174:         {}
175:      // pAddress(String, String);
176:      // pAddress();
177:      // pAddress (const pAddress&);
178:      ~pAddress(){}
179:      friend ostream& operator<<( ostream& theStream, pAddress& theAddress);
180:      String& GetDisplayString() { return itsDisplayString; }
181:   private:
182:      SERVICE itsService;
183:      String itsAddressString;
184:      String itsDisplayString;
185:   };
186:
187:   ostream& operator<<( ostream& theStream, pAddress& theAddress)
188:   {
189:       theStream << theAddress.GetDisplayString();
190:       return theStream;
191:   }
192:
193:   class PostMasterMessage
194:   {
195:   public:
196:     // PostMasterMessage();
197:
198:     PostMasterMessage(const pAddress& Sender,
199:                     const pAddress& Recipient,
200:                     const String& Subject,
201:                     const pDate& creationDate);
202:                     
d5ef64f4d3250b96ba5c07ca5bbc2f56.gif
continues

 
< previous page page_398 next page >

If you like this book, buy it!