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

Loading...
Searching...
No Matches
WActiveLevel.h
1#pragma once
2#include "../AgvSensor/ActiveLevel.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 WActiveLevel
11 {
12 public:
13 WActiveLevel() {
14 _outputActiveLevel = new ActiveLevel();
15 }
16 WActiveLevel(WActiveLevel^ toCopy) {
17 _outputActiveLevel = new ActiveLevel();
18 Level1 = toCopy->Level1;
19 Level2 = toCopy->Level2;
20 Level3 = toCopy->Level3;
21 Level4 = toCopy->Level4;
22 ErrorLevel = toCopy->ErrorLevel;
23 }
24 ~WActiveLevel() {
25 delete(_outputActiveLevel);
26 }
27
28
29 property ActiveLevelEnum Level1 {
30 ActiveLevelEnum get() {
31 return static_cast<ActiveLevelEnum>(_outputActiveLevel->GetLevel1());
32 }
33 void set(ActiveLevelEnum x) {
34 _outputActiveLevel->SetLevel1((NativeActiveLevelEnum)x);
35 }
36 }
37 property ActiveLevelEnum Level2 {
38 ActiveLevelEnum get() {
39 return static_cast<ActiveLevelEnum>(_outputActiveLevel->GetLevel2());
40 }
41 void set(ActiveLevelEnum x) {
42 _outputActiveLevel->SetLevel2((NativeActiveLevelEnum)x);
43 }
44 }
45 property ActiveLevelEnum Level3 {
46 ActiveLevelEnum get() {
47 return static_cast<ActiveLevelEnum>(_outputActiveLevel->GetLevel3());
48 }
49 void set(ActiveLevelEnum x) {
50 _outputActiveLevel->SetLevel3((NativeActiveLevelEnum)x);
51 }
52 }
53 property ActiveLevelEnum Level4 {
54 ActiveLevelEnum get() {
55 return static_cast<ActiveLevelEnum>(_outputActiveLevel->GetLevel4());
56 }
57 void set(ActiveLevelEnum x) {
58 _outputActiveLevel->SetLevel4((NativeActiveLevelEnum)x);
59 }
60 }
61 property ActiveLevelEnum ErrorLevel{
62 ActiveLevelEnum get() {
63 return static_cast<ActiveLevelEnum>(_outputActiveLevel->GetErrorLevel());
64 }
65 void set(ActiveLevelEnum x) {
66 _outputActiveLevel->SetErrorLevel((NativeActiveLevelEnum)x);
67 }
68 }
69
70 property ActiveLevel* __native {
71 ActiveLevel* get() {
72 return _outputActiveLevel;
73 }
74 }
75
76 static bool operator== (WActiveLevel^ pComp1, WActiveLevel^ pComp2) {
77 if (System::Object::ReferenceEquals(pComp1, pComp2))
78 return true;
79
80 if (System::Object::ReferenceEquals(pComp1, nullptr) ||
81 System::Object::ReferenceEquals(pComp2, nullptr)) {
82 return false;
83 }
84 return pComp1->Level1 == pComp2->Level1
85 && pComp1->Level2 == pComp2->Level2
86 && pComp1->Level3 == pComp2->Level3
87 && pComp1->Level4 == pComp2->Level4
88 && pComp1->ErrorLevel == pComp2->ErrorLevel;
89 }
90
91 static bool operator!= (WActiveLevel^ pComp1, WActiveLevel^ pComp2) {
92 return !(pComp1 == pComp2);
93 }
94
95 private:
96 ActiveLevel* _outputActiveLevel;
97 };
98 }
99 }
100}
Com
Definition WActiveLevel.h:7
WEnumerations
Definition WEnums.h:4
WEnumerations::ActiveLevelEnum
ActiveLevelEnum
Definition WEnums.h:22
ActiveLevel
Definition ActiveLevel.h:12
Com::AgvSensorWrapper::Structs::WActiveLevel
Definition WActiveLevel.h:11
Com::AgvSensorWrapper::Structs::WActiveLevel::Level1
property ActiveLevelEnum Level1
Definition WActiveLevel.h:29
Com::AgvSensorWrapper::Structs::WActiveLevel::~WActiveLevel
~WActiveLevel()
Definition WActiveLevel.h:24
Com::AgvSensorWrapper::Structs::WActiveLevel::WActiveLevel
WActiveLevel(WActiveLevel^ toCopy)
Definition WActiveLevel.h:16
Com::AgvSensorWrapper::Structs::WActiveLevel::WActiveLevel
WActiveLevel()
Definition WActiveLevel.h:13