mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-04 22:17:31 +00:00
CSV export + DFT math operation
This commit is contained in:
parent
79a990af47
commit
6e55eb02dd
27 changed files with 935 additions and 52 deletions
30
Software/PC_Application/csv.h
Normal file
30
Software/PC_Application/csv.h
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#ifndef CSV_H
|
||||
#define CSV_H
|
||||
|
||||
#include <QString>
|
||||
#include <vector>
|
||||
|
||||
class CSV
|
||||
{
|
||||
public:
|
||||
CSV();
|
||||
|
||||
static CSV fromFile(QString filename, char sep = ',');
|
||||
|
||||
void toFile(QString filename, char sep = ',');
|
||||
std::vector<double> getColumn(QString header);
|
||||
std::vector<double> getColumn(unsigned int index);
|
||||
unsigned int columns() { return _columns.size();}
|
||||
|
||||
void addColumn(QString name, const std::vector<double> &data);
|
||||
|
||||
private:
|
||||
class Column {
|
||||
public:
|
||||
QString header;
|
||||
std::vector<double> data;
|
||||
};
|
||||
std::vector<Column> _columns;
|
||||
};
|
||||
|
||||
#endif // CSV_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue