NMEA-Classes
This are Classes for the NMEA0183 protokoll.
They are based on RACE
The read side
The NMEA0183_Message_Assembler gets the input may be from a simple RACE_Device
and parses the Syntax. The base class knowns about the Fields.
The specific Classes have accessormethods to the content.
How should the Write-site looks like ?
- Possiblity 1:
-
- For each field is an own datablock.
- set-methods can write the datablocks,
- For writing in the device the Datablocks are written with writev(2) (RACE_Accumulator or something special)
- Possiblity 2:
- Each class has a constructor, which converts (with snprintf)
the data to the sentence.
It seems, that the second posibility is more practicable