Browse Source

G_FLG_DB_TABLE -> G_FLG_V_TABLE
update modules to use G_FLG_V_TABLE


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51177 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 13 years ago
parent
commit
ac86e43e2a

+ 1 - 1
include/gis.h

@@ -256,7 +256,7 @@ static const char *GRASS_copyright __attribute__ ((unused))
 /**/ typedef enum
 {
     G_FLG_UNDEFINED,
-    G_FLG_DB_TABLE,		/* do not create table */
+    G_FLG_V_TABLE,		/* do not create attribute table */
     G_FLG_V_TOPO,               /* do not build topology */
 } STD_FLG;
 

+ 2 - 2
lib/gis/parser_standard_options.c

@@ -781,7 +781,7 @@ struct Option *G_define_standard_option(int opt)
   If an invalid parameter was specified a empty Flag structure will be
   returned (not NULL).
 
-  - G_FLG_DB_TABLE (do not create attribute table)
+  - G_FLG_V_TABLE  (do not create attribute table)
   - G_FLG_V_TOPO   (do not build topology)
 
   \param flag type of Flag struct to create
@@ -795,7 +795,7 @@ struct Flag *G_define_standard_flag(int flag)
     Flg = G_define_flag();
 
     switch (flag) {
-    case G_FLG_DB_TABLE:
+    case G_FLG_V_TABLE:
 	Flg->key = 't';
 	Flg->description = _("Do not create attribute table");
 	break;

+ 1 - 3
vector/v.in.dxf/main.c

@@ -71,9 +71,7 @@ int main(int argc, char *argv[])
     flag.extent->key = 'e';
     flag.extent->description = _("Ignore the map extent of DXF file");
 
-    flag.table = G_define_flag();
-    flag.table->key = 't';
-    flag.table->description = _("Do not create attribute tables");
+    flag.table = G_define_standard_flag(G_FLG_V_TABLE);
 
     flag.topo = G_define_standard_flag(G_FLG_V_TOPO);
 

+ 1 - 3
vector/v.in.lidar/main.c

@@ -192,9 +192,7 @@ int main(int argc, char *argv[])
 	_("Print LAS file info and exit");
     print_flag->suppress_required = YES;
     
-    notab_flag = G_define_flag();
-    notab_flag->key = 't';
-    notab_flag->description = _("Do not create attribute table");
+    notab_flag = G_define_standard_flag(G_FLG_V_TABLE);
     notab_flag->guisection = _("Attributes");
 
     over_flag = G_define_flag();

+ 1 - 3
vector/v.in.ogr/main.c

@@ -230,9 +230,7 @@ int main(int argc, char *argv[])
     flag.z->description = _("Create 3D output");
     flag.z->guisection = _("Output");
 
-    flag.notab = G_define_flag();
-    flag.notab->key = 't';
-    flag.notab->description = _("Do not create attribute table");
+    flag.notab = G_define_standard_flag(G_FLG_V_TABLE);
     flag.notab->guisection = _("Attributes");
 
     flag.over = G_define_flag();

+ 1 - 7
vector/v.overlay/main.c

@@ -33,7 +33,6 @@ int main(int argc, char *argv[])
 {
     int i, input, line, nlines, operator;
     int type[2], field[2], ofield[3];
-    char *pre[2];
     struct GModule *module;
     struct Option *in_opt[2], *out_opt, *type_opt[2], *field_opt[2],
 	*ofield_opt, *operator_opt;
@@ -51,9 +50,6 @@ int main(int argc, char *argv[])
 
     G_gisinit(argv[0]);
 
-    pre[0] = "a";
-    pre[1] = "b";
-
     module = G_define_module();
     G_add_keyword(_("vector"));
     G_add_keyword(_("geometry"));
@@ -118,9 +114,7 @@ int main(int argc, char *argv[])
     ofield_opt->description = _("If 0 or not given, "
 				"the category is not written");
 
-    table_flag = G_define_flag();
-    table_flag->key = 't';
-    table_flag->description = _("Do not create attribute table");
+    table_flag = G_define_standard_flag(G_FLG_V_TABLE);
 
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);

+ 1 - 3
vector/v.select/args.c

@@ -74,9 +74,7 @@ void parse_options(struct GParm *parm, struct GFlag *flag)
     parm->relate->description = _("Intersection Matrix Pattern used for 'relate' operator");
 #endif
 
-    flag->table = G_define_flag();
-    flag->table->key = 't';
-    flag->table->description = _("Do not create attribute table");
+    flag->table = G_define_standard_flag(G_FLG_V_TABLE);
     
     flag->cat = G_define_flag();
     flag->cat->key = 'c';

+ 1 - 3
vector/v.to.points/main.c

@@ -210,9 +210,7 @@ int main(int argc, char **argv)
     dmax_opt->answer = "100";
     dmax_opt->description = _("Maximum distance between points in map units");
 
-    table_flag = G_define_flag();
-    table_flag->key = 't';
-    table_flag->description = _("Do not create attribute table");
+    table_flag = G_define_standard_flag(G_FLG_V_TABLE);
 
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);

+ 1 - 1
vector/v.voronoi/main.c

@@ -135,7 +135,7 @@ int main(int argc, char **argv)
     flag.line->description =
 	_("Output tessellation as a graph (lines), not areas");
 
-    flag.table = G_define_standard_flag(G_FLG_DB_TABLE);
+    flag.table = G_define_standard_flag(G_FLG_V_TABLE);
     
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);