"Fossies" - the Fresh Open Source Software Archive

Member "gnuastro-0.8/bin/table/args.h" (25 Jun 2018, 2628 Bytes) of package /linux/privat/gnuastro-0.8.tar.lz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "args.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 0.6_vs_0.7.

    1 /*********************************************************************
    2 Table - View and manipulate a FITS table structures.
    3 Table is part of GNU Astronomy Utilities (Gnuastro) package.
    4 
    5 Original author:
    6      Mohammad Akhlaghi <mohammad@akhlaghi.org>
    7 Contributing author(s):
    8 Copyright (C) 2016-2018, Free Software Foundation, Inc.
    9 
   10 Gnuastro is free software: you can redistribute it and/or modify it
   11 under the terms of the GNU General Public License as published by the
   12 Free Software Foundation, either version 3 of the License, or (at your
   13 option) any later version.
   14 
   15 Gnuastro is distributed in the hope that it will be useful, but
   16 WITHOUT ANY WARRANTY; without even the implied warranty of
   17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   18 General Public License for more details.
   19 
   20 You should have received a copy of the GNU General Public License
   21 along with Gnuastro. If not, see <http://www.gnu.org/licenses/>.
   22 **********************************************************************/
   23 #ifndef ARGS_H
   24 #define ARGS_H
   25 
   26 
   27 
   28 
   29 
   30 
   31 /* Array of acceptable options. */
   32 struct argp_option program_options[] =
   33   {
   34     {
   35       "column",
   36       UI_KEY_COLUMN,
   37       "STR",
   38       0,
   39       "Column number (counting from 1) or search string.",
   40       GAL_OPTIONS_GROUP_INPUT,
   41       &p->columns,
   42       GAL_TYPE_STRLL,
   43       GAL_OPTIONS_RANGE_ANY,
   44       GAL_OPTIONS_NOT_MANDATORY,
   45       GAL_OPTIONS_NOT_SET
   46     },
   47 
   48 
   49 
   50 
   51 
   52     /* Output. */
   53     {
   54       "information",
   55       UI_KEY_INFORMATION,
   56       0,
   57       0,
   58       "Only print table and column information.",
   59       GAL_OPTIONS_GROUP_OUTPUT,
   60       &p->information,
   61       GAL_OPTIONS_NO_ARG_TYPE,
   62       GAL_OPTIONS_RANGE_0_OR_1,
   63       GAL_OPTIONS_NOT_MANDATORY,
   64       GAL_OPTIONS_NOT_SET
   65     },
   66     {
   67       "colinfoinstdout",
   68       UI_KEY_COLINFOINSTDOUT,
   69       0,
   70       0,
   71       "Column info/metadata when printing to stdout.",
   72       GAL_OPTIONS_GROUP_OUTPUT,
   73       &p->colinfoinstdout,
   74       GAL_OPTIONS_NO_ARG_TYPE,
   75       GAL_OPTIONS_RANGE_0_OR_1,
   76       GAL_OPTIONS_NOT_MANDATORY,
   77       GAL_OPTIONS_NOT_SET
   78     },
   79 
   80 
   81 
   82 
   83 
   84     /* End. */
   85     {0}
   86   };
   87 
   88 
   89 
   90 
   91 
   92 /* Define the child argp structure. */
   93 struct argp
   94 gal_options_common_child = {gal_commonopts_options,
   95                             gal_options_common_argp_parse,
   96                             NULL, NULL, NULL, NULL, NULL};
   97 
   98 /* Use the child argp structure in list of children (only one for now). */
   99 struct argp_child
  100 children[]=
  101 {
  102   {&gal_options_common_child, 0, NULL, 0},
  103   {0, 0, 0, 0}
  104 };
  105 
  106 /* Set all the necessary argp parameters. */
  107 struct argp
  108 thisargp = {program_options, parse_opt, args_doc, doc, children, NULL, NULL};
  109 #endif