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

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