#include <SystemPrinter.h>
Public Member Functions | |
| SystemPrinter (const RelationAttributeInfo *attributes, int count) | |
| Constructor for SystemPrinter.   | |
| SystemPrinter (const char *relName, const AttributeInfo *attributes, int count) | |
| Constructor for SystemPrinter.   | |
| ~SystemPrinter () | |
| Destructor for SystemPrinter.  | |
| void | printHeader () | 
| Prints a header for the table.   | |
| void | printRecord (const char *data) | 
| Prints a record (tuple).   | |
| void | printFooter () | 
| Prints footer information.   | |
| SystemPrinter::SystemPrinter | ( | const RelationAttributeInfo * | attributes, | |
| int | count | |||
| ) | 
Constructor for SystemPrinter.
| attributes | Array of <attribute, relation name> pairs | |
| count | Length of the array | 
| SystemPrinter::SystemPrinter | ( | const char * | relName, | |
| const AttributeInfo * | attributes, | |||
| int | count | |||
| ) | 
Constructor for SystemPrinter.
| relName | The name of the relation | |
| attributes | Array of attribute descriptors | |
| count | Length of the array | 
| void SystemPrinter::printHeader | ( | ) | 
Prints a header for the table.
This method prints header information to stdout. Each attribute name is printed, along with its relation name. A row of dashes is then printed. This method should be called once, before printing any actual tuples.
| void SystemPrinter::printRecord | ( | const char * | data | ) | 
Prints a record (tuple).
| data | A pointer to the record data | 
| void SystemPrinter::printFooter | ( | ) | 
Prints footer information.
This method prints to stdout footer information about the number of records printed via calls to SystemPrinter::printRecord. This method should be called once, after the last record has been printed.
 1.5.6