pmm  1.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Macros | Typedefs | Functions
pmm_argparser.h File Reference
#include "pmm_model.h"

Go to the source code of this file.

Data Structures

struct  pmm_view_options

Macros

#define PMM_VIEW_NULL   0
#define PMM_VIEW_PRINT_LIST   1
#define PMM_VIEW_DISPLAY_ROUTINE   2
#define PMM_VIEW_DISPLAY_FILE   3
#define PMM_MAX_PLOTS   32

Typedefs

typedef struct pmm_view_options PMM_View_Options

Functions

void usage ()
void parse_args (struct pmm_config *cfg, int argc, char **argv)
void usage_pmm_view ()
int parse_pmm_view_args (struct pmm_view_options *options, int argc, char **argv)

Macro Definition Documentation

#define PMM_MAX_PLOTS   32

pmm_view max plots allowed

Definition at line 34 of file pmm_argparser.h.

#define PMM_VIEW_DISPLAY_FILE   3

pmm_view print routine data mode

Definition at line 32 of file pmm_argparser.h.

#define PMM_VIEW_DISPLAY_ROUTINE   2

pmm_view plot routine mode

Definition at line 31 of file pmm_argparser.h.

#define PMM_VIEW_NULL   0

pmm_view unset operation mode

Definition at line 29 of file pmm_argparser.h.

#define PMM_VIEW_PRINT_LIST   1

pmm_view list routines mode

Definition at line 30 of file pmm_argparser.h.

Typedef Documentation

Function Documentation

void parse_args ( struct pmm_config cfg,
int  argc,
char **  argv 
)

Parse arguments for pmm building daemon.

Parameters
cfgpointer to config structure
argcnumber of command line arguments
argvpointer to command line arguments (array of character arrays)

Definition at line 73 of file pmm_argparser.c.

int parse_pmm_view_args ( struct pmm_view_options options,
int  argc,
char **  argv 
)

Parse arguments for pmm_view tool

Parameters
optionspointer to pmm_view options structure
argcnumber of command line arguments
argvpointer to command line arguments (array of character arrays)
Returns
0 on successful parsing, -1 on error

Definition at line 172 of file pmm_argparser.c.

void usage ( )

print command line usage for pmm building daemon

print command line usage for pmm_comp tool

Definition at line 52 of file pmm_argparser.c.

void usage_pmm_view ( )

print command line usage for pmm_view tool

Definition at line 136 of file pmm_argparser.c.