GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
Subroutines for Key/Value management. More...
Go to the source code of this file.
Functions | |
struct Key_Value * | G_create_key_value (void) |
Allocate and initialize Key_Value structure. More... | |
void | G_set_key_value (const char *key, const char *value, struct Key_Value *kv) |
Set value for given key. More... | |
const char * | G_find_key_value (const char *key, const struct Key_Value *kv) |
Find given key (case sensitive) More... | |
void | G_free_key_value (struct Key_Value *kv) |
Free allocated Key_Value structure. More... | |
Subroutines for Key/Value management.
(C) 2001-2008, 2012 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 key_value1.c.
struct Key_Value* G_create_key_value | ( | void | ) |
Allocate and initialize Key_Value structure.
Definition at line 23 of file key_value1.c.
References G_malloc, and G_zero().
Referenced by GPJ_osr_to_grass().
const char* G_find_key_value | ( | const char * | key, |
const struct Key_Value * | kv | ||
) |
Find given key (case sensitive)
key | key to be found |
kv | pointer to Key_value structure |
Definition at line 84 of file key_value1.c.
Referenced by G_compare_projections(), G_get_datumparams_from_projinfo(), G_get_projinfo(), GPJ__get_datum_params(), GPJ_grass_to_osr2(), GPJ_osr_to_grass(), Rast__check_fp_type(), and Vect_close().
void G_free_key_value | ( | struct Key_Value * | kv | ) |
Free allocated Key_Value structure.
[in] | kv | Key_Value structure to be freed |
Definition at line 103 of file key_value1.c.
References G_free(), Key_Value::key, Key_Value::nalloc, Key_Value::nitems, and Key_Value::value.
Referenced by G_get_projinfo(), GPJ_get_datum_params(), and Rast__check_fp_type().
void G_set_key_value | ( | const char * | key, |
const char * | value, | ||
struct Key_Value * | kv | ||
) |
Set value for given key.
key | key to be set up | |
value | value for given key | |
[in,out] | kv | Key_value structure to be modified |
Definition at line 38 of file key_value1.c.
Referenced by G_get_projinfo(), and GPJ_osr_to_grass().