pmm  1.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
pmm_argparser.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008-2010 Robert Higgins
3  Author: Robert Higgins <robert.higgins@ucd.ie>
4 
5  This file is part of PMM.
6 
7  PMM is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  PMM is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with PMM. If not, see <http://www.gnu.org/licenses/>.
19 */
20 #ifndef PMM_ARGPARSER_H_
21 #define PMM_ARGPARSER_H_
22 
23 #if HAVE_CONFIG_H
24 #include "config.h"
25 #endif
26 
27 #include "pmm_model.h" // for pmm_config
28 
29 #define PMM_VIEW_NULL 0 /*!< pmm_view unset operation mode */
30 #define PMM_VIEW_PRINT_LIST 1 /*!< pmm_view list routines mode */
31 #define PMM_VIEW_DISPLAY_ROUTINE 2 /*!< pmm_view plot routine mode */
32 #define PMM_VIEW_DISPLAY_FILE 3 /*!< pmm_view print routine data mode */
33 
34 #define PMM_MAX_PLOTS 32 /*!< pmm_view max plots allowed */
35 
36 typedef struct pmm_view_options {
37  int action;
42  int plot_params[2];
44  int plot_max;
46 
47  char *plot_style;
48 
53 
56  int n_plots;
57  char *config_file;
61 
62 void usage();
63 void parse_args(struct pmm_config *cfg, int argc, char **argv);
64 
65 void usage_pmm_view();
66 int
68  int argc, char **argv);
69 
70 #endif /*PMM_ARGPARSER_H_*/
71