mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-21 06:13:41 +00:00
CSV trace import
This commit is contained in:
parent
2868c2cb74
commit
c5440210b4
12 changed files with 255 additions and 68 deletions
|
|
@ -14,10 +14,14 @@ public:
|
|||
void toFile(QString filename, char sep = ',');
|
||||
std::vector<double> getColumn(QString header);
|
||||
std::vector<double> getColumn(unsigned int index);
|
||||
QString getHeader(unsigned int index);
|
||||
unsigned int columns() { return _columns.size();}
|
||||
|
||||
void addColumn(QString name, const std::vector<double> &data);
|
||||
|
||||
QString getFilename() const;
|
||||
void setFilename(const QString &value);
|
||||
|
||||
private:
|
||||
class Column {
|
||||
public:
|
||||
|
|
@ -25,6 +29,7 @@ private:
|
|||
std::vector<double> data;
|
||||
};
|
||||
std::vector<Column> _columns;
|
||||
QString filename;
|
||||
};
|
||||
|
||||
#endif // CSV_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue