| Visioscan Set SDK Libraries 1.3.5 Visioscan Set SDK Help documentation file for C++ and C++/CLI |

Loading...
Searching...
No Matches
FileDataRecorder.h
1#pragma once
2#include<string>
3#include <vector>
4#include <queue>
5#include <iostream>
6#include <fstream>
7#include <thread>
8#include "BaseDataRecorder.h"
9#include "RawData.h"
10#include "Utility.h"
11
12 using namespace std;
13
14#ifdef STARFLEETTOOLBOX_EXPORTS
15#define FILEDATARECORDER __declspec(dllexport)
16#else
17#define FILEDATARECORDER __declspec(dllimport)
18#endif
19
20 class FILEDATARECORDER FileDataRecorder :
21 public BaseDataRecorder
22{
23 public:
28 FileDataRecorder(string pPath);
29 ~FileDataRecorder();
30
35 int GetStatus();
36
40 void Play();
41
45 void Pause();
46
50 void Stop();
51
55 void Record();
56
62 void ExportToCsv(string pPathToExport, MEASURMENT_UNIT pMeasurmentSystem);
63
68 void FetchRecord(RawData data);
69
70
75 RawData WaitForRawData();
76 private:
77 const int TOTAL_FRAME = 0;
78 const int FRAME_RATE = 1;
83 void SetStatus(int pStatus);
84 string _filePath;
85 int _recorderStatus; // the internal recorder status
86 vector<RawData> _rawDataVector;
87
88
89 HANDLE _mutexRecorderStatus; // protects the MDI Record data queue from multi process access
90 HANDLE _semPlayer; // semaphore to warn that RAW Data are available
91
92 ifstream inputFile;
93};
94
FileDataRecorder
Definition FileDataRecorder.h:22
RawData
The base class encapsulating sensor's RAW data.
Definition RawData.h:14