0.2.0
Loading...
Searching...
No Matches
CsvData.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 <vector>
17#include <string>
18#include <variant>
19
20namespace NAV
21{
24{
25 public:
28 [[nodiscard]] static std::string type() { return "CsvData"; }
29
31 using CsvElement = std::variant<double, std::string>;
32
34 using CsvLine = std::vector<CsvElement>;
35
37 std::vector<std::string> description;
39 std::vector<CsvLine> lines;
40};
41
42} // namespace NAV
CSV Data container.
Definition CsvData.hpp:24
std::vector< std::string > description
Data description.
Definition CsvData.hpp:37
std::vector< CsvElement > CsvLine
CSV Line with splitted entries.
Definition CsvData.hpp:34
static std::string type()
Returns the type of the data class.
Definition CsvData.hpp:28
std::vector< CsvLine > lines
Data container.
Definition CsvData.hpp:39
std::variant< double, std::string > CsvElement
CSV Elements (number or if not convertible to number as std::string)
Definition CsvData.hpp:31