MainProgram Class Reference

Main program scheleton. It control the flow of the program. More...

#include <MainProgram.h>

Inheritance diagram for MainProgram:

Inheritance graph
[legend]
Collaboration diagram for MainProgram:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MainProgram (ThreadManager *MTHREAD)
 ~MainProgram ()
void run ()
 Run the program.

Detailed Description

Main program scheleton. It control the flow of the program.

There is only one istance of this class. It is responsable to load the setting files, call the Init class, "speack" with the Scheduler and finally end the program.

Author:
Antonello Lobianco

Definition at line 43 of file MainProgram.h.


Constructor & Destructor Documentation

MainProgram ( ThreadManager MTHREAD  ) 

Definition at line 26 of file MainProgram.cpp.

~MainProgram (  ) 

Definition at line 39 of file MainProgram.cpp.


Member Function Documentation

void run (  ) 

Run the program.

This is the main call of the program.
It firstly create the objects (and keep track of them trough pointers) of the main functional objects of the program.
Then it call the INIT object to do its jobs and when it ends, it gives control to SCD (Scheduler) for the year loops.
Finally it clean-up and returns.

Definition at line 50 of file MainProgram.cpp.

Referenced by ThreadManager::run(), and ThreadManager::runFromConsole().

Here is the caller graph for this function:


The documentation for this class was generated from the following files: