Classes | Defines | Typedefs | Functions | Variables

plargs.c File Reference

#include "plplotP.h"
#include <ctype.h>

Go to the source code of this file.

Classes

struct  PLOptionInfo
struct  DrvOptCmd

Defines

#define OPTMAX   1024
#define PL_MAX_OPT_TABLES   10

Typedefs

typedef struct DrvOptCmd DrvOptCmd

Functions

static int ParseOpt (int *, const char ***, int *, const char ***, PLOptionTable *)
static int ProcessOpt (const char *, PLOptionTable *, int *, const char ***, int *)
static int GetOptarg (const char **, int *, const char ***, int *)
static void Help (void)
static void Syntax (void)
static int opt_h (const char *, const char *, void *)
static int opt_v (const char *, const char *, void *)
static int opt_verbose (const char *, const char *, void *)
static int opt_debug (const char *, const char *, void *)
static int opt_hack (const char *, const char *, void *)
static int opt_dev (const char *, const char *, void *)
static int opt_o (const char *, const char *, void *)
static int opt_geo (const char *, const char *, void *)
static int opt_a (const char *, const char *, void *)
static int opt_jx (const char *, const char *, void *)
static int opt_jy (const char *, const char *, void *)
static int opt_mar (const char *, const char *, void *)
static int opt_ori (const char *, const char *, void *)
static int opt_freeaspect (const char *, const char *, void *)
static int opt_portrait (const char *, const char *, void *)
static int opt_width (const char *, const char *, void *)
static int opt_bg (const char *, const char *, void *)
static int opt_ncol0 (const char *, const char *, void *)
static int opt_ncol1 (const char *, const char *, void *)
static int opt_fam (const char *, const char *, void *)
static int opt_fsiz (const char *, const char *, void *)
static int opt_fbeg (const char *, const char *, void *)
static int opt_finc (const char *, const char *, void *)
static int opt_fflen (const char *, const char *, void *)
static int opt_bufmax (const char *, const char *, void *)
static int opt_nopixmap (const char *, const char *, void *)
static int opt_db (const char *, const char *, void *)
static int opt_np (const char *, const char *, void *)
static int opt_px (const char *, const char *, void *)
static int opt_py (const char *, const char *, void *)
static int opt_wplt (const char *, const char *, void *)
static int opt_drvopt (const char *, const char *, void *)
static int opt_plserver (const char *, const char *, void *)
static int opt_plwindow (const char *, const char *, void *)
static int opt_auto_path (const char *, const char *, void *)
static int opt_server_name (const char *, const char *, void *)
static int opt_tk_file (const char *, const char *, void *)
static int opt_dpi (const char *, const char *, void *)
static int opt_dev_compression (const char *, const char *, void *)
static int opt_cmap0 (const char *, const char *, void *)
static int opt_cmap1 (const char *, const char *, void *)
static int opt_locale (const char *, const char *, void *)
static int opt_eofill (const char *, const char *, void *)
int c_plsetopt (const char *opt, const char *optarg)
int plSetOpt (const char *opt, const char *optarg)
int plMergeOpts (PLOptionTable *options, const char *name, const char **notes)
void plClearOpts (void)
void plResetOpts (void)
int c_plparseopts (int *p_argc, const char **argv, PLINT mode)
void plSetUsage (const char *program_string, const char *usage_string)
void plOptUsage (void)
int plParseDrvOpts (DrvOpt *acc_opt)
void plHelpDrvOpts (DrvOpt *acc_opt)
void plP_FreeDrvOpts ()

Variables

static const char * program = NULL
static const char * usage = NULL
static int mode_full
static int mode_quiet
static int mode_nodelete
static int mode_showall
static int mode_noprogram
static int mode_nodash
static int mode_skip
static char opttmp [OPTMAX]
static PLOptionTable ploption_table []
static const char * plplot_notes []
PLOptionInfo ploption_info_default
PLOptionInfo ploption_info [PL_MAX_OPT_TABLES]
static DrvOptCmd drv_opt = { NULL, NULL, NULL }
static int tables = 1

Define Documentation

#define OPTMAX   1024

Definition at line 179 of file plargs.c.

#define PL_MAX_OPT_TABLES   10

Definition at line 692 of file plargs.c.


Typedef Documentation

typedef struct DrvOptCmd DrvOptCmd

Function Documentation

int c_plparseopts ( int *  p_argc,
const char **  argv,
PLINT  mode 
)

Definition at line 831 of file plargs.c.

int c_plsetopt ( const char *  opt,
const char *  optarg 
)

Definition at line 723 of file plargs.c.

static int GetOptarg ( const char **  poptarg,
int *  p_myargc,
const char ***  p_argv,
int *  p_argc 
) [static]

Definition at line 1138 of file plargs.c.

static void Help ( void   )  [static]

Definition at line 1266 of file plargs.c.

static int opt_a ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1595 of file plargs.c.

static int opt_auto_path ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2170 of file plargs.c.

static int opt_bg ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1723 of file plargs.c.

static int opt_bufmax ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2110 of file plargs.c.

static int opt_cmap0 ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2388 of file plargs.c.

static int opt_cmap1 ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2401 of file plargs.c.

static int opt_db ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2096 of file plargs.c.

static int opt_debug ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1524 of file plargs.c.

static int opt_dev ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1553 of file plargs.c.

static int opt_dev_compression ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2366 of file plargs.c.

static int opt_dpi ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2325 of file plargs.c.

static int opt_drvopt ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1866 of file plargs.c.

static int opt_eofill ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2441 of file plargs.c.

static int opt_fam ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1949 of file plargs.c.

static int opt_fbeg ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2023 of file plargs.c.

static int opt_fflen ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2053 of file plargs.c.

static int opt_finc ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2038 of file plargs.c.

static int opt_freeaspect ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1651 of file plargs.c.

static int opt_fsiz ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1972 of file plargs.c.

static int opt_geo ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2216 of file plargs.c.

static int opt_h ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1478 of file plargs.c.

static int opt_hack ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1539 of file plargs.c.

static int opt_jx ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1609 of file plargs.c.

static int opt_jy ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1623 of file plargs.c.

static int opt_locale ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2414 of file plargs.c.

static int opt_mar ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1581 of file plargs.c.

static int opt_ncol0 ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1798 of file plargs.c.

static int opt_ncol1 ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1812 of file plargs.c.

static int opt_nopixmap ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2082 of file plargs.c.

static int opt_np ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2068 of file plargs.c.

static int opt_o ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1567 of file plargs.c.

static int opt_ori ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1637 of file plargs.c.

static int opt_plserver ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2138 of file plargs.c.

static int opt_plwindow ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2152 of file plargs.c.

static int opt_portrait ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1679 of file plargs.c.

static int opt_px ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2184 of file plargs.c.

static int opt_py ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2198 of file plargs.c.

static int opt_server_name ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2124 of file plargs.c.

static int opt_tk_file ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 2302 of file plargs.c.

static int opt_v ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1494 of file plargs.c.

static int opt_verbose ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1510 of file plargs.c.

static int opt_width ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1693 of file plargs.c.

static int opt_wplt ( const char *  opt,
const char *  optarg,
void *  client_data 
) [static]

Definition at line 1826 of file plargs.c.

static int ParseOpt ( int *  p_myargc,
const char ***  p_argv,
int *  p_argc,
const char ***  p_argsave,
PLOptionTable option_table 
) [static]

Definition at line 965 of file plargs.c.

void plClearOpts ( void   ) 

Definition at line 804 of file plargs.c.

void plHelpDrvOpts ( DrvOpt acc_opt  ) 

Definition at line 1422 of file plargs.c.

int plMergeOpts ( PLOptionTable options,
const char *  name,
const char **  notes 
)

Definition at line 758 of file plargs.c.

void plOptUsage ( void   ) 

Definition at line 1196 of file plargs.c.

void plP_FreeDrvOpts (  ) 

Definition at line 1441 of file plargs.c.

int plParseDrvOpts ( DrvOpt acc_opt  ) 

Definition at line 1346 of file plargs.c.

void plResetOpts ( void   ) 

Definition at line 816 of file plargs.c.

int plSetOpt ( const char *  opt,
const char *  optarg 
)

Definition at line 729 of file plargs.c.

void plSetUsage ( const char *  program_string,
const char *  usage_string 
)

Definition at line 1180 of file plargs.c.

static int ProcessOpt ( const char *  opt,
PLOptionTable tab,
int *  p_myargc,
const char ***  p_argv,
int *  p_argc 
) [static]

Definition at line 1017 of file plargs.c.

static void Syntax ( void   )  [static]

Definition at line 1216 of file plargs.c.


Variable Documentation

DrvOptCmd drv_opt = { NULL, NULL, NULL } [static]

Definition at line 711 of file plargs.c.

int mode_full [static]

Definition at line 169 of file plargs.c.

int mode_nodash [static]

Definition at line 174 of file plargs.c.

int mode_nodelete [static]

Definition at line 171 of file plargs.c.

int mode_noprogram [static]

Definition at line 173 of file plargs.c.

int mode_quiet [static]

Definition at line 170 of file plargs.c.

int mode_showall [static]

Definition at line 172 of file plargs.c.

int mode_skip [static]

Definition at line 175 of file plargs.c.

char opttmp[OPTMAX] [static]

Definition at line 180 of file plargs.c.

PLOptionInfo ploption_info[PL_MAX_OPT_TABLES]
Initial value:
 {
    {
        ploption_table,
        "PLplot options",
        plplot_notes
    }
}

Definition at line 693 of file plargs.c.

Initial value:
 {
    ploption_table,
    "PLplot options",
    plplot_notes
}

Definition at line 686 of file plargs.c.

Definition at line 233 of file plargs.c.

const char* plplot_notes[] [static]
Initial value:
 {
    "All parameters must be white-space delimited.  Some options are driver",
    "dependent.  Please see the PLplot reference document for more detail.",
    NULL
}

Definition at line 659 of file plargs.c.

const char* program = NULL [static]

Definition at line 166 of file plargs.c.

int tables = 1 [static]

Definition at line 713 of file plargs.c.

const char* usage = NULL [static]

Definition at line 167 of file plargs.c.