RAVE
pycompositefilter.c File Reference

Python version of the Composite arguments API. More...

#include "rave_types.h"
#include "compositefilter.h"
#include "pyravecompat.h"
#include "pycompositearguments.h"
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "pyrave_debug.h"
#include "pycompositefilter.h"
#include "rave_alloc.h"
#include "raveutil.h"
#include "rave.h"

Macros

#define NPY_NO_DEPRECATED_API   NPY_1_7_API_VERSION
 
#define PYCOMPOSITEFILTER_MODULE
 to get correct part of pycompositefilter.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 ("_compositefilter")
 Debug this module.
 
 PyDoc_STRVAR (_pycompositefilter_type_doc, "Used to validate a composite argument to know if the arguments should be passed on to a factory instance or not.\n" "\n" "Usage:\n" " import _compositefilter\n" " filter = _compositefilter.new()\n" " filter.products = [\"PCAPPI\",\"CAPPI\"]\n" " result = filter.match(arguments)\n")
 
 MOD_INIT (_compositefilter)
 

Variables

PyTypeObject PyCompositeFilter_Type
 

Detailed Description

Python version of the Composite arguments API.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2024"-12-13

Macro Definition Documentation

◆ PYCOMPOSITEFILTER_MODULE

#define PYCOMPOSITEFILTER_MODULE

to get correct part of pycompositefilter.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 ( "_compositefilter" )

Debug this module.