0.2.0
Loading...
Searching...
No Matches
UbloxFile.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
20
21namespace NAV
22{
24class UbloxFile : public Node, public FileReader
25{
26 public:
30 ~UbloxFile() override;
32 UbloxFile(const UbloxFile&) = delete;
34 UbloxFile(UbloxFile&&) = delete;
36 UbloxFile& operator=(const UbloxFile&) = delete;
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 bool resetNode() override;
62
63 private:
64 constexpr static size_t OUTPUT_PORT_INDEX_UBLOX_OBS = 0;
65
67 bool initialize() override;
68
70 void deinitialize() override;
71
74 [[nodiscard]] std::shared_ptr<const NodeData> pollData();
75
78 [[nodiscard]] FileType determineFileType() override;
79
82
84 InsTime _lastObsTime;
85};
86
87} // namespace NAV
Abstract File Reader class.
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
Node Class.
Class to read out Ublox Sensors.
Abstract File Reader class.
Definition FileReader.hpp:31
FileType
File Type Enumeration.
Definition FileReader.hpp:35
The class is responsible for all time-related tasks.
Definition InsTime.hpp:667
Abstract parent class for all nodes.
Definition Node.hpp:86
File Reader for Ublox log files.
Definition UbloxFile.hpp:25
~UbloxFile() override
Destructor.
UbloxFile(UbloxFile &&)=delete
Move constructor.
void guiConfig() override
ImGui config window which is shown on double click.
std::string type() const override
String representation of the Class Type.
UbloxFile()
Default constructor.
static std::string typeStatic()
String representation of the Class Type.
static std::string category()
String representation of the Class Category.
json save() const override
Saves the node into a json object.
UbloxFile & operator=(UbloxFile &&)=delete
Move assignment operator.
void restore(const json &j) override
Restores the node from a json object.
UbloxFile & operator=(const UbloxFile &)=delete
Copy assignment operator.
bool resetNode() override
Resets the node. Moves the read cursor to the start.
UbloxFile(const UbloxFile &)=delete
Copy constructor.
Class to read out Ublox Sensors.
Definition UbloxUartSensor.hpp:26