GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
GIS Library - Handles program initialization. More...
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <locale.h>
#include <grass/gis.h>
#include "G.h"
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
int | G__gisinit (const char *version, const char *pgm) |
Initialize GRASS GIS engine. More... | |
int | G__no_gisinit (const char *version) |
Initialize GRASS GIS engine. More... | |
int | G__check_gisinit (void) |
Checks to see if GIS engine is initialized. More... | |
Variables | |
struct G__ | G__ |
GIS Library - Handles program initialization.
(C) 2001-2008 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 gisinit.c.
int G__check_gisinit | ( | void | ) |
Checks to see if GIS engine is initialized.
Definition at line 109 of file gisinit.c.
References G_sleep(), and G_warning().
int G__gisinit | ( | const char * | version, |
const char * | pgm | ||
) |
Initialize GRASS GIS engine.
Initializes GIS engine and ensures a valid mapset is available.
[in] | pgm | Program (module) name |
Definition at line 44 of file gisinit.c.
References G__mapset_permissions(), G_fatal_error(), G_location_path(), G_mapset(), and G_set_program_name().
int G__no_gisinit | ( | const char * | version | ) |
Initialize GRASS GIS engine.
Initializes GIS engine, but does not check for a valid mapset.
Definition at line 86 of file gisinit.c.
References G_fatal_error().