RAVE
lazy_dataset.h File Reference

This is a wrapper around a lazy nodelist reader used for fetching data from a HL_NodeList. More...

#include "rave_object.h"
#include "rave_types.h"
#include "rave_data2d.h"
#include "rave_alloc.h"
#include "rave_list.h"
#include "rave_attribute.h"
#include "lazy_nodelist_reader.h"

Go to the source code of this file.

Typedefs

typedef struct _LazyDataset_t LazyDataset_t
 Defines a LazyNodeListReader instance.
 

Functions

int LazyDataset_init (LazyDataset_t *self, LazyNodeListReader_t *reader, const char *nodename)
 Initializes this object with the reader and the name of the node to fetch.
 
RaveData2D_tLazyDataset_get (LazyDataset_t *self)
 Load the data upon request.
 
long LazyDataset_getXsize (LazyDataset_t *self)
 
long LazyDataset_getYsize (LazyDataset_t *self)
 
RaveDataType LazyDataset_getDataType (LazyDataset_t *self)
 
const char * LazyDataset_getNodeName (LazyDataset_t *self)
 

Variables

RaveCoreObjectType LazyDataset_TYPE
 Type definition to use when creating a rave object.
 

Detailed Description

This is a wrapper around a lazy nodelist reader used for fetching data from a HL_NodeList.

This does not support RAVE_OBJECT_CLONE.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2020-11-07

Typedef Documentation

◆ LazyDataset_t

typedef struct _LazyDataset_t LazyDataset_t

Defines a LazyNodeListReader instance.

Function Documentation

◆ LazyDataset_get()

RaveData2D_t * LazyDataset_get ( LazyDataset_t * self)

Load the data upon request.

◆ LazyDataset_init()

int LazyDataset_init ( LazyDataset_t * self,
LazyNodeListReader_t * reader,
const char * nodename )

Initializes this object with the reader and the name of the node to fetch.

The nodename must exist within the available names in the reader otherwise initialization will fail.

Parameters
[in]self- self
[in]reader- the node list reader
[in]nodename- the name of the node
Returns
1 on success otherwise 0

Variable Documentation

◆ LazyDataset_TYPE

RaveCoreObjectType LazyDataset_TYPE
extern

Type definition to use when creating a rave object.