RAVE
lazy_dataset.c File Reference

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

#include "lazy_dataset.h"
#include "rave_debug.h"
#include "rave_alloc.h"
#include <string.h>
#include "rave_object.h"
#include "rave_data2d.h"
#include "rave_hlhdf_utilities.h"

Classes

struct  _LazyDataset_t
 Represents one lazy dataset. More...
 

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

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
Initial value:
= {
"LazyDataset",
sizeof(LazyDataset_t),
LazyDataset_constructor,
LazyDataset_destructor,
NULL
}
struct _LazyDataset_t LazyDataset_t
Defines a LazyNodeListReader instance.
Definition lazy_dataset.h:39

Type definition to use when creating a rave object.