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

Loading...
Searching...
No Matches
WHoldTime.h
1#pragma once
2#include "../AgvSensor/HoldTime.h"
3#include "../AgvSensor/Enumerations.h"
4 namespace Com {
5 namespace AgvSensorWrapper {
6 namespace Structs {
7 public ref class WHoldTime
8 {
9 public:
10 WHoldTime() {
11 _holdTime = new HoldTime();
12 }
13
14 WHoldTime(WHoldTime^ toCopy) {
15 _holdTime = new HoldTime();
16 Near = toCopy->Near;
17 Middle = toCopy->Middle;
18 Far = toCopy->Far;
19 }
20 ~WHoldTime() {
21 delete(_holdTime);
22 }
23
24 property unsigned int Near {
25 unsigned int get() {
26 return _holdTime->GetNear();
27 }
28 void set(unsigned int x) {
29 _holdTime->SetNear(x);
30 }
31 }
32
33 property unsigned int Middle {
34 unsigned int get() {
35 return _holdTime->GetMiddle();
36 }
37 void set(unsigned int x) {
38 _holdTime->SetMiddle(x);
39 }
40 }
41
42 property unsigned int Far {
43 unsigned int get() {
44 return _holdTime->GetFar();
45 }
46 void set(unsigned int x) {
47 _holdTime->SetFar(x);
48 }
49 }
50
51
52 property HoldTime* __native {
53 HoldTime* get() {
54 return _holdTime;
55 }
56 }
57
58 static bool operator== (WHoldTime^ pComp1, WHoldTime^ pComp2) {
59 if (System::Object::ReferenceEquals(pComp1, pComp2))
60 return true;
61
62 if (System::Object::ReferenceEquals(pComp1, nullptr) ||
63 System::Object::ReferenceEquals(pComp2, nullptr)) {
64 return false;
65 }
66 return pComp1->Near == pComp2->Near
67 && pComp1->Middle == pComp2->Middle
68 && pComp1->Far == pComp2->Far;
69 }
70
71 static bool operator!= (WHoldTime^ pComp1, WHoldTime^ pComp2) {
72 return !(pComp1 == pComp2);
73 }
74
75 private:
76 HoldTime* _holdTime;
77 };
78 }
79 }
80}
81
Com
Definition WActiveLevel.h:7
HoldTime
Definition HoldTime.h:10
Com::AgvSensorWrapper::Structs::WHoldTime
Definition WHoldTime.h:8
Com::AgvSensorWrapper::Structs::WHoldTime::WHoldTime
WHoldTime()
Definition WHoldTime.h:10
Com::AgvSensorWrapper::Structs::WHoldTime::WHoldTime
WHoldTime(WHoldTime^ toCopy)
Definition WHoldTime.h:14
Com::AgvSensorWrapper::Structs::WHoldTime::Near
property unsigned int Near
Definition WHoldTime.h:24
Com::AgvSensorWrapper::Structs::WHoldTime::~WHoldTime
~WHoldTime()
Definition WHoldTime.h:20