ENERGY MONITOR 0.2
Loading...
Searching...
No Matches
data_IO.h
Go to the documentation of this file.
1#pragma once
2
3#include "dataTable.h"
4#include <fstream>
5#include <string>
6
7
8/*
9 THIS FILE IS FOR IMPORTING OR EXPORTING DIFFERENT FILE FORMATS INTO THE APPLICATION AND WRAPPING The DATA with the dataTable class
10 mainly revolves around (data_import) and (data_export) functions
11*/
12
13
14
25 // and any file file formats you can think of that have function assosiated and can handle
26};
27
28
29struct file_IO{
33private:
34bool csv_import(string file_address, dataTable<double> &table);
35bool csv_export(string file_address, dataTable<double> &table);
36
37
38
39public:
40
48bool data_import(string file_address, dataTable<double> &data, int type);
49bool data_export(string file_address, dataTable<double> &data, int type);
50};
dataType
Definition data_IO.h:22
@ csv
Definition data_IO.h:23
@ pdf
Definition data_IO.h:24
2D dynamic fast and efficient structure for Holding data optimised for longer columns with function f...
bool data_import(string file_address, dataTable< double > &data, int type)
a function that imports files with supported file formats
Definition data_IO.cpp:84
bool data_export(string file_address, dataTable< double > &data, int type)
Definition data_IO.cpp:96