-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfiletxt.h
More file actions
29 lines (23 loc) · 951 Bytes
/
Copy pathfiletxt.h
File metadata and controls
29 lines (23 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef FILETXT
#define FILETXT
#include <iostream>
#include <stdlib.h>
#include <fstream>
#include <vector>
#include <tuple>
#include <string>
#include <math.h>
#define X get<0>
#define Y get<1>
#define Z get<2>
using namespace std;
typedef vector <tuple <double, double, double>> coordinates;
void readNameFile(char *filePath, long long* date, long long* collectionTime, string* idSensor);
void setValuesHeader(int *typeValue, string value, long long* date, long long* collectionTime, string* idSensor);
void getDataTxt(char *filePath, coordinates *sensorValues);
long getSizeFile(FILE *file);
bool copyDataFile(FILE *dataFile, char *buffer, long *sizeDataFile);
void readValues(coordinates *sensorValues, char *buffer, long *sizeDataFile);
void readValue(coordinates *sensorValues, double *tempValues, int *valuesColumn, char *buffer, int *startingPosition, int *endPosition);
void exportData(coordinates fft_data, double* frequencys);
#endif