Logo Tesseroids 1.0: User Manual and API Documentation

src/c/cmd.h

Go to the documentation of this file.
00001 /* *****************************************************************************
00002 Copyright 2011 Leonardo Uieda
00003 
00004 Tesseroids is free software: you can redistribute it and/or modify
00005 it under the terms of the GNU General Public License as published by
00006 the Free Software Foundation, either version 3 of the License, or
00007 (at your option) any later version.
00008 
00009 Tesseroids is distributed in the hope that it will be useful,
00010 but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 GNU General Public License for more details.
00013 
00014 You should have received a copy of the GNU General Public License
00015 along with Tesseroids.  If not, see <http://www.gnu.org/licenses/>.
00016 ***************************************************************************** */
00017 
00026 #ifndef _TESSEROIDS_CMD_H_
00027 #define _TESSEROIDS_CMD_H_
00028 
00029 
00031 typedef struct basic_args
00032 {
00033     char *inputfname; 
00034     int verbose; 
00035     int logtofile; 
00036     char *logfname; 
00037 } BASIC_ARGS;
00038 
00039 
00041 typedef struct tessmass_args
00042 {
00043     char *inputfname; 
00044     int verbose; 
00045     int logtofile; 
00046     char *logfname; 
00047     int use_range; 
00048     double low_dens; 
00049     double high_dens; 
00050 } TESSMASS_ARGS;
00051 
00052 
00054 typedef struct tessmodgen_args
00055 {
00056     int verbose; 
00057     int logtofile; 
00058     char *logfname; 
00059     double dlon; 
00060     double dlat; 
00061     double ref; 
00062     double dens; 
00063     int fix_density; 
00064 } TESSMODGEN_ARGS;
00065 
00066 
00068 typedef struct tessg_args
00069 {
00070     int lon_order; 
00071     int lat_order; 
00072     int r_order; 
00073     char *modelfname; 
00074     int verbose; 
00075     int logtofile; 
00076     char *logfname; 
00077     int adaptative; 
00079 } TESSG_ARGS;
00080 
00081 
00083 typedef struct tessgrd_args
00084 {
00085     double w; 
00086     double e; 
00087     double s; 
00088     double n; 
00089     int nlon; 
00090     int nlat; 
00091     double height; 
00092     int verbose; 
00093     int logtofile; 
00094     char *logfname; 
00095 } TESSGRD_ARGS;
00096 
00097 
00116 extern int parse_basic_args(int argc, char **argv, const char *progname,
00117                             BASIC_ARGS *args, void (*print_help)(void));
00118 
00119 
00135 extern int parse_tessmass_args(int argc, char **argv, const char *progname,
00136                                TESSMASS_ARGS *args, void (*print_help)(void));
00137 
00138 
00153 extern int parse_tessmodgen_args(int argc, char **argv, const char *progname,
00154                             TESSMODGEN_ARGS *args, void (*print_help)(void));
00155 
00156 
00171 extern int parse_tessg_args(int argc, char **argv, const char *progname,
00172                             TESSG_ARGS *args);
00173 
00174 
00188 extern int parse_tessgrd_args(int argc, char **argv, TESSGRD_ARGS *args);
00189 
00190 
00195 extern void print_tessg_help(const char *progname);
00196 
00197 
00203 extern void print_tessgrd_help();
00204 
00205 #endif
Generated on Tue Apr 26 12:17:07 2011 for Tesseroids 1.0: User manual and API documentation by doxygen 1.6.3