RAVE
|
Provides support for reading the odim sources from an xml-file This object supports RAVE_OBJECT_CLONE. More...
Go to the source code of this file.
Typedefs | |
typedef struct _OdimSources_t | OdimSources_t |
Defines the odim sources. | |
Functions | |
OdimSources_t * | OdimSources_load (const char *filename) |
Simplified loading function, takes filename and a projection registry. | |
int | OdimSources_add (OdimSources_t *self, OdimSource_t *source) |
Adds an area to the registry. | |
int | OdimSources_size (OdimSources_t *self) |
Returns the number of registered sour es. | |
OdimSource_t * | OdimSources_get (OdimSources_t *self, const char *nod) |
Returns the source with specified nod name. | |
OdimSource_t * | OdimSources_get_wmo (OdimSources_t *self, const char *wmo) |
Returns the source with specified wmo identifier. | |
OdimSource_t * | OdimSources_get_wigos (OdimSources_t *self, const char *wigos) |
Returns the source with specified wigos identifier. | |
OdimSource_t * | OdimSources_get_rad (OdimSources_t *self, const char *rad) |
Returns the source with specified rad identifier. | |
OdimSource_t * | OdimSources_get_plc (OdimSources_t *self, const char *plc) |
Returns the source with specified plc identifier. | |
OdimSource_t * | OdimSources_identify (OdimSources_t *self, const char *sourcestr) |
Returns the source with specified nod name. | |
RaveList_t * | OdimSources_nods (OdimSources_t *self) |
Return all NODs that has been registered in this source registry. | |
Variables | |
RaveCoreObjectType | OdimSources_TYPE |
Type definition to use when creating a rave object. | |
Provides support for reading the odim sources from an xml-file This object supports RAVE_OBJECT_CLONE.
typedef struct _OdimSources_t OdimSources_t |
Defines the odim sources.
int OdimSources_add | ( | OdimSources_t * | self, |
OdimSource_t * | source ) |
Adds an area to the registry.
There will be no check if the area already exists so it is up to the user to ensure that no duplicates are added.
[in] | self | - self |
[in] | area | - the area to add |
OdimSource_t * OdimSources_get | ( | OdimSources_t * | self, |
const char * | nod ) |
Returns the source with specified nod name.
[in] | self | - self |
[in] | nod | - the NOD identifier |
OdimSource_t * OdimSources_get_plc | ( | OdimSources_t * | self, |
const char * | plc ) |
Returns the source with specified plc identifier.
[in] | self | - self |
[in] | plc | - the plc identifier |
OdimSource_t * OdimSources_get_rad | ( | OdimSources_t * | self, |
const char * | rad ) |
Returns the source with specified rad identifier.
[in] | self | - self |
[in] | rad | - the rad identifier |
OdimSource_t * OdimSources_get_wigos | ( | OdimSources_t * | self, |
const char * | wigos ) |
Returns the source with specified wigos identifier.
[in] | self | - self |
[in] | wmo | - the wigos identifier |
OdimSource_t * OdimSources_get_wmo | ( | OdimSources_t * | self, |
const char * | wmo ) |
Returns the source with specified wmo identifier.
[in] | self | - self |
[in] | wmo | - the wmo identifier (5-digits) |
OdimSource_t * OdimSources_identify | ( | OdimSources_t * | self, |
const char * | sourcestr ) |
Returns the source with specified nod name.
The source string will be checked in the order NOD, WIGOS, WMO, RAD and finally PLC. If WMO:00000, then WMO will not be used as identifier.
[in] | self | - self |
[in] | sourcestr | - the ODIM source string |
OdimSources_t * OdimSources_load | ( | const char * | filename | ) |
Simplified loading function, takes filename and a projection registry.
[in] | filename | - the area file name |
[in] | pRegistry | - the projection registry |
RaveList_t * OdimSources_nods | ( | OdimSources_t * | self | ) |
Return all NODs that has been registered in this source registry.
Remember to use @ref RaveList_freeAndDestroy that will deallocate the list for you.
[in] | self | - self |
int OdimSources_size | ( | OdimSources_t * | self | ) |
Returns the number of registered sour es.
[in] | self | - self |
|
extern |
Type definition to use when creating a rave object.