OpenCPN Partial API docs
|
Manages a collection of GribRecord objects representing multiple meteorological parameters at a single point in time. More...
#include <GribRecordSet.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 153 of file GribRecordSet.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 162 of file GribRecordSet.h.
|
inlinevirtual |
Definition at line 169 of file GribRecordSet.h.
|
inline |
Removes and deletes all GRIB records owned by this set.
Records not owned by this set are left untouched.
Definition at line 194 of file GribRecordSet.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 180 of file GribRecordSet.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 216 of file GribRecordSet.h.
unsigned int GribRecordSet::m_ID |
Unique identifier for this record set.
Definition at line 206 of file GribRecordSet.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 204 of file GribRecordSet.h.