BALTRAD PPC
ppc_options.c File Reference

Main routine for the ppc options loader This object does support #RAVE_OBJECT_CLONE. More...

#include <string.h>
#include "ppc_options.h"
#include "rave_debug.h"
#include "rave_alloc.h"
#include "rave_utilities.h"
#include <time.h>
#include <sys/time.h>
#include "rave_simplexml.h"

Classes

struct  _PpcOptions_t
 The ppc class. More...
 

Functions

void PpcOptionsInternal_moveParameterValues (PpcRadarOptions_t *options, PpcRadarOptions_t *other, void(*setterfun)(PpcRadarOptions_t *, double, double, double, double, double), void(*getterfun)(PpcRadarOptions_t *, double *, double *, double *, double *, double *))
 
int PpcOptionsInternal_merge (PpcOptions_t *self, PpcRadarOptions_t *options, PpcRadarOptions_t *other)
 
PpcOptions_tPpcOptions_load (const char *filename)
 
int PpcOptions_exists (PpcOptions_t *self, const char *name)
 
PpcRadarOptions_tPpcOptions_getRadarOptions (PpcOptions_t *self, const char *name)
 
int PpcOptions_addRadarOptions (PpcOptions_t *self, PpcRadarOptions_t *options)
 Adds one radar option to the option table.
 
RaveObjectHashTable_t * PpcOptions_options (PpcOptions_t *self)
 Returns a list of options in the repository.
 

Variables

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

Detailed Description

Main routine for the ppc options loader This object does support #RAVE_OBJECT_CLONE.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2019-05-13

Function Documentation

◆ PpcOptions_addRadarOptions()

int PpcOptions_addRadarOptions ( PpcOptions_t * self,
PpcRadarOptions_t * options )

Adds one radar option to the option table.

The radar option name must be set.

Parameters
[in]self- self
[in]options- options
Returns
1 on success otherwise 0

◆ PpcOptions_exists()

int PpcOptions_exists ( PpcOptions_t * self,
const char * name )
Returns
if there are options for the specified (node) name.
Parameters
[in]self- self
[in]name- the node name

◆ PpcOptions_getRadarOptions()

PpcRadarOptions_t * PpcOptions_getRadarOptions ( PpcOptions_t * self,
const char * name )
Returns
the options for the specified (node) name.
Parameters
[in]self- self
[in]name- the node name

◆ PpcOptions_options()

RaveObjectHashTable_t * PpcOptions_options ( PpcOptions_t * self)

Returns a list of options in the repository.

Parameters
[in]self- self
Returns
a hashtable with the options. Note, this is cloned and not internal.

Variable Documentation

◆ PpcOptions_TYPE

RaveCoreObjectType PpcOptions_TYPE
Initial value:
= {
"PpcOptions",
sizeof(PpcOptions_t),
PpcOptions_constructor,
PpcOptions_destructor,
PpcOptions_copyconstructor
}
struct _PpcOptions_t PpcOptions_t
Defines a transformer.
Definition ppc_options.h:34

Type definition to use when creating a rave object.