1 |
// Vance Thrift and Biller File Utility 2 |
2 |
// |
3 |
// Douglas Thrift |
4 |
// |
5 |
// $Id: ScanUtility.cxx,v 1.2 2003/08/17 03:55:39 douglas Exp $ |
6 |
|
7 |
#include "ScanUtility.h" |
8 |
|
9 |
void ScanUtility::run(void) |
10 |
{ |
11 |
multimap<unsigned, string> clients; |
12 |
|
13 |
clients.insert(pair<unsigned, string>(12345, "Thrift, Douglas W.")); |
14 |
clients.insert(pair<unsigned, string>(123, "McConica, John")); |
15 |
clients.insert(pair<unsigned, string>(456, "MacDonald, Joe")); |
16 |
clients.insert(pair<unsigned, string>(789, "O'Neil, Paul")); |
17 |
clients.insert(pair<unsigned, string>(100, "Haley, Robert Jr.")); |
18 |
clients.insert(pair<unsigned, string>(99, "Haley, Robert Sr.")); |
19 |
clients.insert(pair<unsigned, string>(567, "Woodburn, Douglas II.")); |
20 |
clients.insert(pair<unsigned, string>(567, "Woodburn, Douglas III.")); |
21 |
clients.insert(pair<unsigned, string>(897, "De Groote, Fred IV.")); |
22 |
|
23 |
for (multimap<unsigned, string>::iterator itor = clients.begin(); itor != |
24 |
clients.end(); itor++) |
25 |
{ |
26 |
IndividualClient client; |
27 |
|
28 |
client.setNumber(itor->first); |
29 |
client.setName(itor->second); |
30 |
client.setFile(client.getFile()); |
31 |
|
32 |
cout << client.getName() << "\n" |
33 |
<< client.getNumber() << "\n"; |
34 |
} |
35 |
} |