| Visioscan Set SDK Libraries 1.3.5 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 NearZoneName = toCopy->NearZoneName;
26 MiddleZoneName = toCopy->MiddleZoneName;
27 FarZoneName = toCopy->FarZoneName;
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^ NearZoneName {
52 String^ get() {
53 return gcnew String(_fieldName->GetNearZoneName().c_str());
54 }
55 void set(String^ x) {
56 _fieldName->SetNearZoneName(WConverter::ConvertToNativeString(x));
57 }
58 }
59
60 property String^ MiddleZoneName {
61 String^ get() {
62 return gcnew String(_fieldName->GetMiddleZoneName().c_str());
63 }
64 void set(String^ x) {
65 _fieldName->SetMiddleZoneName(WConverter::ConvertToNativeString(x));
66 }
67 }
68
69
70 property String^ FarZoneName {
71 String^ get() {
72 return gcnew String(_fieldName->GetFarZoneName().c_str());
73 }
74 void set(String^ x) {
75 _fieldName->SetFarZoneName(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 if (System::Object::ReferenceEquals(pComp1, pComp2))
87 return true;
88
89 if (System::Object::ReferenceEquals(pComp1, nullptr) ||
90 System::Object::ReferenceEquals(pComp2, nullptr)) {
91 return false;
92 }
93 return pComp1->FieldNumber == pComp2->FieldNumber
94 && pComp1->MainName == pComp2->MainName
95 && pComp1->NearZoneName == pComp2->NearZoneName
96 && pComp1->MiddleZoneName == pComp2->MiddleZoneName
97 && pComp1->FarZoneName == pComp2->FarZoneName;
98 }
99
100 static bool operator!= (WFieldName^ pComp1, WFieldName^ pComp2) {
101 return !(pComp1 == pComp2);
102 }
103
104 private:
105 FieldName* _fieldName;
106 };
107 }
108 }
109}
Com
Definition WActiveLevel.h:7
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