VVContactRepository Constructor
Let’s look closely at the constructor for VVContactRepository found in the file conrep.cpp. This constructor sets the stage for manipulating the pool of customers.
VVContactRepository::VVContactRepository
(const RWDBDatabase& theDB,
const RWCString& theTableName) //1
: aDB_(theDB) //2
, table_(aDB_.table(theTableName)) //3
, nameColumn_(table_["name"]) //4
, idColumn_(table_["ID"])
, addressColumn_(table_["address"])
, cityColumn_(table_["city"])
, stateColumn_(table_["state"])
, zipColumn_(table_["zip"])
, phoneColumn_(table_["phone"])
{
; //5
}