[ < ] | [ > ] | [ << ] | [ 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:
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).