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.
Provides support for reading the odim sources from an xml-file This object supports RAVE_OBJECT_CLONE.
- Author
- Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
- Date
- 2025-01-15
◆ OdimSources_t
Defines the odim sources.
◆ OdimSources_add()
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.
- Parameters
-
| [in] | self | - self |
| [in] | area | - the area to add |
- Returns
- 1 on success otherwise 0
◆ OdimSources_get()
Returns the source with specified nod name.
- Parameters
-
| [in] | self | - self |
| [in] | nod | - the NOD identifier |
- Returns
- the source or NULL if no such source
◆ OdimSources_get_plc()
Returns the source with specified plc identifier.
- Parameters
-
| [in] | self | - self |
| [in] | plc | - the plc identifier |
- Returns
- the source or NULL if no such source
◆ OdimSources_get_rad()
Returns the source with specified rad identifier.
- Parameters
-
| [in] | self | - self |
| [in] | rad | - the rad identifier |
- Returns
- the source or NULL if no such source
◆ OdimSources_get_wigos()
Returns the source with specified wigos identifier.
- Parameters
-
| [in] | self | - self |
| [in] | wmo | - the wigos identifier |
- Returns
- the source or NULL if no such source
◆ OdimSources_get_wmo()
Returns the source with specified wmo identifier.
- Parameters
-
| [in] | self | - self |
| [in] | wmo | - the wmo identifier (5-digits) |
- Returns
- the source or NULL if no such source
◆ OdimSources_getShowConflictingEntries()
| int OdimSources_getShowConflictingEntries |
( |
| ) |
|
Returns if conflicting entries should be shown in the log or not.
- Parameters
-
| [in] | v | - if 0 then don't. Otherwise do. |
◆ OdimSources_identify()
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.
- Parameters
-
| [in] | self | - self |
| [in] | sourcestr | - the ODIM source string |
- Returns
- the source or NULL if no such source could be identified
◆ OdimSources_load()
Simplified loading function, takes filename and a projection registry.
- Parameters
-
| [in] | filename | - the area file name |
| [in] | pRegistry | - the projection registry |
- Returns
- an area registry
◆ OdimSources_nods()
Return all NODs that has been registered in this source registry.
Remember to use @ref RaveList_freeAndDestroy that will deallocate the list for you.
- Parameters
-
- Returns
- a list of nods (char* pointers).
◆ OdimSources_setShowConflictingEntries()
| void OdimSources_setShowConflictingEntries |
( |
int | v | ) |
|
Sets if conflicting entries should be shown in the log or not.
- Parameters
-
| [in] | v | - if 0 then don't. Otherwise do. |
◆ OdimSources_size()
Returns the number of registered sour es.
- Parameters
-
- Returns
- the number of registered sources
◆ OdimSources_TYPE
Type definition to use when creating a rave object.