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
22
enum
dataType
{
23
csv
,
24
pdf
,
25
// and any file file formats you can think of that have function assosiated and can handle
26
};
27
28
29
struct
file_IO
{
33
private
:
34
bool
csv_import(
string
file_address,
dataTable<double>
&table);
35
bool
csv_export(
string
file_address,
dataTable<double>
&table);
36
37
38
39
public
:
40
48
bool
data_import
(
string
file_address,
dataTable<double>
&data,
int
type);
49
bool
data_export
(
string
file_address,
dataTable<double>
&data,
int
type);
50
};
dataTable
Definition
dataTable.h:29
dataType
dataType
Definition
data_IO.h:22
csv
@ csv
Definition
data_IO.h:23
pdf
@ pdf
Definition
data_IO.h:24
dataTable.h
2D dynamic fast and efficient structure for Holding data optimised for longer columns with function f...
file_IO
Definition
data_IO.h:29
file_IO::data_import
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
file_IO::data_export
bool data_export(string file_address, dataTable< double > &data, int type)
Definition
data_IO.cpp:96
EPE_ENERGY_MONITOR
src
core
data_IO
data_IO.h
Generated by
1.10.0