GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73574
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vector/Vlib/handler.c File Reference

Vector library - standard error handlers. More...

#include <grass/gis.h>
#include <grass/vector.h>
Include dependency graph for vector/Vlib/handler.c:

Go to the source code of this file.

Functions

void Vect_set_error_handler_io (struct Map_info *In, struct Map_info *Out)
 Define standard error handler for input and output vector maps. More...
 

Detailed Description

Vector library - standard error handlers.

Higher level functions for reading/writing/manipulating vectors.

(C) 2011 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.

Author
Martin Landa <landa.martin gmail.com>

Definition in file vector/Vlib/handler.c.

Function Documentation

void Vect_set_error_handler_io ( struct Map_info In,
struct Map_info Out 
)

Define standard error handler for input and output vector maps.

This handler:

  • close input vector map on error
  • close and delete output vector map on error

Note: It's recommended to call this routine after Vect_open_old() or Vect_open_old2().

Parameters
Inpointer in Map_info struct (input vector map) or NULL
Outpointer to Map_info struct (output vector map) or NULL

Definition at line 58 of file vector/Vlib/handler.c.

References G_add_error_handler().