Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
CSVOptions.h
Go to the documentation of this file.
1
2#ifndef CSVOPTIONS_H
3#define CSVOPTIONS_H
4
5#include <string>
6#include <vector>
7#include <typeindex>
8#include <unordered_map>
9
31struct CSVOptions {
33 bool hasIndex = false;
34
42 std::unordered_map<std::string, std::type_index> columnTypes;
43
50 std::type_index indexType = typeid(std::string);
51
68 std::type_index& operator[](const std::string& colName) {
69 auto result = columnTypes.emplace(colName, std::type_index(typeid(void)));
70 return result.first->second;
71 }
72};
73
74#endif
Options describing how to interpret or write CSV data.
Definition CSVOptions.h:31
std::type_index & operator[](const std::string &colName)
Access or insert the type entry for a given column name.
Definition CSVOptions.h:68
std::type_index indexType
Type used for the DataFrame index.
Definition CSVOptions.h:50
std::unordered_map< std::string, std::type_index > columnTypes
Mapping from column name to its declared C++ type.
Definition CSVOptions.h:42
bool hasIndex
True if the CSV representation contains a separate index column.
Definition CSVOptions.h:33