0.2.0
Loading...
Searching...
No Matches
KvhFile.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 KvhFile : public Imu, public FileReader
25{
26 public:
30 ~KvhFile() override;
32 KvhFile(const KvhFile&) = delete;
34 KvhFile(KvhFile&&) = delete;
36 KvhFile& operator=(const KvhFile&) = 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_KVH_OBS = 0;
65 constexpr static size_t OUTPUT_PORT_INDEX_HEADER_COLUMNS = 1;
66
68 bool initialize() override;
69
71 void deinitialize() override;
72
75 [[nodiscard]] std::shared_ptr<const NodeData> pollData();
76
79 [[nodiscard]] FileType determineFileType() override;
80
83
85 uint8_t _prevSequenceNumber = UINT8_MAX;
86};
87
88} // namespace NAV
Abstract File Reader class.
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
Abstract IMU Class.
Class to read out KVH Sensors.
Abstract File Reader class.
Definition FileReader.hpp:31
FileType
File Type Enumeration.
Definition FileReader.hpp:35
Abstract IMU Class.
Definition Imu.hpp:24
File Reader for Kvh log files.
Definition KvhFile.hpp:25
~KvhFile() override
Destructor.
KvhFile(const KvhFile &)=delete
Copy constructor.
static std::string category()
String representation of the Class Category.
KvhFile()
Default constructor.
KvhFile(KvhFile &&)=delete
Move constructor.
bool resetNode() override
Resets the node. Moves the read cursor to the start.
static std::string typeStatic()
String representation of the Class Type.
KvhFile & operator=(const KvhFile &)=delete
Copy assignment operator.
KvhFile & operator=(KvhFile &&)=delete
Move assignment operator.
void restore(const json &j) override
Restores the node from a json object.
void guiConfig() override
ImGui config window which is shown on double click.
std::string type() const override
String representation of the Class Type.
json save() const override
Saves the node into a json object.
Class to read out KVH Sensors.
Definition KvhUartSensor.hpp:24