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

Loading...
Searching...
No Matches
WOutputFunction.h
1#pragma once
2#include "../AgvSensor/OutputFunction.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 WOutputFunction
11 {
12 public:
13 WOutputFunction() {
14 _outputFunction = new OutputFunction();
15 }
16 WOutputFunction(WOutputFunction^ toCopy) {
17 _outputFunction = new OutputFunction();
18 Output1 = toCopy->Output1;
19 Output2 = toCopy->Output2;
20 Output3 = toCopy->Output3;
21 Output4 = toCopy->Output4;
22 }
23 ~WOutputFunction() {
24 delete(_outputFunction);
25 }
26
27
28 property FunctionEnum Output1 {
29 FunctionEnum get() {
30 return static_cast<FunctionEnum>(_outputFunction->GetOutput1());
31 }
32 void set(FunctionEnum x) {
33 _outputFunction->SetOutput1((NativeFunctionEnum)x);
34 }
35 }
36 property FunctionEnum Output2 {
37 FunctionEnum get() {
38 return static_cast<FunctionEnum>(_outputFunction->GetOutput2());
39 }
40 void set(FunctionEnum x) {
41 _outputFunction->SetOutput2((NativeFunctionEnum)x);
42 }
43 }
44 property FunctionEnum Output3 {
45 FunctionEnum get() {
46 return static_cast<FunctionEnum>(_outputFunction->GetOutput3());
47 }
48 void set(FunctionEnum x) {
49 _outputFunction->SetOutput3((NativeFunctionEnum)x);
50 }
51 }
52 property FunctionEnum Output4 {
53 FunctionEnum get() {
54 return static_cast<FunctionEnum>(_outputFunction->GetOutput4());
55 }
56 void set(FunctionEnum x) {
57 _outputFunction->SetOutput4((NativeFunctionEnum)x);
58 }
59 }
60
61 property OutputFunction* __native {
62 OutputFunction* get() {
63 return _outputFunction;
64 }
65 }
66
67 static bool operator== (WOutputFunction^ pComp1, WOutputFunction^ pComp2) {
68 if (System::Object::ReferenceEquals(pComp1, pComp2))
69 return true;
70
71 if (System::Object::ReferenceEquals(pComp1, nullptr) ||
72 System::Object::ReferenceEquals(pComp2, nullptr)) {
73 return false;
74 }
75 return pComp1->Output1 == pComp2->Output1
76 && pComp1->Output2 == pComp2->Output2
77 && pComp1->Output3 == pComp2->Output3
78 && pComp1->Output4 == pComp2->Output4;
79 }
80
81 static bool operator!= (WOutputFunction^ pComp1, WOutputFunction^ pComp2) {
82 return !(pComp1 == pComp2);
83 }
84
85 private:
86 OutputFunction* _outputFunction;
87 };
88 }
89 }
90}
91
Com
Definition WActiveLevel.h:7
WEnumerations
Definition WEnums.h:4
WEnumerations::FunctionEnum
FunctionEnum
Definition WEnums.h:23
OutputFunction
Definition OutputFunction.h:12
Com::AgvSensorWrapper::Structs::WOutputFunction
Definition WOutputFunction.h:11
Com::AgvSensorWrapper::Structs::WOutputFunction::WOutputFunction
WOutputFunction()
Definition WOutputFunction.h:13
Com::AgvSensorWrapper::Structs::WOutputFunction::~WOutputFunction
~WOutputFunction()
Definition WOutputFunction.h:23
Com::AgvSensorWrapper::Structs::WOutputFunction::Output1
property FunctionEnum Output1
Definition WOutputFunction.h:28
Com::AgvSensorWrapper::Structs::WOutputFunction::WOutputFunction
WOutputFunction(WOutputFunction^ toCopy)
Definition WOutputFunction.h:16