| Visioscan Set SDK Libraries 1.0.28 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
5 using namespace WEnumerations;
6 using namespace System;
7 using namespace std;
8 using namespace WUtils;
9 using namespace System::Collections::Generic;
10
11 namespace Com {
12 namespace AgvSensorWrapper {
13 namespace Structs {
14 public ref class WFieldName
15 {
16 public:
17 WFieldName() {
18 _fieldName = new FieldName();
19 }
20
21 WFieldName(WFieldName^ toCopy) {
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 }
29 ~WFieldName() {
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}
Com
Definition WAgvSensor.h:26
WUtils
Definition WAvailableResolution.h:7
WEnumerations
Definition WEnums.h:4
FieldName
Definition FieldName.h:10
Com::AgvSensorWrapper::Structs::WFieldName
Definition WFieldName.h:15
Com::AgvSensorWrapper::Structs::WFieldName::FieldNumber
property int FieldNumber
Definition WFieldName.h:33
Com::AgvSensorWrapper::Structs::WFieldName::~WFieldName
~WFieldName()
Definition WFieldName.h:29
Com::AgvSensorWrapper::Structs::WFieldName::WFieldName
WFieldName()
Definition WFieldName.h:17
Com::AgvSensorWrapper::Structs::WFieldName::WFieldName
WFieldName(WFieldName^ toCopy)
Definition WFieldName.h:21
WUtils::WConverter::ConvertToNativeString
static char * ConvertToNativeString(String^ toConvert)
Definition WUtilities.h:16