Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PlugInFrontEnd Class Reference

Plugable frontend. More...

#include <pluginFrontEnd.h>

Inherits FrontEnd.

List of all members.

Public Methods

 PlugInFrontEnd ()
 PlugInFrontEnd (int argc, char** argv)
 ~PlugInFrontEnd ()
void init ()
 Initialization function. More...

void update ()
 Update function. More...

void displayUsers (int users)
 Display logged in Users. More...

void displayMatrices (int matrices)
 Display open matrices (OBSOLETE!!). More...

void displayDebugMessage (const char* msg)
 Display a debug message. More...


Detailed Description

Plugable frontend.

Definition at line 8 of file pluginFrontEnd.h.

00008 {
00009     public:
00010     PlugInFrontEnd ();
00011     PlugInFrontEnd (int argc, char** argv);
00012     ~PlugInFrontEnd ();
00013 
00014     void    init ();
00015     void    update ();
00016 
00017     void    displayUsers (int users);   // amount of users logged in
00018     void    displayMatrices (int matrices); // amount of active matrices
00019 
00020     void    displayDebugMessage (const char* msg);
00021 
00022     private:
00023 }

Constructor & Destructor Documentation

PlugInFrontEnd::PlugInFrontEnd ()

Definition at line 13 of file pluginFrontEnd.cpp.

00013 {
00014 
00015 }

PlugInFrontEnd::PlugInFrontEnd ( int argc,
char ** argv)

Definition at line 17 of file pluginFrontEnd.cpp.

00018 {
00019     UNUSED_ARGUMENT(argc);
00020     UNUSED_ARGUMENT(argv);
00021     PlugInFrontEnd ();
00022     }

PlugInFrontEnd::~PlugInFrontEnd ()

Definition at line 24 of file pluginFrontEnd.cpp.

00024 {
00025 }

Member Function Documentation

void PlugInFrontEnd::displayDebugMessage ( const char * msg) [virtual]

Display a debug message.

Parameters:
msg   the debug message

Reimplemented from FrontEnd.

Definition at line 84 of file pluginFrontEnd.cpp.

00085 {
00086     FEPList* tmp;
00087     tmp = FEPhead;
00088 
00089     while (tmp != NULL)
00090         {
00091         if ( tmp->active )
00092             tmp->plug->displayDebugMessage ( const_cast<char*>(msg) );
00093 
00094         tmp = tmp->next;
00095         }
00096     }

void PlugInFrontEnd::displayMatrices ( int matrices) [virtual]

Display open matrices (OBSOLETE!!).

Parameters:
matrices   number of open matrices

Reimplemented from FrontEnd.

Definition at line 70 of file pluginFrontEnd.cpp.

00071 {
00072     FEPList* tmp;
00073     tmp = FEPhead;
00074 
00075     while (tmp != NULL)
00076         {
00077         if ( tmp->active )
00078             tmp->plug->displayMatrices ( matrices );
00079 
00080         tmp = tmp->next;
00081         }
00082     }

void PlugInFrontEnd::displayUsers ( int users) [virtual]

Display logged in Users.

Parameters:
users   number of users to be displayed

Reimplemented from FrontEnd.

Definition at line 56 of file pluginFrontEnd.cpp.

00057 {
00058     FEPList* tmp;
00059     tmp = FEPhead;
00060 
00061     while (tmp != NULL)
00062         {
00063         if ( tmp->active )
00064             tmp->plug->displayUsers ( users );
00065 
00066         tmp = tmp->next;
00067         }
00068     }

void PlugInFrontEnd::init () [virtual]

Initialization function.

Reimplemented from FrontEnd.

Definition at line 28 of file pluginFrontEnd.cpp.

00028 {
00029     FEPList* tmp;
00030     tmp = FEPhead;
00031 
00032     fprintf ( stderr, "\ndoing init");
00033 
00034     while (tmp != NULL)
00035         {
00036         if ( tmp->active )
00037             tmp->plug->init ();
00038 
00039         tmp = tmp->next;
00040         }
00041     }

void PlugInFrontEnd::update () [virtual]

Update function.

Reimplemented from FrontEnd.

Definition at line 43 of file pluginFrontEnd.cpp.

00043 {
00044     FEPList* tmp;
00045     tmp = FEPhead;
00046 
00047     while (tmp != NULL)
00048         {
00049         if ( tmp->active )
00050             tmp->plug->update ();
00051 
00052         tmp = tmp->next;
00053         }
00054     }

The documentation for this class was generated from the following files:
Generated at Sat May 13 13:50:25 2000 for 3Dsia by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000