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

Loading...
Searching...
No Matches
WFileDataRecorder.h
1#pragma once
2#include "WBaseDataRecorder.h"
3#include "FileDataRecorder.h"
4#include "WUtilities.h"
5
6 using namespace System;
7 using namespace std;
8 using namespace WBase;
9 using namespace WUtils;
10
11
12 namespace WRecorder {
13 public ref class WFileDataRecorder :
14 public WBaseDataRecorder
15 {
16 public:
17 WFileDataRecorder(String^ filePath) {
18 _dataRecorder = new FileDataRecorder(string(WConverter::ConvertToNativeString(filePath)));
19 }
20
21 ~WFileDataRecorder() {
22 delete(_dataRecorder);
23 }
24
25 void Play() override {
26 _dataRecorder->Play();
27 }
28 void Pause() override {
29 _dataRecorder->Pause();
30 }
31 void Stop() override {
32 _dataRecorder->Stop();
33 }
34 void Record() override {
35 _dataRecorder->Record();
36 }
37 void ExportToCsv(String^ pPathToExport) override {
38 _dataRecorder->ExportToCsv(string(WConverter::ConvertToNativeString(pPathToExport)), MeasurmentUnit::Millimeters.GetHashCode());
39 }
40
41 void ExportToCsv(String^ pPathToExport, MeasurmentUnit pMeasurmentUnit) override {
42 _dataRecorder->ExportToCsv(string(WConverter::ConvertToNativeString(pPathToExport)), pMeasurmentUnit.GetHashCode());
43 }
44 private:
45 };
46}
47
WUtils
Definition WAvailableResolution.h:7
WUtils::MeasurmentUnit
MeasurmentUnit
Definition WUtilities.h:26
WBase
Definition WBaseCommunication.h:16
WRecorder
Definition WFileDataRecorder.h:12
FileDataRecorder
Definition FileDataRecorder.h:22
WRecorder::WFileDataRecorder
Definition WFileDataRecorder.h:15
WRecorder::WFileDataRecorder::WFileDataRecorder
WFileDataRecorder(String^ filePath)
Definition WFileDataRecorder.h:17
WRecorder::WFileDataRecorder::ExportToCsv
void ExportToCsv(String^ pPathToExport) override
Definition WFileDataRecorder.h:37
WRecorder::WFileDataRecorder::Record
void Record() override
Definition WFileDataRecorder.h:34
WRecorder::WFileDataRecorder::Pause
void Pause() override
Definition WFileDataRecorder.h:28
WRecorder::WFileDataRecorder::~WFileDataRecorder
~WFileDataRecorder()
Definition WFileDataRecorder.h:21
WRecorder::WFileDataRecorder::Stop
void Stop() override
Definition WFileDataRecorder.h:31
WRecorder::WFileDataRecorder::Play
void Play() override
Definition WFileDataRecorder.h:25
WRecorder::WFileDataRecorder::ExportToCsv
void ExportToCsv(String^ pPathToExport, MeasurmentUnit pMeasurmentUnit) override
Definition WFileDataRecorder.h:41
WUtils::WConverter::ConvertToNativeString
static char * ConvertToNativeString(String^ toConvert)
Definition WUtilities.h:16