|
OpenCPN Partial API docs
|
Manages a collection of GribRecord objects representing multiple meteorological parameters at a single point in time. More...
#include <grib_record_set.h>
Public Member Functions | |
| GribRecordSet (unsigned int id) | |
| Creates an empty record set. | |
| void | SetUnRefGribRecord (int i, GribRecord *pGR) |
| Sets a GRIB record that this set owns and will be responsible for deleting. | |
| void | RemoveGribRecords () |
| Removes and deletes all GRIB records owned by this set. | |
Public Attributes | |
| time_t | m_Reference_Time |
| Reference time for this set of records, as the number of seconds since the epoch. | |
| unsigned int | m_ID |
| Unique identifier for this record set. | |
| GribRecord * | m_GribRecordPtrArray [Idx_COUNT] |
| Array of pointers to GRIB records representing different meteorological parameters. | |
Manages a collection of GribRecord objects representing multiple meteorological parameters at a single point in time.
While a GribRecord represents a single parameter's grid data (e.g., temperature or wind-x component), GribRecordSet bundles related records together to provide a complete meteorological picture for one timestamp. For example, it might contain:
Records are stored in a fixed-size array where each index corresponds to a specific parameter as defined by the Idx_* enumeration. The set can either:
Definition at line 157 of file grib_record_set.h.
|
inline |
Creates an empty record set.
| id | Unique identifier for this record set. The id is used to uniquely identify this record set within a GRIB file. |
Definition at line 166 of file grib_record_set.h.
|
inlinevirtual |
Definition at line 173 of file grib_record_set.h.
|
inline |
Removes and deletes all GRIB records owned by this set.
Records not owned by this set are left untouched.
Definition at line 198 of file grib_record_set.h.
|
inline |
Sets a GRIB record that this set owns and will be responsible for deleting.
Typically used for interpolated records created between two time points. The set takes ownership and will delete the record when appropriate.
| i | Index in the record array where to store the record |
| pGR | Pointer to the GRIB record to store |
Definition at line 184 of file grib_record_set.h.
| GribRecord* GribRecordSet::m_GribRecordPtrArray[Idx_COUNT] |
Array of pointers to GRIB records representing different meteorological parameters.
Each index corresponds to a specific parameter (wind, gust, wave, etc). Records may be owned by this set (tracked by m_GribRecordUnref) or referenced from elsewhere.
Definition at line 220 of file grib_record_set.h.
| unsigned int GribRecordSet::m_ID |
Unique identifier for this record set.
Definition at line 210 of file grib_record_set.h.
| time_t GribRecordSet::m_Reference_Time |
Reference time for this set of records, as the number of seconds since the epoch.
Definition at line 208 of file grib_record_set.h.