HL-HDF
rave_info_type.c File Reference
#include <pyhlcompat.h>
#include "pyhlhdf_common.h"
#include "hlhdf.h"
#include "hlhdf_compound_utils.h"
#include "structmember.h"

Classes

struct  RaveInfoStruct
 The compound struct. More...
 
struct  RaveInfoType
 The python type object. More...
 
struct  RaveInfoObject
 The python data object. More...
 

Macros

#define NPY_NO_DEPRECATED_API   NPY_1_7_API_VERSION
 
#define HLHDF_PYMODULE_WITH_IMPORT_ARRAY
 To ensure that arrayobject is imported correctly.
 
#define raiseException(type, msg)   {PyErr_SetString(type,msg);return NULL;}
 Sets an exception in the python interpreter and returns NULL which will generate an exception.
 
#define setException(type, msg)   {PyErr_SetString(type,msg);}
 Sets an exception in the python interpreter.
 
#define RaveInfoType_Check(op)   ((op)->ob_type == &RaveInfoType_Type)
 Checks if the object is a RaveInfoType.
 
#define RaveInfoObject_Check(op)   ((op)->ob_type == &RaveInfoObject_Type)
 Checks if the object is a RaveInfoObject.
 

Functions

 MOD_INIT (_rave_info_type)
 Initializes the _rave_info_type.
 

Detailed Description

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2009-06-15

C-definition of a compound type usable from python

Macro Definition Documentation

◆ HLHDF_PYMODULE_WITH_IMPORT_ARRAY

#define HLHDF_PYMODULE_WITH_IMPORT_ARRAY

To ensure that arrayobject is imported correctly.

◆ raiseException

#define raiseException ( type,
msg )   {PyErr_SetString(type,msg);return NULL;}

Sets an exception in the python interpreter and returns NULL which will generate an exception.

◆ RaveInfoObject_Check

#define RaveInfoObject_Check ( op)    ((op)->ob_type == &RaveInfoObject_Type)

Checks if the object is a RaveInfoObject.

◆ RaveInfoType_Check

#define RaveInfoType_Check ( op)    ((op)->ob_type == &RaveInfoType_Type)

Checks if the object is a RaveInfoType.

◆ setException

#define setException ( type,
msg )   {PyErr_SetString(type,msg);}

Sets an exception in the python interpreter.

Function Documentation

◆ MOD_INIT()

MOD_INIT ( _rave_info_type )

Initializes the _rave_info_type.