#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <grass/gis.h>
#include <grass/glocale.h>
Go to the source code of this file.
Defines | |
#define | OLD 0 |
#define | NEW 1 |
#define | PRJ 2 |
#define | ANY 3 |
#define | ANY_NW 4 |
#define | OLD_FILE 5 |
#define | NEW_FILE 6 |
Functions | |
char * | G_ask_new (char *prompt, char *name, char *element, char *desc) |
prompt for new database file | |
char * | G_ask_new_ext (char *prompt, char *name, char *element, char *desc, char *option, int(*lister)()) |
char * | G_ask_old (char *prompt, char *name, char *element, char *desc) |
prompt for existing database file | |
char * | G_ask_old_ext (char *prompt, char *name, char *element, char *desc, char *option, int(*lister)()) |
char * | G_ask_any (char *prompt, char *name, char *element, char *desc, int warn) |
prompt for any valid file name | |
char * | G_ask_any_ext (char *prompt, char *name, char *element, char *desc, int warn, char *option, int(*lister)()) |
char * | G_ask_in_mapset (char *prompt, char *name, char *element, char *desc) |
prompt for existing database file | |
char * | G_ask_in_mapset_ext (char *prompt, char *name, char *element, char *desc, char *option, int(*lister)()) |
char * | G_ask_new_file (char *prompt, char *name, char *element, char *desc) |
prompt for new file | |
char * | G_ask_old_file (char *prompt, char *name, char *element, char *desc) |
prompt for existing file | |
int | G_set_ask_return_msg (char *msg) |
set Hit RETURN msg | |
char * | G_get_ask_return_msg () |
get Hit RETURN msg |
#define ANY 3 |
#define ANY_NW 4 |
#define NEW 1 |
#define NEW_FILE 6 |
#define OLD 0 |
#define OLD_FILE 5 |
#define PRJ 2 |
char* G_ask_any | ( | char * | prompt, | |
char * | name, | |||
char * | element, | |||
char * | desc, | |||
int | warn | |||
) |
prompt for any valid file name
The user is asked to enter any leg al file name. If warn is 1 and the file chosen exists in the current mapset, then the user is asked if it is ok to overwrite the file. If warn is 0, then any leg al name is accepted and no warning is issued to the user if the file exists.
prompt | ||
name | ||
element | ||
label | ||
warn |
Definition at line 190 of file ask.c.
References ANY, ANY_NW, and NULL.
Referenced by G_ask_vector_any().
char* G_ask_any_ext | ( | char * | prompt, | |
char * | name, | |||
char * | element, | |||
char * | desc, | |||
int | warn, | |||
char * | option, | |||
int(*)() | lister | |||
) |
char* G_ask_in_mapset | ( | char * | prompt, | |
char * | name, | |||
char * | element, | |||
char * | desc | |||
) |
prompt for existing database file
The user is asked to enter the name of an file which exists in the current mapset. Note. The file chosen by the user may or may not exist in other mapsets. This routine does not look in other mapsets, since the assumption is that name will be used to modify a file. GRASS only permits users to modify files in the current mapset.
prompt | ||
name | ||
element | ||
label |
Definition at line 221 of file ask.c.
Referenced by G_ask_vector_in_mapset().
char* G_ask_in_mapset_ext | ( | char * | prompt, | |
char * | name, | |||
char * | element, | |||
char * | desc, | |||
char * | option, | |||
int(*)() | lister | |||
) |
char* G_ask_new | ( | char * | prompt, | |
char * | name, | |||
char * | element, | |||
char * | desc | |||
) |
prompt for new database file
The user is asked to enter the name of a new file which does not exist in the current mapset. Note. The file chosen by the user may exist in other mapsets. This routine does not look in other mapsets, since the assumption is that name will be used to create a new file. New files are always created in the current mapset.
prompt | ||
name | ||
element | ||
desc |
Definition at line 130 of file ask.c.
Referenced by G_ask_vector_new().
char* G_ask_new_ext | ( | char * | prompt, | |
char * | name, | |||
char * | element, | |||
char * | desc, | |||
char * | option, | |||
int(*)() | lister | |||
) |
char* G_ask_new_file | ( | char * | prompt, | |
char * | name, | |||
char * | element, | |||
char * | desc | |||
) |
char* G_ask_old | ( | char * | prompt, | |
char * | name, | |||
char * | element, | |||
char * | desc | |||
) |
prompt for existing database file
The user is asked to enter the name of an existing database file. Note. This routine looks for the file in the current mapset as well as other mapsets. The mapsets that are searched are determined from the user's mapset search path. See Mapset_Search_Path for some more details about the search path.
prompt | ||
name | ||
element | ||
label |
Definition at line 160 of file ask.c.
Referenced by G_ask_vector_old().
char* G_ask_old_ext | ( | char * | prompt, | |
char * | name, | |||
char * | element, | |||
char * | desc, | |||
char * | option, | |||
int(*)() | lister | |||
) |
char* G_ask_old_file | ( | char * | prompt, | |
char * | name, | |||
char * | element, | |||
char * | desc | |||
) |
char* G_get_ask_return_msg | ( | ) |
int G_set_ask_return_msg | ( | char * | msg | ) |