RAVE
|
Defines an odim source. More...
#include "rave_object.h"
Go to the source code of this file.
Typedefs | |
typedef struct _OdimSource_t | OdimSource_t |
Defines a Geographical Area. | |
Functions | |
char * | OdimSource_getIdFromOdimSource (const char *source, const char *id) |
Extracts an ID from the ODIM source string. | |
char * | OdimSource_getIdFromOdimSourceInclusive (const char *source, const char *id) |
Extracts an ID from the ODIM source string inclusive the identifier. | |
OdimSource_t * | OdimSource_create (const char *nod, const char *wmo, const char *wigos, const char *plc, const char *rad, const char *cccc, const char *org) |
Utility function to create a complete OdimSource_t in one line. | |
int | OdimSource_setNod (OdimSource_t *self, const char *nod) |
Sets the NOD for this source. | |
const char * | OdimSource_getNod (OdimSource_t *self) |
Returns the NOD for this source. | |
int | OdimSource_setWmo (OdimSource_t *self, const char *wmoid) |
Sets the WMO for this source. | |
const char * | OdimSource_getWmo (OdimSource_t *self) |
Returns the WMO for this source. | |
int | OdimSource_setWigos (OdimSource_t *self, const char *wigos) |
Sets the WIGOS for this source. | |
const char * | OdimSource_getWigos (OdimSource_t *self) |
Returns the WIGOS for this source. | |
int | OdimSource_setPlc (OdimSource_t *self, const char *plc) |
Sets the PLC for this source. | |
const char * | OdimSource_getPlc (OdimSource_t *self) |
Returns the PLC for this source. | |
int | OdimSource_setRad (OdimSource_t *self, const char *rad) |
Sets the RAD for this source. | |
const char * | OdimSource_getRad (OdimSource_t *self) |
Returns the RAD for this source. | |
int | OdimSource_setCccc (OdimSource_t *self, const char *cccc) |
Sets the CCCC for this source. | |
const char * | OdimSource_getCccc (OdimSource_t *self) |
Returns the CCCC for this source. | |
int | OdimSource_setOrg (OdimSource_t *self, const char *org) |
Sets the ORG for this source. | |
const char * | OdimSource_getOrg (OdimSource_t *self) |
Returns the ORG for this source. | |
const char * | OdimSource_getSource (OdimSource_t *self) |
Returns the source string for this source. | |
Variables | |
RaveCoreObjectType | OdimSource_TYPE |
Type definition to use when creating a rave object. | |
typedef struct _OdimSource_t OdimSource_t |
Defines a Geographical Area.
OdimSource_t * OdimSource_create | ( | const char * | nod, |
const char * | wmo, | ||
const char * | wigos, | ||
const char * | plc, | ||
const char * | rad, | ||
const char * | cccc, | ||
const char * | org ) |
Utility function to create a complete OdimSource_t in one line.
[in] | nod | - The NOD (mandatory) |
[in] | wmo | - The WMO (mandatory) |
[in] | wigos | - The WIGOS (mandatory) |
[in] | plc | - The PLC (mandatory) |
[in] | rad | - The RAD (mandatory) |
[in] | cccc | - The CCCC (mandatory) |
[in] | org | - The ORG (mandatory) |
const char * OdimSource_getCccc | ( | OdimSource_t * | self | ) |
Returns the CCCC for this source.
[in] | self | - self |
char * OdimSource_getIdFromOdimSource | ( | const char * | source, |
const char * | id ) |
Extracts an ID from the ODIM source string.
For example if the source is "NOD:sekkr,WMO:01234". Then the call OdimSource_getIdFromOdimSource(source, "WMO:") will return 01234
char * OdimSource_getIdFromOdimSourceInclusive | ( | const char * | source, |
const char * | id ) |
Extracts an ID from the ODIM source string inclusive the identifier.
For example if the source is "NOD:sekkr,WMO:01234". Then the call OdimSource_getIdFromOdimSource(source, "WMO:") will return WMO:01234
const char * OdimSource_getNod | ( | OdimSource_t * | self | ) |
Returns the NOD for this source.
[in] | self | - self |
const char * OdimSource_getOrg | ( | OdimSource_t * | self | ) |
Returns the ORG for this source.
[in] | self | - self |
const char * OdimSource_getPlc | ( | OdimSource_t * | self | ) |
Returns the PLC for this source.
[in] | self | - self |
const char * OdimSource_getRad | ( | OdimSource_t * | self | ) |
Returns the RAD for this source.
[in] | self | - self |
const char * OdimSource_getSource | ( | OdimSource_t * | self | ) |
Returns the source string for this source.
Will be in the format. NOD:<nod>,WMO:<wmo>,... If WMO = 00000 then it will not be added. If RAD,WIGOS,PLC is missing, they will not be added to the source string.
[in] | self | - self |
const char * OdimSource_getWigos | ( | OdimSource_t * | self | ) |
Returns the WIGOS for this source.
[in] | self | - self |
const char * OdimSource_getWmo | ( | OdimSource_t * | self | ) |
Returns the WMO for this source.
[in] | self | - self |
int OdimSource_setCccc | ( | OdimSource_t * | self, |
const char * | cccc ) |
Sets the CCCC for this source.
[in] | self | - self |
[in] | cccc | - the id |
int OdimSource_setNod | ( | OdimSource_t * | self, |
const char * | nod ) |
Sets the NOD for this source.
[in] | self | - self |
[in] | nod | - the nod |
int OdimSource_setOrg | ( | OdimSource_t * | self, |
const char * | org ) |
Sets the ORG for this source.
[in] | self | - self |
[in] | org | - the id |
int OdimSource_setPlc | ( | OdimSource_t * | self, |
const char * | plc ) |
Sets the PLC for this source.
[in] | self | - self |
[in] | plc | - the id |
int OdimSource_setRad | ( | OdimSource_t * | self, |
const char * | rad ) |
Sets the RAD for this source.
[in] | self | - self |
[in] | rad | - the id |
int OdimSource_setWigos | ( | OdimSource_t * | self, |
const char * | wigos ) |
Sets the WIGOS for this source.
[in] | self | - self |
[in] | wigos | - the id |
int OdimSource_setWmo | ( | OdimSource_t * | self, |
const char * | wmoid ) |
Sets the WMO for this source.
[in] | self | - self |
[in] | wmoid | - the id |
|
extern |
Type definition to use when creating a rave object.