|
phins_ixsea
|
#include <Parser.hpp>
Public Member Functions | |
| Parser () | |
| virtual | ~Parser () |
| virtual int | extractPacket (uint8_t const *buffer, size_t buffer_size) const =0 |
| virtual void | parse (uint8_t const *buffer, size_t size)=0 |
| bool | hasUpdate (uint32_t flags, bool reset=false) |
| bool | hasAnyUpdate (uint32_t flags) |
Static Public Member Functions | |
| static Parser * | createParser (Protocol protocol) |
Public Attributes | |
| PhinsRawData | mData |
| uint32_t | mUpdateFlags |
Base class for parsing the Phins output and extracting the data It contains an implementation of extractPackage. The base class is pure virtual and can not be instantiated
| phins_ixsea::Parser::Parser | ( | ) |
|
inlinevirtual |
|
pure virtual |
extract a package from the incoming data stream this method is called be the drivers extractPackage method
Implemented in phins_ixsea::NmeaParser.
| bool phins_ixsea::Parser::hasAnyUpdate | ( | uint32_t | flags | ) |
| bool phins_ixsea::Parser::hasUpdate | ( | uint32_t | flags, |
| bool | reset = false |
||
| ) |
checks if actual data is available if true and reset is true, the flasg are reset
|
pure virtual |
parse a data packet pure virtual, has to be implemented in the specific protocol parser
Implemented in phins_ixsea::PhinsStandardParser, and phins_ixsea::HalliburtonSASParser.
| PhinsRawData phins_ixsea::Parser::mData |
| uint32_t phins_ixsea::Parser::mUpdateFlags |
1.8.13