FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
ParameterTables.h
1#ifndef ParameterTables_h__
2#define ParameterTables_h__
3
4#include <cstddef>
5#include <string>
6#include <vector>
7
8namespace Ship
9{
10
21std::vector<double> ParseVector(const std::string& text);
22
26std::vector<std::vector<double>> ParseTable(const std::string& text);
27
29void CheckAscending(const std::string& what, const std::vector<double>& axis);
30
32void CheckTableShape(const std::string& what, const std::vector<std::vector<double>>& table, std::size_t rows, std::size_t columns);
33
34} // namespace Ship
35
36#endif // ParameterTables_h__
Simple waypoint object.
Definition CableAttach.h:16
std::vector< double > ParseVector(const std::string &text)
void CheckAscending(const std::string &what, const std::vector< double > &axis)
Throws std::invalid_argument unless axis has at least one value and every value is greater than the o...
std::vector< std::vector< double > > ParseTable(const std::string &text)
void CheckTableShape(const std::string &what, const std::vector< std::vector< double > > &table, std::size_t rows, std::size_t columns)
Throws std::invalid_argument unless table has rows rows of columns numbers each.