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

Loading...
Searching...
No Matches
WConfigurationResult.h
1#pragma once
2
3#include <List>
4#include <ConfigurationResult.h>
5#include "WUtilities.h"
6
7 using namespace System::Collections;
8 using namespace System::Collections::Generic;
9 using namespace System;
10 using namespace std;
11 using namespace WUtils;
15 public ref class WConfigurationResult
16{
17 public:
18 WConfigurationResult() {
19 _result = new ConfigurationResult();
20 }
21
22 WConfigurationResult(bool pResult) {
23 _result = new ConfigurationResult(pResult);
24 }
25
26 ~WConfigurationResult() {
27 delete(_result);
28 }
29
30 property bool Result {
31 bool get() {
32 return _result->GetResult();
33 }
34
35 void set(bool x) {
36 _result->SetResult(x);
37 }
38 }
39
40 property List<String^>^ Reasons {
41 List<String^>^ get() {
42 vector<string> actual = _result->GetReasons();
43 List<String^>^ toReturn = gcnew List<String^>();
44 String^ toAdd;
45 for (int i = 0; i < actual.size(); i++) {
46 toAdd = gcnew String(actual[i].c_str());
47 toReturn->Add(toAdd);
48 }
49
50 return toReturn;
51 }
52 }
53
54 void PushReason(String^ pReason) {
55 _result->PushReason(WConverter::ConvertToNativeString(pReason));
56 }
57 private:
58 ConfigurationResult* _result;
59};
60
WUtils
Definition WAvailableResolution.h:7
ConfigurationResult
Helper to encapsulate the configuration result.
Definition ConfigurationResult.h:15
WConfigurationResult
A wrapper on the ConfigurationResult data encapsulation.
Definition WConfigurationResult.h:16
WConfigurationResult::WConfigurationResult
WConfigurationResult(bool pResult)
Definition WConfigurationResult.h:22
WConfigurationResult::~WConfigurationResult
~WConfigurationResult()
Definition WConfigurationResult.h:26
WConfigurationResult::Result
property bool Result
Definition WConfigurationResult.h:30
WConfigurationResult::WConfigurationResult
WConfigurationResult()
Definition WConfigurationResult.h:18
WUtils::WConverter::ConvertToNativeString
static char * ConvertToNativeString(String^ toConvert)
Definition WUtilities.h:16