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

Loading...
Searching...
No Matches
WObjectSize.h
1#pragma once
2#include "../AgvSensor/ObjectSize.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 WObjectSize
11 {
12 public:
13 WObjectSize() {
14 _objectSize = new ObjectSize();
15 }
16 WObjectSize(WObjectSize^ toCopy) {
17 _objectSize = new ObjectSize();
18 Protection = toCopy->Protection;
19 Warning1 = toCopy->Warning1;
20 Warning2 = toCopy->Warning2;
21 }
22 ~WObjectSize() {
23 delete(_objectSize);
24 }
25
26
27 property ObjSizeEnum Protection {
28 ObjSizeEnum get() {
29 return static_cast<ObjSizeEnum>(_objectSize->GetProtection());
30 }
31 void set(ObjSizeEnum x) {
32 _objectSize->SetProtection((NativeObjSizeEnum)x);
33 }
34 }
35 property ObjSizeEnum Warning1 {
36 ObjSizeEnum get() {
37 return static_cast<ObjSizeEnum>(_objectSize->GetWarning1());
38 }
39 void set(ObjSizeEnum x) {
40 _objectSize->SetWarning1((NativeObjSizeEnum)x);
41 }
42 }
43 property ObjSizeEnum Warning2 {
44 ObjSizeEnum get() {
45 return static_cast<ObjSizeEnum>(_objectSize->GetWarning2());
46 }
47 void set(ObjSizeEnum x) {
48 _objectSize->SetWarning2((NativeObjSizeEnum)x);
49 }
50 }
51
52 property ObjectSize* __native {
53 ObjectSize* get() {
54 return _objectSize;
55 }
56 }
57
58 static bool operator== (WObjectSize^ pComp1, WObjectSize^ pComp2) {
59 return pComp1->Protection == pComp2->Protection
60 && pComp1->Warning1 == pComp2->Warning1
61 && pComp1->Warning2 == pComp2->Warning2;
62 }
63
64 static bool operator!= (WObjectSize^ pComp1, WObjectSize^ pComp2) {
65 return pComp1->Protection != pComp2->Protection
66 || pComp1->Warning1 != pComp2->Warning1
67 || pComp1->Warning2 != pComp2->Warning2;
68 }
69
70 private:
71 ObjectSize* _objectSize;
72 };
73 }
74 }
75}
76
Com
Definition WAgvSensor.h:26
WEnumerations
Definition WEnums.h:4
WEnumerations::ObjSizeEnum
ObjSizeEnum
Definition WEnums.h:20
ObjectSize
Definition ObjectSize.h:13
Com::AgvSensorWrapper::Structs::WObjectSize
Definition WObjectSize.h:11
Com::AgvSensorWrapper::Structs::WObjectSize::~WObjectSize
~WObjectSize()
Definition WObjectSize.h:22
Com::AgvSensorWrapper::Structs::WObjectSize::Protection
property ObjSizeEnum Protection
Definition WObjectSize.h:27
Com::AgvSensorWrapper::Structs::WObjectSize::WObjectSize
WObjectSize()
Definition WObjectSize.h:13
Com::AgvSensorWrapper::Structs::WObjectSize::WObjectSize
WObjectSize(WObjectSize^ toCopy)
Definition WObjectSize.h:16