Main Page   Modules   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

CmAppl Class Reference

Application Class. More...

Inheritance diagram for CmAppl:

CmMGUI

Public Methods

virtual void start (int argc, char **argv)=0
 The program's starting point for MGUI programs.


Static Public Methods

void end (int code)
 Terminates the program freeing allocated resources.


Protected Methods

 CmAppl (void)

Friends

void MGUIMain (int argc, char **argv)
 The program's starting point.


Detailed Description

Application Class.

Provides the application's starting and terminating methods.

The application program must define a derived instance to provide the pure virtual method start(). The program can be terminated at any point by calling the static method CmAppl::end(code);


Constructor & Destructor Documentation

CmAppl::CmAppl void    [protected]
 


Member Function Documentation

void CmAppl::end int    code [static]
 

Terminates the program freeing allocated resources.

This is the recommended method to close your MGUI application. It frees all resources allocated by the MGUI library and then calls the standard exit function passing it 'code' as exit code. It's a static method so you can call it from wherever you are in the program code.

virtual void CmAppl::start int    argc,
char **    argv
[pure virtual]
 

The program's starting point for MGUI programs.

It receives the main's ordinary arguments argc and argv.


Friends And Related Function Documentation

void MGUIMain int    argc,
char **    argv
[friend]
 

The program's starting point.

Due to compatibility problems with the Windows platform, an MGUI program cannot start with the standard main() function. This function must be provided by the application and it's called internally by the library at startup. The parameters received by the function are exactly the same as the ones used in the standard C main().


Generated on Sun Jun 29 13:03:07 2003 for MGui API by doxygen1.3-rc2