[GRASS-SVN] r63220 - in grass/trunk: general/g.parser include lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 28 01:01:00 PST 2014


Author: martinl
Date: 2014-11-28 01:01:00 -0800 (Fri, 28 Nov 2014)
New Revision: 63220

Modified:
   grass/trunk/general/g.parser/standard_option.c
   grass/trunk/include/gis.h
   grass/trunk/lib/gis/parser_standard_options.c
Log:
libgis: add G_OPT_F_BIN_INPUT (make distclean REQUIRED)


Modified: grass/trunk/general/g.parser/standard_option.c
===================================================================
--- grass/trunk/general/g.parser/standard_option.c	2014-11-28 08:59:02 UTC (rev 63219)
+++ grass/trunk/general/g.parser/standard_option.c	2014-11-28 09:01:00 UTC (rev 63220)
@@ -48,6 +48,7 @@
                                   "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",

Modified: grass/trunk/include/gis.h
===================================================================
--- grass/trunk/include/gis.h	2014-11-28 08:59:02 UTC (rev 63219)
+++ grass/trunk/include/gis.h	2014-11-28 09:01:00 UTC (rev 63220)
@@ -254,6 +254,7 @@
     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 */
 

Modified: grass/trunk/lib/gis/parser_standard_options.c
===================================================================
--- grass/trunk/lib/gis/parser_standard_options.c	2014-11-28 08:59:02 UTC (rev 63219)
+++ grass/trunk/lib/gis/parser_standard_options.c	2014-11-28 09:01:00 UTC (rev 63220)
@@ -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 @@
 	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;



More information about the grass-commit mailing list