• Main Page
  • Related Pages
  • Data Structures
  • Files
  • File List
  • Globals

ask_vctrs.c

Go to the documentation of this file.
00001 /*
00002  ***********************************************************************
00003  * prompt for vector maps (digit)
00004  *
00005  *   char *
00006  *   G_ask_vector_new(prompt, name)) 
00007  *       asks user to input name of a new vector map
00008  *
00009  *   char *
00010  *   G_ask_vector_old(prompt, name) 
00011  *       asks user to input name of an existing vector map
00012  *
00013  *   char *
00014  *   G_ask_vector_any(prompt, name)
00015  *       asks user to input any vector name
00016  *
00017  *   char *
00018  *   G_ask_vector_in_mapset(prompt, name)
00019  *       asks user to input name of an existing vector map
00020  *       in current mapset
00021  *
00022  *   parms:
00023  *      const char *prompt    optional prompt for user
00024  *      char *name            buffer to hold name of map found
00025  *
00026  *   returns:
00027  *      char *pointer to a string with name of mapset
00028  *       where file was found, or NULL if not found
00029  **********************************************************************/
00030 #include <grass/gis.h>
00031 
00032 
00044 char *G_ask_vector_new(const char *prompt, char *name)
00045 {
00046     return G_ask_new(prompt, name, "vector", "vector");
00047 }
00048 
00049 
00061 char *G_ask_vector_old(const char *prompt, char *name)
00062 {
00063     return G_ask_old(prompt, name, "vector", "vector");
00064 }
00065 
00066 char *G_ask_vector_any(const char *prompt, char *name)
00067 {
00068     return G_ask_any(prompt, name, "vector", "vector", 1);
00069 }
00070 
00071 
00083 char *G_ask_vector_in_mapset(const char *prompt, char *name)
00084 {
00085     return G_ask_in_mapset(prompt, name, "vector", "vector");
00086 }

Generated on Wed Oct 13 2010 12:09:29 for GRASS Programmer's Manual by  doxygen 1.7.1