Class CStatisticsTable

#include "CStatisticsTable.h"

CStatisticsTable encapsulates the LStatisticsTable structure defined in laygodef.h. It is a "read only" class. If successful, the CProtocolService method GetStatistics() returns a pointer to a newly allocated CStatisticsTable. The application is responsible for deleting the table when it is done with it.

CStatisticsTable * table = service.GetStatistics();

if (table != 0)
{
    DisplayStatisticsTable(table);

    delete table;
}
else
{
    cerr << "Failure requesting statistics table: "
         << service.GetLastErrorMessage()
         << endl;
}