0.2.0
Loading...
Searching...
No Matches
EmlidFile.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 EmlidFile : public Node, public FileReader
25{
26 public:
30 ~EmlidFile() override;
32 EmlidFile(const EmlidFile&) = delete;
34 EmlidFile(EmlidFile&&) = delete;
36 EmlidFile& operator=(const EmlidFile&) = 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_EMLID_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};
83
84} // namespace NAV
Class to read out Emlid Sensors.
Abstract File Reader class.
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
Node Class.
File Reader for Emlid log files.
Definition EmlidFile.hpp:25
static std::string typeStatic()
String representation of the Class Type.
EmlidFile()
Default constructor.
bool resetNode() override
Resets the node. Moves the read cursor to the start.
EmlidFile & operator=(const EmlidFile &)=delete
Copy assignment operator.
~EmlidFile() override
Destructor.
void guiConfig() override
ImGui config window which is shown on double click.
EmlidFile(EmlidFile &&)=delete
Move constructor.
EmlidFile & operator=(EmlidFile &&)=delete
Move assignment operator.
EmlidFile(const EmlidFile &)=delete
Copy constructor.
void restore(const json &j) override
Restores the node from a json object.
static std::string category()
String representation of the Class Category.
json save() const override
Saves the node into a json object.
std::string type() const override
String representation of the Class Type.
Abstract File Reader class.
Definition FileReader.hpp:31
FileType
File Type Enumeration.
Definition FileReader.hpp:35
Abstract parent class for all nodes.
Definition Node.hpp:86
Class to read out Emlid Sensors.
Definition EmlidUartSensor.hpp:24