0.2.0
Loading...
Searching...
No Matches
UartDataLogger.hpp
Go to the documentation of this file.
1// This file is part of INSTINCT, the INS Toolkit for Integrated
2// Navigation Concepts and Training by the Institute of Navigation of
3// the University of Stuttgart, Germany.
4//
5// This Source Code Form is subject to the terms of the Mozilla Public
6// License, v. 2.0. If a copy of the MPL was not distributed with this
7// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
13
14#pragma once
15
18
19namespace NAV
20{
21class NodeData;
22
24class UartDataLogger : public Node, public FileWriter
25{
26 public:
30 ~UartDataLogger() override;
39
41 [[nodiscard]] static std::string typeStatic();
42
44 [[nodiscard]] std::string type() const override;
45
47 [[nodiscard]] static std::string category();
48
51 void guiConfig() override;
52
54 [[nodiscard]] json save() const override;
55
58 void restore(const json& j) override;
59
61 void flush() override;
62
63 private:
65 bool initialize() override;
66
68 void deinitialize() override;
69
73 void writeObservation(InputPin::NodeDataQueue& queue, size_t pinIdx);
74};
75
76} // namespace NAV
File Writer class.
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
Node Class.
Parent class for other data loggers which manages the output filestream.
Definition FileWriter.hpp:27
Abstract parent class for all nodes.
Definition Node.hpp:86
Data Logger for Ublox observations.
Definition UartDataLogger.hpp:25
UartDataLogger()
Default constructor.
UartDataLogger & operator=(UartDataLogger &&)=delete
Move assignment operator.
UartDataLogger(const UartDataLogger &)=delete
Copy constructor.
void guiConfig() override
ImGui config window which is shown on double click.
static std::string typeStatic()
String representation of the Class Type.
json save() const override
Saves the node into a json object.
UartDataLogger & operator=(const UartDataLogger &)=delete
Copy assignment operator.
UartDataLogger(UartDataLogger &&)=delete
Move constructor.
void flush() override
Function called by the flow executer after finishing to flush out remaining data.
void restore(const json &j) override
Restores the node from a json object.
std::string type() const override
String representation of the Class Type.
static std::string category()
String representation of the Class Category.
~UartDataLogger() override
Destructor.