#include <report.h>
Inheritance diagram for Report:

Public Types | |
| enum | reportType_e { TABLE } |
| All report types. More... | |
| enum | colTyp_e { COUNTER, STRING, INTEGER, FLOAT, PERCENT, DATE } |
| All column types. More... | |
| enum | colStyle_e { NONE, ROUND, RECT, QUOTE } |
| Styles for every column. More... | |
| enum | colAlign_e { LEFT, RIGHT } |
| Aligments for every column. More... | |
| enum | { SUM = 1 } |
| Addiotional Flag for special views. More... | |
Public Methods | |
| Report () | |
| virtual void | startNewReport (const std::string &title, const reportType_e reportType)=0 |
| virtual void | addCol (const int colSize, const colTyp_e colTyp, const colAlign_e colAlign, const std::string &colTitle, const colStyle_e colStyle, const unsigned long colFlags=0) |
| virtual void | printPageHeader (void)=0 |
| virtual void | printHeader (void)=0 |
| virtual void | printField (const std::string &field)=0 |
| virtual void | printField (const long field)=0 |
| virtual void | printField (const double field)=0 |
| virtual void | skipField (const bool realline=true)=0 |
| virtual void | printFooter (void)=0 |
| virtual void | printPageFooter (void)=0 |
| virtual void | setOstream (std::ostream *newos) |
| virtual std::ostream * | getOstream (void) |
| virtual | ~Report () |
Protected Methods | |
| std::string | getDateStr (time_t t) |
| int | getDateLenght (void) |
Protected Attributes | |
| std::ostream * | os |
| std::list< col_t > | col_list |
| std::list< col_t >::iterator | ci |
| long | lc |
| std::string | Title |
| reportType_e | Type |
Private Methods | |
| void | checkDateformat (void) |
Private Attributes | |
| std::string | dateformat |
| int | datesize |
The is the abstract report class. Every report is itherited from this class.
|
|
Addiotional Flag for special views.
|
|
|
Aligments for every column.
|
|
|
Styles for every column.
|
|
|
All column types.
|
|
|
All report types.
|
|
|
The constructor sets the output stream pointer default to 0. Please check this in every function implementation, for security reasons. |
|
|
The virtual deconstructor. |
|
||||||||||||||||||||||||||||
|
Is the report type a "table", after starting a new Report (call startNewReport), you must add every column of the table with this function.
|
|
|
|
|
|
Check how many chars the datestring need. |
|
|
Convert a unix timestamp to a string. |
|
|
This function is only used by some Plugins. Don't use it in analyse modules! |
|
|
Implemented in asciiReport, and htmlReport. |
|
|
Implemented in asciiReport, and htmlReport. |
|
|
If you create a Table, after setup all columns and calling printHeader, you must fill every Field auf the table (except autofilled-colums) with the right value from left to right, top to bottom. Implemented in asciiReport, and htmlReport. |
|
|
After the last line of the table, call this function to create perhaps a footer. Implemented in asciiReport, and htmlReport. |
|
|
After setup all columns with addCol, you must call this function. It's possible this function creates a header for the Report. Implemented in asciiReport, and htmlReport. |
|
|
Generate a final Footer before closing a stream Implemented in asciiReport, and htmlReport. |
|
|
Gererate a page Header for one or more single Reports Implemented in asciiReport, and htmlReport. |
|
|
This function is only used by some Plugins. Don't use it in analyse modules! |
|
|
If the Field empty, call this function. You can choose between a realline or not. See the examples in the current analyse modules. Implemented in asciiReport, and htmlReport. |
|
||||||||||||
|
This function must be called first, before any other function is called. With this, important parameters would be set.
Implemented in asciiReport, and htmlReport. |
|
|
Pointer to the current column. |
|
|
This is the list used for column declarations. |
|
|
|
|
|
|
|
|
Linecounter. |
|
|
Pointer to the default Output stream. |
|
|
The string for the Report title. |
|
|
The report Type. |
1.2.18