File: nearest.class

package info (click to toggle)
grib-api 1.19.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 217,848 kB
  • ctags: 16,929
  • sloc: ansic: 111,244; sh: 14,785; makefile: 5,307; f90: 3,583; perl: 3,160; python: 2,830; yacc: 712; fortran: 468; lex: 330; cpp: 305; awk: 66
file content (34 lines) | stat: -rw-r--r-- 1,396 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

static void init_class              (grib_nearest_class*);

static int init               (grib_nearest* nearest,grib_handle* h,grib_arguments* args);
static int find(grib_nearest* nearest, grib_handle* h,double inlat, double inlon, unsigned long flags, double* outlats,double* outlons, double *values,double *distances, int *indexes,size_t *len);
static int destroy            (grib_nearest* nearest);

typedef struct grib_nearest_NAME{
  grib_nearest nearest;
  MEMBERS
} grib_nearest_NAME;

extern grib_nearest_class* SUPER;

static grib_nearest_class _grib_nearest_class_NAME = {
    &SUPER,                         /* super                     */
    "NAME",                         /* name                      */
    sizeof(grib_nearest_NAME),      /* size of instance          */
    0,                              /* inited */
    &init_class,                    /* init_class */
    &init,                          /* constructor               */
    &destroy,                       /* destructor                */
    &find,                          /* find nearest              */
};

grib_nearest_class* grib_nearest_class_NAME = &_grib_nearest_class_NAME;

ADD_TO_FILE grib_nearest_class.h      extern grib_nearest_class* grib_nearest_class_NAME;
ADD_TO_FILE grib_nearest_factory.h    { "NAME", &grib_nearest_class_NAME, },

static void init_class(grib_nearest_class* c)
{
INIT
}