VVContactRepository::mailingLabels
The invocation of the mailingLabels() member function on //18 above does most of the work in this tutorial. The source code of this member function, from the file conrep.cpp is shown here:
VVContactRepository&
VVContactRepository::mailingLabels (ostream& o,
const RWDBCriterion& criterion) //1
{
RWDBReader aReader = reader(criterion); //2
VVContact aContact; //3
while (aReader()) { //4
aReader >> aContact; //5
aContact.mailingLabel (o); //6
o << endl << endl; //7
}
return *this; //8
}