GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ask_vctrs.c
Go to the documentation of this file.
1 /*
2  ***********************************************************************
3  * prompt for vector maps (digit)
4  *
5  * char *
6  * G_ask_vector_new(prompt, name))
7  * asks user to input name of a new vector map
8  *
9  * char *
10  * G_ask_vector_old(prompt, name)
11  * asks user to input name of an existing vector map
12  *
13  * char *
14  * G_ask_vector_any(prompt, name)
15  * asks user to input any vector name
16  *
17  * char *
18  * G_ask_vector_in_mapset(prompt, name)
19  * asks user to input name of an existing vector map
20  * in current mapset
21  *
22  * parms:
23  * const char *prompt optional prompt for user
24  * char *name buffer to hold name of map found
25  *
26  * returns:
27  * char *pointer to a string with name of mapset
28  * where file was found, or NULL if not found
29  **********************************************************************/
30 #include <grass/gis.h>
31 
32 
44 char *G_ask_vector_new(const char *prompt, char *name)
45 {
46  return G_ask_new(prompt, name, "vector", "vector");
47 }
48 
49 
61 char *G_ask_vector_old(const char *prompt, char *name)
62 {
63  return G_ask_old(prompt, name, "vector", "vector");
64 }
65 
66 char *G_ask_vector_any(const char *prompt, char *name)
67 {
68  return G_ask_any(prompt, name, "vector", "vector", 1);
69 }
70 
71 
83 char *G_ask_vector_in_mapset(const char *prompt, char *name)
84 {
85  return G_ask_in_mapset(prompt, name, "vector", "vector");
86 }
char * G_ask_vector_any(const char *prompt, char *name)
Definition: ask_vctrs.c:66
string name
Definition: render.py:1314
char * G_ask_in_mapset(const char *prompt, char *name, char *element, char *desc)
prompt for existing database file
Definition: ask.c:222
char * G_ask_new(const char *prompt, char *name, char *element, char *desc)
prompt for new database file
Definition: ask.c:132
char * G_ask_vector_in_mapset(const char *prompt, char *name)
prompt for an existing vector map
Definition: ask_vctrs.c:83
char * G_ask_old(const char *prompt, char *name, char *element, char *desc)
prompt for existing database file
Definition: ask.c:161
char * G_ask_vector_old(const char *prompt, char *name)
prompt for an existing vector map
Definition: ask_vctrs.c:61
char * G_ask_vector_new(const char *prompt, char *name)
prompt for a new vector map
Definition: ask_vctrs.c:44
char * G_ask_any(const char *prompt, char *name, char *element, char *desc, int warn)
prompt for any valid file name
Definition: ask.c:190