OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
FixtureTableStatisticAnalyser.h
Go to the documentation of this file.
1#pragma once
2#include <gtest/gtest.h>
4#include "TableExtractorCSV.h"
5
6class FixtureTableStatisticAnalyser : public testing::TestWithParam<int>
7{
8public:
11 uint64_t countRows();
12 uint64_t countColumns();
13 int countUniquesInColumn(int column);
14 std::vector<size_t> countUniquesInAllColumns();
15
16private:
17 TableExtractor * m_extractor = nullptr;
18 TableStatisticAnalyser * m_analyser = nullptr;
19 const std::string m_filePath;
20 void loadFileContent(std::string _fullPath);
21};
Concrete Importer which interpretes a csv file.
Takes care of calculating the caracteristics of a table behind a TableExtractor object.
Definition FixtureTableStatisticAnalyser.h:7
uint64_t countColumns()
Definition FixtureTableStatisticAnalyser.cpp:25
~FixtureTableStatisticAnalyser()
Definition FixtureTableStatisticAnalyser.cpp:11
FixtureTableStatisticAnalyser()
Definition FixtureTableStatisticAnalyser.cpp:5
std::vector< size_t > countUniquesInAllColumns()
Definition FixtureTableStatisticAnalyser.cpp:36
int countUniquesInColumn(int column)
Definition FixtureTableStatisticAnalyser.cpp:30
uint64_t countRows()
Definition FixtureTableStatisticAnalyser.cpp:20
Definition TableExtractor.h:15
Definition TableStatisticAnalyser.h:12