manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.7 mglCommand class

Structure describes MGL command, its name, short description, executable and export functions. The structure is used by mglParse and is defined in #include <mgl/mgl_parse.h>.

Parameter of mglCommand: const wchar_t * name

Name of command.

Parameter of mglCommand: const wchar_t * desc

Short command description (can be NULL).

Parameter of mglCommand: const wchar_t * form

Format of command arguments (can be NULL).

Parameter of mglCommand: int (* exec )(mglGraph *gr, long n, mglArg *a, int k[10])const wchar_t *

Function for executing (plotting) the command using grapher gr and having n-th arguments a. Function must return 0 if all is OK; or 1 if arguments are wrong.

Parameter of mglCommand: void (* save )(wchar_t out[1024], long n, mglArg *a, int k[10])const wchar_t *

Function for exporting in C++ (can be NULL).


© manpagez.com 2000-2024
Individual documents may contain additional copyright information.