RAVE
pyravelegend.c File Reference

Python version of the RaveLegend API. More...

#include "pyravecompat.h"
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "pyrave_debug.h"
#include "rave_legend.h"
#include "pyravelegend.h"
#include "rave_alloc.h"
#include "raveutil.h"

Macros

#define NPY_NO_DEPRECATED_API   NPY_1_7_API_VERSION
 
#define PYRAVELEGEND_MODULE
 to get correct part of pyravelegend.h
 
#define raiseException_gotoTag(tag, type, msg)
 Sets a python exception and goto tag.
 
#define raiseException_returnNULL(type, msg)
 Sets a python exception and return NULL.
 

Functions

 PYRAVE_DEBUG_MODULE ("_ravelegend")
 Debug this module.
 
 MOD_DIR_FORWARD_DECLARE (PyRaveLegend)
 
 PyDoc_STRVAR (_pyravelegend_type_doc, "A data container that is used as for defining legends that should be associated to various rave objects.\n\n" "\n" "Usage:\n" " import _ravelegend\n" " legend = _ravelegend.new()\n" " legend.addValue(\"KEY_1\", \"V1\")\n")
 
 MOD_INIT (_ravelegend)
 

Variables

PyTypeObject PyRaveLegend_Type
 

Detailed Description

Python version of the RaveLegend API.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2024-02-10

Macro Definition Documentation

◆ PYRAVELEGEND_MODULE

#define PYRAVELEGEND_MODULE

to get correct part of pyravelegend.h

◆ raiseException_gotoTag

#define raiseException_gotoTag ( tag,
type,
msg )
Value:
{PyErr_SetString(type, msg); goto tag;}

Sets a python exception and goto tag.

◆ raiseException_returnNULL

#define raiseException_returnNULL ( type,
msg )
Value:
{PyErr_SetString(type, msg); return NULL;}

Sets a python exception and return NULL.

Function Documentation

◆ PYRAVE_DEBUG_MODULE()

PYRAVE_DEBUG_MODULE ( "_ravelegend" )

Debug this module.