ASCII Print Driver
Topics
:These ASCII print driver functions are used by database applications to print database tables and other formatted data to ASCII text files.
// Constants for print functions const int asPrintCols = 80; // Columns for portrait print outs const int asPrintColsLong = 132; // Columns for landscape print outs const int asPrintRows = 25; // Rows for portrait print outs const int asPrintRowsLong = 25; // Rows for landscape print outs // Control characters const char asLineFeed = '\n';
void ASPrint(const char *s, ostream &stream, int offset, int pos = 0,const char pad = ' ')
- Standalone function used to print a null terminated string to the stream starting at the specified position or the current position if the "pos" variable equals zero. The offset variable specifies the number of character to pad after the text is printed. -Overload used to print a null terminated string to the stream starting and filters any unwanted characters specified by the filter variable.void ASPrint(const char c, ostream &stream, int offset, int pos = 0,const char pad = ' ')
- Overload used to print a single character to the stream.void ASPrint(int val, ostream &stream, int offset, int pos = 0,const char pad = ' ')
- Overload used to print an integer value to the stream.void ASPrint(long val, ostream &stream, int offset, int pos = 0,const char pad = ' ')
- Overload used to print a long integer value to the stream.void ASPrint(double val, ostream &stream, int offset, int pos = 0,const char pad = ' ')
- Overload used to print an floating point value to the stream.
End Of Document |