memory_blocs_parsers/external_data/utc.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace ixblue_stdbin_decoder
7 {
8 namespace Parser
9 {
10 class Utc : public MemoryBlockParser
11 {
12 public:
13  Utc() : MemoryBlockParser(0, 5) {}
14  void parse(boost::asio::const_buffer& buffer,
15  Data::BinaryNav& outBinaryNav) override
16  {
17  Data::Utc res;
18  buffer >> res.validityTime_100us >> res.source;
19  outBinaryNav.utc = res;
20  }
21 };
22 } // namespace Parser
23 } // namespace ixblue_stdbin_decoder
void parse(boost::asio::const_buffer &buffer, Data::BinaryNav &outBinaryNav) override
boost::optional< Utc > utc
Definition: stdbin.h:113


ixblue_stdbin_decoder
Author(s): Adrien BARRAL , Laure LEBROTON
autogenerated on Sat Jan 9 2021 03:13:21