0.2.0
Loading...
Searching...
No Matches
RtklibPosFile.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{
22class RtklibPosFile : public Node, public FileReader
23{
24 public:
28 ~RtklibPosFile() override;
30 RtklibPosFile(const RtklibPosFile&) = delete;
37
39 [[nodiscard]] static std::string typeStatic();
40
42 [[nodiscard]] std::string type() const override;
43
45 [[nodiscard]] static std::string category();
46
49 void guiConfig() override;
50
52 [[nodiscard]] json save() const override;
53
56 void restore(const json& j) override;
57
59 bool resetNode() override;
60
61 private:
62 constexpr static size_t OUTPUT_PORT_INDEX_RTKLIB_POS_OBS = 0;
63
65 bool initialize() override;
66
68 void deinitialize() override;
69
72 [[nodiscard]] std::shared_ptr<const NodeData> pollData();
73
76 [[nodiscard]] FileType determineFileType() override;
77
79 void readHeader() override;
80};
81
82} // namespace NAV
Abstract File Reader class.
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
Node Class.
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
File Reader for RTKLIB pos log files.
Definition RtklibPosFile.hpp:23
RtklibPosFile()
Default constructor.
static std::string typeStatic()
String representation of the Class Type.
static std::string category()
String representation of the Class Category.
bool resetNode() override
Resets the node. Moves the read cursor to the start.
json save() const override
Saves the node into a json object.
~RtklibPosFile() override
Destructor.
std::string type() const override
String representation of the Class Type.
RtklibPosFile(const RtklibPosFile &)=delete
Copy constructor.
void restore(const json &j) override
Restores the node from a json object.
RtklibPosFile(RtklibPosFile &&)=delete
Move constructor.
void guiConfig() override
ImGui config window which is shown on double click.
RtklibPosFile & operator=(const RtklibPosFile &)=delete
Copy assignment operator.
RtklibPosFile & operator=(RtklibPosFile &&)=delete
Move assignment operator.