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

Loading...
Searching...
No Matches
WContaminationThreshold.h
1#pragma once
2#include <RawDataSensor.h>
6 public ref class WContaminationThreshold
7{
8 public:
9 WContaminationThreshold() {
10 _cont = new ContaminationThreshold();
11 }
12
13 WContaminationThreshold(WContaminationThreshold^ toCopy) {
14 _cont = new ContaminationThreshold();
15 Warning = toCopy->Warning;
16 Error = toCopy->Error;
17 }
18
19 ~WContaminationThreshold() {
20 delete(_cont);
21 }
22
23 property int Warning {
24 int get() {
25 return _cont->GetWarning();
26 }
27
28 void set(int x) {
29 _cont->SetWarning(x);
30 }
31 }
32
33 property int Error {
34 int get() {
35 return _cont->GetError();
36 }
37
38 void set(int x) {
39 _cont->SetError(x);
40 }
41 }
42
43
44 property ContaminationThreshold* __native {
45 ContaminationThreshold* get() {
46 return _cont;
47 }
48 }
49
50 static bool operator== (WContaminationThreshold^ pComp1, WContaminationThreshold^ pComp2) {
51 if (System::Object::ReferenceEquals(pComp1, pComp2))
52 return true;
53
54 if (System::Object::ReferenceEquals(pComp1, nullptr) ||
55 System::Object::ReferenceEquals(pComp2, nullptr)) {
56 return false;
57 }
58 return pComp1->Warning == pComp2->Warning && pComp1->Error == pComp2->Error;
59 }
60
61 static bool operator!= (WContaminationThreshold^ pComp1, WContaminationThreshold^ pComp2) {
62 return !(pComp1 == pComp2);
63 }
64
65
66 private:
67 ContaminationThreshold* _cont;
68};
69
ContaminationThreshold
Helper to encapsulate the contamination threshold.
Definition ContaminationThreshold.h:12
WContaminationThreshold
A wrapper on the ContaminationThreshold data encapsulation.
Definition WContaminationThreshold.h:7
WContaminationThreshold::Warning
property int Warning
Definition WContaminationThreshold.h:23
WContaminationThreshold::~WContaminationThreshold
~WContaminationThreshold()
Definition WContaminationThreshold.h:19
WContaminationThreshold::WContaminationThreshold
WContaminationThreshold(WContaminationThreshold^ toCopy)
Definition WContaminationThreshold.h:13
WContaminationThreshold::WContaminationThreshold
WContaminationThreshold()
Definition WContaminationThreshold.h:9