nmealib 0.0.4
NMEA 0183/NMEA 2000 parsing library
Loading...
Searching...
No Matches
nmea0183Factory.h
Go to the documentation of this file.
1#pragma once
2
3#include <nmealib/nmea0183.h>
4#include <chrono>
5#include <memory>
6#include <string>
7
8namespace nmealib {
9namespace nmea0183 {
10
19public:
31 static std::unique_ptr<Message0183> create(const std::string& raw, Message::TimePoint ts = std::chrono::system_clock::now());
32};
33
34} // namespace nmea0183
35} // namespace nmealib
std::chrono::system_clock::time_point TimePoint
Definition message.h:30
Factory for creating typed NMEA 0183 message objects from raw sentence strings.
static std::unique_ptr< Message0183 > create(const std::string &raw, Message::TimePoint ts=std::chrono::system_clock::now())
Creates a typed NMEA 0183 message from a raw sentence string.