Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Examples

Gnuplot_SIM Class Template Reference
[User interface]

#include <gnuplot_SIM.h>

Inherits GnuplotText< T >.

Inheritance diagram for Gnuplot_SIM:

Inheritance graph
[legend]
Collaboration diagram for Gnuplot_SIM:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T>
class Gnuplot_SIM< T >

special class for SIM program it knows how to write on SIM's display

you have to extend the file user.c

Example:

global:

Gnuplot<std::string> gp(100);
Gnuplot_SIM<std::string> textdlg(&gp);
UserCommand:
 void UserCommand (struct Robot *robot, char *text){

    if (text) {
     switch (*text) {
            . . .
           case 'G':
           textdlg.command(text+1);
                break;
            . . .
       }
    } 
}
DrawUserInfo:
void DrawUserInfo (struct Robot *robot, u_char info, u_char page){
   switch (info){
        . . .
   case 2:
     switch (page){
              case 1: textdlg.info();
     }
       break;
        . . .
    }
}
in user_info.h you need to change...
#define NUMBER_OF_INFO  2
#define PAGES_INFO_2    2   
#define TITLE_INFO_2    "Gnuplot"

Definition at line 62 of file gnuplot_SIM.h.

Public Member Functions

 Gnuplot_SIM (Gnuplot< T > *gp)
void list ()
 list all channels on user display
void info ()
 show a list of user commands


Constructor & Destructor Documentation

Gnuplot_SIM Gnuplot< T > *  gp  )  [inline]
 

Definition at line 65 of file gnuplot_SIM.h.


Member Function Documentation

void info  )  [inline]
 

show a list of user commands

Definition at line 103 of file gnuplot_SIM.h.

void list  )  [inline, virtual]
 

list all channels on user display

Implements GnuplotText.

Definition at line 69 of file gnuplot_SIM.h.


The documentation for this class was generated from the following file:
Generated on Wed Apr 6 10:22:34 2005 for Gnuplot by doxygen 1.3.8