0.2.0
Loading...
Searching...
No Matches
StringObs.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
16#include <string>
17
18#include "NodeData/NodeData.hpp"
19
20namespace NAV
21{
23class StringObs : public NodeData
24{
25 public:
28 explicit StringObs(std::string str)
29 : data(std::move(str)) {}
30
33 [[nodiscard]] static std::string type()
34 {
35 return "StringObs";
36 }
37
40 [[nodiscard]] static std::vector<std::string> parentTypes()
41 {
42 return { NodeData::type() };
43 }
44
46 std::string data;
47};
48
49} // namespace NAV
Abstract NodeData Class.
void move(std::vector< T > &v, size_t sourceIdx, size_t targetIdx)
Moves an element within a vector to a new position.
Definition Vector.hpp:26
Parent class for all data transmitted over Flow pins.
Definition NodeData.hpp:27
static std::string type()
Returns the type of the data class.
Definition NodeData.hpp:44
IMU Observation storage class.
Definition StringObs.hpp:24
static std::string type()
Returns the type of the data class.
Definition StringObs.hpp:33
StringObs(std::string str)
Constructor.
Definition StringObs.hpp:28
static std::vector< std::string > parentTypes()
Returns the parent types of the data class.
Definition StringObs.hpp:40
std::string data
The string to transport.
Definition StringObs.hpp:46