#include <analyse.h>
Inheritance diagram for Analyse:

Public Methods | |
| Analyse () | |
| virtual void | run (std::map< std::string, unity_t > *unity_map)=0 |
| virtual void | print (void)=0 |
| virtual void | free (void)=0 |
| virtual void | setReport (Report *r) |
| virtual Report * | getReport (void) |
| virtual | ~Analyse () |
Protected Attributes | |
| Report * | report |
This is the abstract base class of every analyse object. After filtering the input stream with a filter object, the this object make the analyse (...). that's the main reason for the name analyse ;-). A plugin (at the moment the analysePlugin object call first the function run(). After this one or more times print(). Finally it calling free() to cleanup unused memory.
Other plugins (current the reportPlugin Object) calling setReport to change the output report type before, after or between any of this tree function calls.
The filtered data in the unity_map must not change between the run() and the print() function call. You can also store this pointer to request details while print(). But it's possible that the funtions of this object are called many times in the order descibed above with different unity_map's.
|
|
Constructor of the Object. This constuctor here guarantee, that the report Pointer is initially 0. |
|
|
Virtual deconstuctor. |
|
|
This funcion should free unused memory (from map's etc.). Implemented in bmAnalyse, ltAnalyse, ltdAnalyse, mfAnalyse, mrAnalyse, mtAnalyse, and xtAnalyse. |
|
|
Get current selected report for this Object
|
|
|
This function printout the result of this analyse to the selected report object. Is no report object selected (report is a null pointer) - nothing should happens. (check also report first!). Implemented in bmAnalyse, ltAnalyse, ltdAnalyse, mfAnalyse, mrAnalyse, mtAnalyse, and xtAnalyse. |
|
|
This function should do all calculations for this analyse, and store the result for multible print() calls until someone call free() or destroy the object. Implemented in bmAnalyse, ltAnalyse, ltdAnalyse, mfAnalyse, mrAnalyse, mtAnalyse, and xtAnalyse. |
|
|
Set the output to a report object.
|
|
|
This is a pointer to the defaultreport used in print().
|
1.2.18