|
GRASS GIS 8 Programmer's Manual
8.4.2dev(2025)-5620950973
|
GIS Library - check map name. More...
#include <string.h>#include <grass/gis.h>
Go to the source code of this file.
Functions | |
| int | G_name_is_fully_qualified (const char *fullname, char *name, char *mapset) |
| Check if map name is fully qualified (map @ mapset) More... | |
| char * | G_fully_qualified_name (const char *name, const char *mapset) |
| Get fully qualified element name. More... | |
| int | G_unqualified_name (const char *name, const char *mapset, char *xname, char *xmapset) |
| Returns unqualified map name (without @ mapset) More... | |
GIS Library - check map name.
(C) 2001-2009, 2013 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.
Definition in file nme_in_mps.c.
| char* G_fully_qualified_name | ( | const char * | name, |
| const char * | mapset | ||
| ) |
Get fully qualified element name.
Returns a fully qualified name for GIS element name in mapset. Currently this string is in the form name@mapset, but the programmer should pretend not to know this and always call this routine to get the fully qualified name.
String is allocated by G_store().
| name | element name |
| mapset | mapset name |
Definition at line 101 of file nme_in_mps.c.
References G_store(), and name.
Referenced by M_do_copy().
| int G_name_is_fully_qualified | ( | const char * | fullname, |
| char * | name, | ||
| char * | mapset | ||
| ) |
Check if map name is fully qualified (map @ mapset)
Returns a fully qualified name for the file name in mapset. Currently this string is in the form name@mapset, but the programmer should pretend not to know this and always call this routine to get the fully qualified name.
Note:
| fullname | full map name | |
| [out] | name | map name |
| [out] | mapset | mapset name |
Definition at line 36 of file nme_in_mps.c.
References name.
Referenced by G_check_input_output_name(), G_rename(), G_unqualified_name(), and M_do_remove().
| int G_unqualified_name | ( | const char * | name, |
| const char * | mapset, | ||
| char * | xname, | ||
| char * | xmapset | ||
| ) |
Returns unqualified map name (without @ mapset)
Returns an unqualified name for the file name in mapset.
Note:
| name | map name | |
| mapset | mapset to check or NULL | |
| [out] | xname | map name |
| [out] | xmapset | mapset name |
Definition at line 134 of file nme_in_mps.c.
References G_name_is_fully_qualified(), name, and strcpy.