Main Page   Class Hierarchy   Compound List   File List   Compound Members  

Application Class Reference

An application-class that can be inherited instead of using main(). More...

#include <mapplic.h>

Inheritance diagram for Application::

Object List of all members.

Public Methods

 Application ()
virtual void main (const Array< String > &params)
virtual void main ()
void readConfig (const String &filename)
const StringMap& paramMap () const
const Array<String>& params () const
void setParams (int argc, char **argv)

Protected Attributes

Array<String> mParams
StringMap mParamMap
int mArgc
char** mArgv
int mTried

Detailed Description

An application-class that can be inherited instead of using main().

If you inherit this, remember to link the app library with switch -lapp. The application framework automatically calls the main() method of this class.

NOTE: The applicatino MUST use the decl_dynamic macro to enable house-RTTI.

Definition at line 28 of file mapplic.h.


Member Function Documentation

void main ( ) [inline, virtual]
 

Always implement this OR the other main (const Array<String>&) above.

Definition at line 49 of file mapplic.h.

void main ( const Array< String > & params ) [inline, virtual]
 

Always implement this OR the other main () below.

OBSOLETE.

Parameters:
params   Parameters passed from command line. This method is obsolete because these parameters are now a member.

Definition at line 45 of file mapplic.h.

const StringMap & paramMap ( ) const [inline]
 

Returns a reference to the parameter map of the application.

Definition at line 57 of file mapplic.h.

const Array< String > & params ( ) const [inline]
 

Returns a reference to the parameter map of the application.

Definition at line 61 of file mapplic.h.

void readConfig ( const String & filename )
 

Reads a configuration file on top of the parameter map.


The documentation for this class was generated from the following file:
Generated at Tue Dec 4 19:53:28 2001 for MagiC++ by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001