Explorar el Código

libgis: add G_OPT_F_BIN_INPUT (make distclean REQUIRED)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63220 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa hace 10 años
padre
commit
4c784423ec
Se han modificado 3 ficheros con 12 adiciones y 1 borrados
  1. 1 0
      general/g.parser/standard_option.c
  2. 1 0
      include/gis.h
  3. 10 1
      lib/gis/parser_standard_options.c

+ 1 - 0
general/g.parser/standard_option.c

@@ -48,6 +48,7 @@ static char* STD_OPT_STRINGS[] = {"G_OPT_UNDEFINED",
                                   "G_OPT_V_ID",
                                   "G_OPT_V_IDS",
                                   "G_OPT_F_INPUT",
+                                  "G_OPT_F_BIN_INPUT",                                  
                                   "G_OPT_F_OUTPUT",
                                   "G_OPT_F_SEP",
                                   "G_OPT_C_FG",

+ 1 - 0
include/gis.h

@@ -254,6 +254,7 @@ typedef enum
     G_OPT_V_IDS,		/*!< more feature ids */
 
     G_OPT_F_INPUT,		/*!< old input file */
+    G_OPT_F_BIN_INPUT,		/*!< old binary input file */
     G_OPT_F_OUTPUT,		/*!< new output file */
     G_OPT_F_SEP,		/*!< data field separator */
 

+ 10 - 1
lib/gis/parser_standard_options.c

@@ -3,7 +3,7 @@
   
   \brief GIS Library - Argument parsing functions (standard options)
   
-  (C) 2001-2013 by the GRASS Development Team
+  (C) 2001-2014 by the GRASS Development Team
   
   This program is free software under the GNU General Public License
   (>=v2). Read the file COPYING that comes with GRASS for details.
@@ -87,6 +87,7 @@
    
   - files
    - G_OPT_F_INPUT
+   - G_OPT_F_BIN_INPUT
    - G_OPT_F_OUTPUT
    - G_OPT_F_SEP
    
@@ -561,6 +562,14 @@ struct Option *G_define_standard_option(int opt)
 	Opt->gisprompt = "old,file,file";
 	Opt->description = _("Name of input file");
 	break;
+    case G_OPT_F_BIN_INPUT:
+	Opt->key = "input";
+	Opt->type = TYPE_STRING;
+	Opt->key_desc = "name";
+	Opt->required = YES;
+	Opt->gisprompt = "old,bin,file";
+	Opt->description = _("Name of input file");
+	break;
     case G_OPT_F_OUTPUT:
 	Opt->key = "output";
 	Opt->type = TYPE_STRING;