VVContactRepository::mailingLabels
Now that the construction of the VVContactRepository instance is complete, the next step in the main routine program was to call the mailingLabels() member function. Here is the source code for VVContactRepository::mailingLabels() from the file conrep.cpp and the description of the code:
VVContactRepository&
VVContactRepository::mailingLabels(ostream& o) { //1
RWDBSelector select = aDB_.selector(); //2
select << table_; //3
select.orderBy(nameColumn_); //4
RWDBReader aReader = select.reader(); //5
VVContact aContact; //6
while (aReader()) { //7
aReader >> aContact; //8
aContact.mailingLabel(o); //9
o << endl << endl; //10
}
return *this; //11
}