Visioscan Set SDK Libraries 1.0.14
Visioscan Set SDK Help documentation file for C++ and C++/CLI
 
Loading...
Searching...
No Matches
WFieldName.h
1#pragma once
2#include "../AgvSensor/FieldName.h"
3#include "../AgvSensor/Enumerations.h"
4
5using namespace WEnumerations;
6using namespace System;
7using namespace std;
8using namespace WUtils;
9using namespace System::Collections::Generic;
10
11namespace Bea {
12 namespace AgvSensorWrapper {
13 namespace Structs {
14 public ref class WFieldName
15 {
16 public:
18 _fieldName = new FieldName();
19 }
20
22 _fieldName = new FieldName();
23 FieldNumber = toCopy->FieldNumber;
24 MainName = toCopy->MainName;
25 ProtectionZoneName = toCopy->ProtectionZoneName;
26 Warning1ZoneName = toCopy->Warning1ZoneName;
27 Warning2ZoneName = toCopy->Warning2ZoneName;
28 }
30 delete(_fieldName);
31 }
32
33 property int FieldNumber {
34 int get() {
35 return _fieldName->GetFieldNumber();
36 }
37 void set(int x) {
38 _fieldName->SetFieldNumber(x);
39 }
40 }
41
42 property String^ MainName {
43 String^ get() {
44 return gcnew String(_fieldName->GetMainName().c_str());
45 }
46 void set(String^ x) {
47 _fieldName->SetMainName(WConverter::ConvertToNativeString(x));
48 }
49 }
50
51 property String^ ProtectionZoneName {
52 String^ get() {
53 return gcnew String(_fieldName->GetProtectionZoneName().c_str());
54 }
55 void set(String^ x) {
56 _fieldName->SetProtectionZoneName(WConverter::ConvertToNativeString(x));
57 }
58 }
59
60 property String^ Warning1ZoneName {
61 String^ get() {
62 return gcnew String(_fieldName->GetWarning1ZoneName().c_str());
63 }
64 void set(String^ x) {
65 _fieldName->SetWarning1ZoneName(WConverter::ConvertToNativeString(x));
66 }
67 }
68
69
70 property String^ Warning2ZoneName {
71 String^ get() {
72 return gcnew String(_fieldName->GetWarning2ZoneName().c_str());
73 }
74 void set(String^ x) {
75 _fieldName->SetWarning2ZoneName(WConverter::ConvertToNativeString(x));
76 }
77 }
78
79 property FieldName* __native {
80 FieldName* get() {
81 return _fieldName;
82 }
83 }
84
85 static bool operator== (WFieldName^ pComp1, WFieldName^ pComp2) {
86 return pComp1->FieldNumber == pComp2->FieldNumber
87 && pComp1->MainName == pComp2->MainName
88 && pComp1->ProtectionZoneName == pComp2->ProtectionZoneName
89 && pComp1->Warning1ZoneName == pComp2->Warning1ZoneName
90 && pComp1->Warning2ZoneName == pComp2->Warning2ZoneName;
91 }
92
93 static bool operator!= (WFieldName^ pComp1, WFieldName^ pComp2) {
94 return pComp1->FieldNumber != pComp2->FieldNumber
95 || pComp1->MainName != pComp2->MainName
96 || pComp1->ProtectionZoneName != pComp2->ProtectionZoneName
97 || pComp1->Warning1ZoneName != pComp2->Warning1ZoneName
98 || pComp1->Warning2ZoneName != pComp2->Warning2ZoneName;
99 }
100
101 private:
102 FieldName* _fieldName;
103 };
104 }
105 }
106}
Definition WAgvSensor.h:26
Definition WAvailableResolution.h:7
Definition WEnums.h:4
Definition FieldName.h:10
~WFieldName()
Definition WFieldName.h:29
WFieldName(WFieldName^ toCopy)
Definition WFieldName.h:21
WFieldName()
Definition WFieldName.h:17
property int FieldNumber
Definition WFieldName.h:33
static char * ConvertToNativeString(String^ toConvert)
Definition WUtilities.h:16