0.3.0
Loading...
Searching...
No Matches
WiFiObsLogger.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
19
20namespace NAV
21{
22class NodeData;
23
25class WiFiObsLogger : public Node, public FileWriter, public CommonLog
26{
27 public:
31 ~WiFiObsLogger() override;
33 WiFiObsLogger(const WiFiObsLogger&) = delete;
40
42 [[nodiscard]] static std::string typeStatic();
43
45 [[nodiscard]] std::string type() const override;
46
48 [[nodiscard]] static std::string category();
49
52 void guiConfig() override;
53
55 [[nodiscard]] json save() const override;
56
59 void restore(const json& j) override;
60
62 void flush() override;
63
64 private:
66 bool initialize() override;
67
69 void deinitialize() override;
70
74 void writeObservation(InputPin::NodeDataQueue& queue, size_t pinIdx);
75};
76
77} // namespace NAV
Common logging variables like time into run and local positions.
File Writer class.
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
Node Class.
CommonLog(const CommonLog &)=delete
Copy constructor.
FileWriter(const FileWriter &)=delete
Copy constructor.
TsDeque< std::shared_ptr< const NAV::NodeData > > NodeDataQueue
Node data queue type.
Definition Pin.hpp:707
Parent class for all data transmitted over Flow pins.
Definition NodeData.hpp:28
Node(std::string name)
Constructor.
bool initialize() override
Initialize the node.
void guiConfig() override
ImGui config window which is shown on double click.
WiFiObsLogger & operator=(const WiFiObsLogger &)=delete
Copy assignment operator.
WiFiObsLogger(WiFiObsLogger &&)=delete
Move constructor.
void deinitialize() override
Deinitialize the node.
static std::string typeStatic()
String representation of the Class Type.
WiFiObsLogger & operator=(WiFiObsLogger &&)=delete
Move assignment operator.
WiFiObsLogger(const WiFiObsLogger &)=delete
Copy constructor.
void restore(const json &j) override
Restores the node from a json object.
std::string type() const override
String representation of the Class Type.
void writeObservation(InputPin::NodeDataQueue &queue, size_t pinIdx)
Write Observation to the file.
~WiFiObsLogger() override
Destructor.
static std::string category()
String representation of the Class Category.
WiFiObsLogger()
Default constructor.
void flush() override
Function called by the flow executer after finishing to flush out remaining data.
json save() const override
Saves the node into a json object.