GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-d6dec75dd4
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

◆ Vect_set_error_handler_io()

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.