NMEAParser
NMEA Parser Library - Monte Variakojis @VisualGPS
|
This is the base class for every NMEA sentence. More...
#include <NMEASentenceBase.h>
Public Member Functions | |
CNMEASentenceBase () | |
~CNMEASentenceBase () | |
virtual CNMEAParserData::ERROR_E | ProcessSentence (char *pCmd, char *pData)=0 |
Process the data from the specific NMEA sentence. More... | |
virtual void | ResetData (void)=0 |
Clears the sentence specific data to a default value. More... | |
Static Public Attributes | |
static const int | c_nMaxField = 256 |
Maximum field length. More... | |
Protected Member Functions | |
CNMEAParserData::ERROR_E | GetField (char *pData, char *pField, int nFieldNum, int nMaxFieldLen) |
This function will get the specified field in a NMEA string. More... | |
Protected Attributes | |
unsigned int | m_uRxCount |
Receive count. More... | |
Private Attributes | |
std::string | m_strSentenceID |
Sentence ID, ie: GGA, RMC, etc... More... | |
CNMEAParserData::TALKER_ID_E | m_nTalkerID |
Talker ID, ie: GP, GN, etc... More... | |
This is the base class for every NMEA sentence.
Definition at line 34 of file NMEASentenceBase.h.
CNMEASentenceBase::CNMEASentenceBase | ( | ) |
Definition at line 29 of file NMEASentenceBase.cpp.
CNMEASentenceBase::~CNMEASentenceBase | ( | ) |
Definition at line 35 of file NMEASentenceBase.cpp.
|
protected |
This function will get the specified field in a NMEA string.
pData | - Pointer to NMEA string |
pField | - pointer to returned field |
nFieldNum | - Field offset to get |
nMaxFieldLen | - Maximum of bytes pFiled can handle |
Definition at line 39 of file NMEASentenceBase.cpp.
|
pure virtual |
Process the data from the specific NMEA sentence.
This method was made into a pure virtual to force the child class to define the sentence processor. You must redefine this method to process the specific data. See CNMEASentenceGGA::ProcessSentence() child class method for an example.
pCmd | Talker command |
pData | Comma separated talker data string. |
Implemented in CNMEASentenceRMC, CNMEASentenceGGA, CNMEASentenceGSA, and CNMEASentenceGSV.
|
pure virtual |
Clears the sentence specific data to a default value.
This method was made into a pure virtual to force the child class to define the sentence processor. You must redefine this method to process the specific data. See CNMEASentenceGGA::ResetData() child class method for an example.
Implemented in CNMEASentenceRMC, CNMEASentenceGGA, CNMEASentenceGSA, and CNMEASentenceGSV.
|
static |
Maximum field length.
Definition at line 37 of file NMEASentenceBase.h.
|
private |
Talker ID, ie: GP, GN, etc...
Definition at line 41 of file NMEASentenceBase.h.
|
private |
Sentence ID, ie: GGA, RMC, etc...
Definition at line 40 of file NMEASentenceBase.h.
|
protected |
Receive count.
Definition at line 44 of file NMEASentenceBase.h.