Update TrimDocument.

This commit is contained in:
sdk-team
2023-07-03 10:20:32 +00:00
parent 43d1c945b8
commit ece2943ddb
36 changed files with 3 additions and 2234 deletions

View File

@@ -51,42 +51,6 @@ OcrClient::OcrClient(const std::string & accessKeyId, const std::string & access
OcrClient::~OcrClient()
{}
OcrClient::DetectCardScreenshotOutcome OcrClient::detectCardScreenshot(const DetectCardScreenshotRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DetectCardScreenshotOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DetectCardScreenshotOutcome(DetectCardScreenshotResult(outcome.result()));
else
return DetectCardScreenshotOutcome(outcome.error());
}
void OcrClient::detectCardScreenshotAsync(const DetectCardScreenshotRequest& request, const DetectCardScreenshotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, detectCardScreenshot(request), context);
};
asyncExecute(new Runnable(fn));
}
OcrClient::DetectCardScreenshotOutcomeCallable OcrClient::detectCardScreenshotCallable(const DetectCardScreenshotRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DetectCardScreenshotOutcome()>>(
[this, request]()
{
return this->detectCardScreenshot(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OcrClient::GetAsyncJobResultOutcome OcrClient::getAsyncJobResult(const GetAsyncJobResultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -123,42 +87,6 @@ OcrClient::GetAsyncJobResultOutcomeCallable OcrClient::getAsyncJobResultCallable
return task->get_future();
}
OcrClient::RecognizeAccountPageOutcome OcrClient::recognizeAccountPage(const RecognizeAccountPageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RecognizeAccountPageOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RecognizeAccountPageOutcome(RecognizeAccountPageResult(outcome.result()));
else
return RecognizeAccountPageOutcome(outcome.error());
}
void OcrClient::recognizeAccountPageAsync(const RecognizeAccountPageRequest& request, const RecognizeAccountPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, recognizeAccountPage(request), context);
};
asyncExecute(new Runnable(fn));
}
OcrClient::RecognizeAccountPageOutcomeCallable OcrClient::recognizeAccountPageCallable(const RecognizeAccountPageRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RecognizeAccountPageOutcome()>>(
[this, request]()
{
return this->recognizeAccountPage(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OcrClient::RecognizeBankCardOutcome OcrClient::recognizeBankCard(const RecognizeBankCardRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -303,42 +231,6 @@ OcrClient::RecognizeCharacterOutcomeCallable OcrClient::recognizeCharacterCallab
return task->get_future();
}
OcrClient::RecognizeChinapassportOutcome OcrClient::recognizeChinapassport(const RecognizeChinapassportRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RecognizeChinapassportOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RecognizeChinapassportOutcome(RecognizeChinapassportResult(outcome.result()));
else
return RecognizeChinapassportOutcome(outcome.error());
}
void OcrClient::recognizeChinapassportAsync(const RecognizeChinapassportRequest& request, const RecognizeChinapassportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, recognizeChinapassport(request), context);
};
asyncExecute(new Runnable(fn));
}
OcrClient::RecognizeChinapassportOutcomeCallable OcrClient::recognizeChinapassportCallable(const RecognizeChinapassportRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RecognizeChinapassportOutcome()>>(
[this, request]()
{
return this->recognizeChinapassport(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OcrClient::RecognizeDriverLicenseOutcome OcrClient::recognizeDriverLicense(const RecognizeDriverLicenseRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -483,42 +375,6 @@ OcrClient::RecognizeLicensePlateOutcomeCallable OcrClient::recognizeLicensePlate
return task->get_future();
}
OcrClient::RecognizePassportMRZOutcome OcrClient::recognizePassportMRZ(const RecognizePassportMRZRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RecognizePassportMRZOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RecognizePassportMRZOutcome(RecognizePassportMRZResult(outcome.result()));
else
return RecognizePassportMRZOutcome(outcome.error());
}
void OcrClient::recognizePassportMRZAsync(const RecognizePassportMRZRequest& request, const RecognizePassportMRZAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, recognizePassportMRZ(request), context);
};
asyncExecute(new Runnable(fn));
}
OcrClient::RecognizePassportMRZOutcomeCallable OcrClient::recognizePassportMRZCallable(const RecognizePassportMRZRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RecognizePassportMRZOutcome()>>(
[this, request]()
{
return this->recognizePassportMRZ(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OcrClient::RecognizePdfOutcome OcrClient::recognizePdf(const RecognizePdfRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -555,42 +411,6 @@ OcrClient::RecognizePdfOutcomeCallable OcrClient::recognizePdfCallable(const Rec
return task->get_future();
}
OcrClient::RecognizePoiNameOutcome OcrClient::recognizePoiName(const RecognizePoiNameRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RecognizePoiNameOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RecognizePoiNameOutcome(RecognizePoiNameResult(outcome.result()));
else
return RecognizePoiNameOutcome(outcome.error());
}
void OcrClient::recognizePoiNameAsync(const RecognizePoiNameRequest& request, const RecognizePoiNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, recognizePoiName(request), context);
};
asyncExecute(new Runnable(fn));
}
OcrClient::RecognizePoiNameOutcomeCallable OcrClient::recognizePoiNameCallable(const RecognizePoiNameRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RecognizePoiNameOutcome()>>(
[this, request]()
{
return this->recognizePoiName(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OcrClient::RecognizeQrCodeOutcome OcrClient::recognizeQrCode(const RecognizeQrCodeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -735,42 +555,6 @@ OcrClient::RecognizeTableOutcomeCallable OcrClient::recognizeTableCallable(const
return task->get_future();
}
OcrClient::RecognizeTakeoutOrderOutcome OcrClient::recognizeTakeoutOrder(const RecognizeTakeoutOrderRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RecognizeTakeoutOrderOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RecognizeTakeoutOrderOutcome(RecognizeTakeoutOrderResult(outcome.result()));
else
return RecognizeTakeoutOrderOutcome(outcome.error());
}
void OcrClient::recognizeTakeoutOrderAsync(const RecognizeTakeoutOrderRequest& request, const RecognizeTakeoutOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, recognizeTakeoutOrder(request), context);
};
asyncExecute(new Runnable(fn));
}
OcrClient::RecognizeTakeoutOrderOutcomeCallable OcrClient::recognizeTakeoutOrderCallable(const RecognizeTakeoutOrderRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RecognizeTakeoutOrderOutcome()>>(
[this, request]()
{
return this->recognizeTakeoutOrder(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OcrClient::RecognizeTaxiInvoiceOutcome OcrClient::recognizeTaxiInvoice(const RecognizeTaxiInvoiceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -951,42 +735,6 @@ OcrClient::RecognizeVINCodeOutcomeCallable OcrClient::recognizeVINCodeCallable(c
return task->get_future();
}
OcrClient::RecognizeVerificationcodeOutcome OcrClient::recognizeVerificationcode(const RecognizeVerificationcodeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RecognizeVerificationcodeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RecognizeVerificationcodeOutcome(RecognizeVerificationcodeResult(outcome.result()));
else
return RecognizeVerificationcodeOutcome(outcome.error());
}
void OcrClient::recognizeVerificationcodeAsync(const RecognizeVerificationcodeRequest& request, const RecognizeVerificationcodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, recognizeVerificationcode(request), context);
};
asyncExecute(new Runnable(fn));
}
OcrClient::RecognizeVerificationcodeOutcomeCallable OcrClient::recognizeVerificationcodeCallable(const RecognizeVerificationcodeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RecognizeVerificationcodeOutcome()>>(
[this, request]()
{
return this->recognizeVerificationcode(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OcrClient::RecognizeVideoCharacterOutcome OcrClient::recognizeVideoCharacter(const RecognizeVideoCharacterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1023,39 +771,3 @@ OcrClient::RecognizeVideoCharacterOutcomeCallable OcrClient::recognizeVideoChara
return task->get_future();
}
OcrClient::TrimDocumentOutcome OcrClient::trimDocument(const TrimDocumentRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TrimDocumentOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return TrimDocumentOutcome(TrimDocumentResult(outcome.result()));
else
return TrimDocumentOutcome(outcome.error());
}
void OcrClient::trimDocumentAsync(const TrimDocumentRequest& request, const TrimDocumentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, trimDocument(request), context);
};
asyncExecute(new Runnable(fn));
}
OcrClient::TrimDocumentOutcomeCallable OcrClient::trimDocumentCallable(const TrimDocumentRequest &request) const
{
auto task = std::make_shared<std::packaged_task<TrimDocumentOutcome()>>(
[this, request]()
{
return this->trimDocument(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -1,36 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ocr/model/DetectCardScreenshotRequest.h>
using AlibabaCloud::Ocr::Model::DetectCardScreenshotRequest;
DetectCardScreenshotRequest::DetectCardScreenshotRequest()
: RpcServiceRequest("ocr", "2019-12-30", "DetectCardScreenshot") {
setMethod(HttpRequest::Method::Post);
}
DetectCardScreenshotRequest::~DetectCardScreenshotRequest() {}
std::string DetectCardScreenshotRequest::getImageURL() const {
return imageURL_;
}
void DetectCardScreenshotRequest::setImageURL(const std::string &imageURL) {
imageURL_ = imageURL;
setBodyParameter(std::string("ImageURL"), imageURL);
}

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ocr/model/DetectCardScreenshotResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ocr;
using namespace AlibabaCloud::Ocr::Model;
DetectCardScreenshotResult::DetectCardScreenshotResult() :
ServiceResult()
{}
DetectCardScreenshotResult::DetectCardScreenshotResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DetectCardScreenshotResult::~DetectCardScreenshotResult()
{}
void DetectCardScreenshotResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["IsBlur"].isNull())
data_.isBlur = dataNode["IsBlur"].asString() == "true";
if(!dataNode["IsCard"].isNull())
data_.isCard = dataNode["IsCard"].asString() == "true";
auto spoofResultNode = dataNode["SpoofResult"];
if(!spoofResultNode["IsSpoof"].isNull())
data_.spoofResult.isSpoof = spoofResultNode["IsSpoof"].asString() == "true";
auto resultMapNode = spoofResultNode["ResultMap"];
if(!resultMapNode["ScreenThreshold"].isNull())
data_.spoofResult.resultMap.screenThreshold = std::stof(resultMapNode["ScreenThreshold"].asString());
if(!resultMapNode["ScreenScore"].isNull())
data_.spoofResult.resultMap.screenScore = std::stof(resultMapNode["ScreenScore"].asString());
}
DetectCardScreenshotResult::Data DetectCardScreenshotResult::getData()const
{
return data_;
}

View File

@@ -1,45 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ocr/model/RecognizeAccountPageRequest.h>
using AlibabaCloud::Ocr::Model::RecognizeAccountPageRequest;
RecognizeAccountPageRequest::RecognizeAccountPageRequest()
: RpcServiceRequest("ocr", "2019-12-30", "RecognizeAccountPage") {
setMethod(HttpRequest::Method::Post);
}
RecognizeAccountPageRequest::~RecognizeAccountPageRequest() {}
int RecognizeAccountPageRequest::getImageType() const {
return imageType_;
}
void RecognizeAccountPageRequest::setImageType(int imageType) {
imageType_ = imageType;
setBodyParameter(std::string("ImageType"), std::to_string(imageType));
}
std::string RecognizeAccountPageRequest::getImageURL() const {
return imageURL_;
}
void RecognizeAccountPageRequest::setImageURL(const std::string &imageURL) {
imageURL_ = imageURL;
setBodyParameter(std::string("ImageURL"), imageURL);
}

View File

@@ -1,133 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ocr/model/RecognizeAccountPageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ocr;
using namespace AlibabaCloud::Ocr::Model;
RecognizeAccountPageResult::RecognizeAccountPageResult() :
ServiceResult()
{}
RecognizeAccountPageResult::RecognizeAccountPageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RecognizeAccountPageResult::~RecognizeAccountPageResult()
{}
void RecognizeAccountPageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Gender"].isNull())
data_.gender = dataNode["Gender"].asString();
if(!dataNode["Angle"].isNull())
data_.angle = std::stof(dataNode["Angle"].asString());
if(!dataNode["Nationality"].isNull())
data_.nationality = dataNode["Nationality"].asString();
if(!dataNode["BirthPlace"].isNull())
data_.birthPlace = dataNode["BirthPlace"].asString();
if(!dataNode["BirthDate"].isNull())
data_.birthDate = dataNode["BirthDate"].asString();
if(!dataNode["Relation"].isNull())
data_.relation = dataNode["Relation"].asString();
if(!dataNode["NativePlace"].isNull())
data_.nativePlace = dataNode["NativePlace"].asString();
if(!dataNode["Name"].isNull())
data_.name = dataNode["Name"].asString();
if(!dataNode["IDNumber"].isNull())
data_.iDNumber = dataNode["IDNumber"].asString();
auto allRegisterStampAreasNode = dataNode["RegisterStampAreas"]["RegisterStampArea"];
for (auto dataNodeRegisterStampAreasRegisterStampArea : allRegisterStampAreasNode)
{
Data::RegisterStampArea registerStampAreaObject;
if(!dataNodeRegisterStampAreasRegisterStampArea["Top"].isNull())
registerStampAreaObject.top = std::stoi(dataNodeRegisterStampAreasRegisterStampArea["Top"].asString());
if(!dataNodeRegisterStampAreasRegisterStampArea["Width"].isNull())
registerStampAreaObject.width = std::stoi(dataNodeRegisterStampAreasRegisterStampArea["Width"].asString());
if(!dataNodeRegisterStampAreasRegisterStampArea["Height"].isNull())
registerStampAreaObject.height = std::stoi(dataNodeRegisterStampAreasRegisterStampArea["Height"].asString());
if(!dataNodeRegisterStampAreasRegisterStampArea["Left"].isNull())
registerStampAreaObject.left = std::stoi(dataNodeRegisterStampAreasRegisterStampArea["Left"].asString());
data_.registerStampAreas.push_back(registerStampAreaObject);
}
auto allOtherStampAreasNode = dataNode["OtherStampAreas"]["OtherStampArea"];
for (auto dataNodeOtherStampAreasOtherStampArea : allOtherStampAreasNode)
{
Data::OtherStampArea otherStampAreaObject;
if(!dataNodeOtherStampAreasOtherStampArea["Top"].isNull())
otherStampAreaObject.top = std::stoi(dataNodeOtherStampAreasOtherStampArea["Top"].asString());
if(!dataNodeOtherStampAreasOtherStampArea["Width"].isNull())
otherStampAreaObject.width = std::stoi(dataNodeOtherStampAreasOtherStampArea["Width"].asString());
if(!dataNodeOtherStampAreasOtherStampArea["Height"].isNull())
otherStampAreaObject.height = std::stoi(dataNodeOtherStampAreasOtherStampArea["Height"].asString());
if(!dataNodeOtherStampAreasOtherStampArea["Left"].isNull())
otherStampAreaObject.left = std::stoi(dataNodeOtherStampAreasOtherStampArea["Left"].asString());
data_.otherStampAreas.push_back(otherStampAreaObject);
}
auto allUndertakeStampAreasNode = dataNode["UndertakeStampAreas"]["UndertakeStampArea"];
for (auto dataNodeUndertakeStampAreasUndertakeStampArea : allUndertakeStampAreasNode)
{
Data::UndertakeStampArea undertakeStampAreaObject;
if(!dataNodeUndertakeStampAreasUndertakeStampArea["Top"].isNull())
undertakeStampAreaObject.top = std::stoi(dataNodeUndertakeStampAreasUndertakeStampArea["Top"].asString());
if(!dataNodeUndertakeStampAreasUndertakeStampArea["Width"].isNull())
undertakeStampAreaObject.width = std::stoi(dataNodeUndertakeStampAreasUndertakeStampArea["Width"].asString());
if(!dataNodeUndertakeStampAreasUndertakeStampArea["Height"].isNull())
undertakeStampAreaObject.height = std::stoi(dataNodeUndertakeStampAreasUndertakeStampArea["Height"].asString());
if(!dataNodeUndertakeStampAreasUndertakeStampArea["Left"].isNull())
undertakeStampAreaObject.left = std::stoi(dataNodeUndertakeStampAreasUndertakeStampArea["Left"].asString());
data_.undertakeStampAreas.push_back(undertakeStampAreaObject);
}
auto allInvalidStampAreasNode = dataNode["InvalidStampAreas"]["InvalidStampArea"];
for (auto dataNodeInvalidStampAreasInvalidStampArea : allInvalidStampAreasNode)
{
Data::InvalidStampArea invalidStampAreaObject;
if(!dataNodeInvalidStampAreasInvalidStampArea["Top"].isNull())
invalidStampAreaObject.top = std::stoi(dataNodeInvalidStampAreasInvalidStampArea["Top"].asString());
if(!dataNodeInvalidStampAreasInvalidStampArea["Width"].isNull())
invalidStampAreaObject.width = std::stoi(dataNodeInvalidStampAreasInvalidStampArea["Width"].asString());
if(!dataNodeInvalidStampAreasInvalidStampArea["Height"].isNull())
invalidStampAreaObject.height = std::stoi(dataNodeInvalidStampAreasInvalidStampArea["Height"].asString());
if(!dataNodeInvalidStampAreasInvalidStampArea["Left"].isNull())
invalidStampAreaObject.left = std::stoi(dataNodeInvalidStampAreasInvalidStampArea["Left"].asString());
data_.invalidStampAreas.push_back(invalidStampAreaObject);
}
auto titleAreaNode = dataNode["TitleArea"];
if(!titleAreaNode["Top"].isNull())
data_.titleArea.top = std::stoi(titleAreaNode["Top"].asString());
if(!titleAreaNode["Width"].isNull())
data_.titleArea.width = std::stoi(titleAreaNode["Width"].asString());
if(!titleAreaNode["Height"].isNull())
data_.titleArea.height = std::stoi(titleAreaNode["Height"].asString());
if(!titleAreaNode["Left"].isNull())
data_.titleArea.left = std::stoi(titleAreaNode["Left"].asString());
}
RecognizeAccountPageResult::Data RecognizeAccountPageResult::getData()const
{
return data_;
}

View File

@@ -1,36 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ocr/model/RecognizeChinapassportRequest.h>
using AlibabaCloud::Ocr::Model::RecognizeChinapassportRequest;
RecognizeChinapassportRequest::RecognizeChinapassportRequest()
: RpcServiceRequest("ocr", "2019-12-30", "RecognizeChinapassport") {
setMethod(HttpRequest::Method::Post);
}
RecognizeChinapassportRequest::~RecognizeChinapassportRequest() {}
std::string RecognizeChinapassportRequest::getImageURL() const {
return imageURL_;
}
void RecognizeChinapassportRequest::setImageURL(const std::string &imageURL) {
imageURL_ = imageURL;
setBodyParameter(std::string("ImageURL"), imageURL);
}

View File

@@ -1,94 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ocr/model/RecognizeChinapassportResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ocr;
using namespace AlibabaCloud::Ocr::Model;
RecognizeChinapassportResult::RecognizeChinapassportResult() :
ServiceResult()
{}
RecognizeChinapassportResult::RecognizeChinapassportResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RecognizeChinapassportResult::~RecognizeChinapassportResult()
{}
void RecognizeChinapassportResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Type"].isNull())
data_.type = dataNode["Type"].asString();
if(!dataNode["Sex"].isNull())
data_.sex = dataNode["Sex"].asString();
if(!dataNode["Authority"].isNull())
data_.authority = dataNode["Authority"].asString();
if(!dataNode["IssuePlaceRaw"].isNull())
data_.issuePlaceRaw = dataNode["IssuePlaceRaw"].asString();
if(!dataNode["Success"].isNull())
data_.success = dataNode["Success"].asString() == "true";
if(!dataNode["LineOne"].isNull())
data_.lineOne = dataNode["LineOne"].asString();
if(!dataNode["ExpiryDate"].isNull())
data_.expiryDate = dataNode["ExpiryDate"].asString();
if(!dataNode["BirthPlace"].isNull())
data_.birthPlace = dataNode["BirthPlace"].asString();
if(!dataNode["PassportNo"].isNull())
data_.passportNo = dataNode["PassportNo"].asString();
if(!dataNode["BirthPlaceRaw"].isNull())
data_.birthPlaceRaw = dataNode["BirthPlaceRaw"].asString();
if(!dataNode["IssueDate"].isNull())
data_.issueDate = dataNode["IssueDate"].asString();
if(!dataNode["SourceCountry"].isNull())
data_.sourceCountry = dataNode["SourceCountry"].asString();
if(!dataNode["BirthDate"].isNull())
data_.birthDate = dataNode["BirthDate"].asString();
if(!dataNode["NameChineseRaw"].isNull())
data_.nameChineseRaw = dataNode["NameChineseRaw"].asString();
if(!dataNode["IssuePlace"].isNull())
data_.issuePlace = dataNode["IssuePlace"].asString();
if(!dataNode["NameChinese"].isNull())
data_.nameChinese = dataNode["NameChinese"].asString();
if(!dataNode["LineZero"].isNull())
data_.lineZero = dataNode["LineZero"].asString();
if(!dataNode["Country"].isNull())
data_.country = dataNode["Country"].asString();
if(!dataNode["BirthDay"].isNull())
data_.birthDay = dataNode["BirthDay"].asString();
if(!dataNode["ExpiryDay"].isNull())
data_.expiryDay = dataNode["ExpiryDay"].asString();
if(!dataNode["Name"].isNull())
data_.name = dataNode["Name"].asString();
if(!dataNode["PersonId"].isNull())
data_.personId = dataNode["PersonId"].asString();
}
RecognizeChinapassportResult::Data RecognizeChinapassportResult::getData()const
{
return data_;
}

View File

@@ -1,36 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ocr/model/RecognizePassportMRZRequest.h>
using AlibabaCloud::Ocr::Model::RecognizePassportMRZRequest;
RecognizePassportMRZRequest::RecognizePassportMRZRequest()
: RpcServiceRequest("ocr", "2019-12-30", "RecognizePassportMRZ") {
setMethod(HttpRequest::Method::Post);
}
RecognizePassportMRZRequest::~RecognizePassportMRZRequest() {}
std::string RecognizePassportMRZRequest::getImageURL() const {
return imageURL_;
}
void RecognizePassportMRZRequest::setImageURL(const std::string &imageURL) {
imageURL_ = imageURL;
setBodyParameter(std::string("ImageURL"), imageURL);
}

View File

@@ -1,67 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ocr/model/RecognizePassportMRZResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ocr;
using namespace AlibabaCloud::Ocr::Model;
RecognizePassportMRZResult::RecognizePassportMRZResult() :
ServiceResult()
{}
RecognizePassportMRZResult::RecognizePassportMRZResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RecognizePassportMRZResult::~RecognizePassportMRZResult()
{}
void RecognizePassportMRZResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allRegionsNode = dataNode["Regions"]["Region"];
for (auto dataNodeRegionsRegion : allRegionsNode)
{
Data::Region regionObject;
if(!dataNodeRegionsRegion["RecognitionScore"].isNull())
regionObject.recognitionScore = std::stof(dataNodeRegionsRegion["RecognitionScore"].asString());
if(!dataNodeRegionsRegion["DetectionScore"].isNull())
regionObject.detectionScore = std::stof(dataNodeRegionsRegion["DetectionScore"].asString());
if(!dataNodeRegionsRegion["Name"].isNull())
regionObject.name = dataNodeRegionsRegion["Name"].asString();
if(!dataNodeRegionsRegion["Content"].isNull())
regionObject.content = dataNodeRegionsRegion["Content"].asString();
auto allBandBoxes = value["BandBoxes"]["BandBox"];
for (auto value : allBandBoxes)
regionObject.bandBoxes.push_back(value.asString());
data_.regions.push_back(regionObject);
}
}
RecognizePassportMRZResult::Data RecognizePassportMRZResult::getData()const
{
return data_;
}

View File

@@ -1,36 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ocr/model/RecognizePoiNameRequest.h>
using AlibabaCloud::Ocr::Model::RecognizePoiNameRequest;
RecognizePoiNameRequest::RecognizePoiNameRequest()
: RpcServiceRequest("ocr", "2019-12-30", "RecognizePoiName") {
setMethod(HttpRequest::Method::Post);
}
RecognizePoiNameRequest::~RecognizePoiNameRequest() {}
std::string RecognizePoiNameRequest::getImageURL() const {
return imageURL_;
}
void RecognizePoiNameRequest::setImageURL(const std::string &imageURL) {
imageURL_ = imageURL;
setBodyParameter(std::string("ImageURL"), imageURL);
}

View File

@@ -1,78 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ocr/model/RecognizePoiNameResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ocr;
using namespace AlibabaCloud::Ocr::Model;
RecognizePoiNameResult::RecognizePoiNameResult() :
ServiceResult()
{}
RecognizePoiNameResult::RecognizePoiNameResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RecognizePoiNameResult::~RecognizePoiNameResult()
{}
void RecognizePoiNameResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allSignboardsNode = dataNode["Signboards"]["SignboardsItem"];
for (auto dataNodeSignboardsSignboardsItem : allSignboardsNode)
{
Data::SignboardsItem signboardsItemObject;
auto allTextsNode = dataNodeSignboardsSignboardsItem["Texts"]["TextsItem"];
for (auto dataNodeSignboardsSignboardsItemTextsTextsItem : allTextsNode)
{
Data::SignboardsItem::TextsItem textsObject;
if(!dataNodeSignboardsSignboardsItemTextsTextsItem["Type"].isNull())
textsObject.type = dataNodeSignboardsSignboardsItemTextsTextsItem["Type"].asString();
if(!dataNodeSignboardsSignboardsItemTextsTextsItem["Score"].isNull())
textsObject.score = std::stof(dataNodeSignboardsSignboardsItemTextsTextsItem["Score"].asString());
if(!dataNodeSignboardsSignboardsItemTextsTextsItem["Tag"].isNull())
textsObject.tag = dataNodeSignboardsSignboardsItemTextsTextsItem["Tag"].asString();
if(!dataNodeSignboardsSignboardsItemTextsTextsItem["Label"].isNull())
textsObject.label = dataNodeSignboardsSignboardsItemTextsTextsItem["Label"].asString();
auto allPoints = value["Points"]["Points"];
for (auto value : allPoints)
textsObject.points.push_back(value.asString());
signboardsItemObject.texts.push_back(textsObject);
}
data_.signboards.push_back(signboardsItemObject);
}
auto summaryNode = dataNode["Summary"];
if(!summaryNode["Brand"].isNull())
data_.summary.brand = summaryNode["Brand"].asString();
if(!summaryNode["Score"].isNull())
data_.summary.score = std::stof(summaryNode["Score"].asString());
}
RecognizePoiNameResult::Data RecognizePoiNameResult::getData()const
{
return data_;
}

View File

@@ -1,36 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ocr/model/RecognizeTakeoutOrderRequest.h>
using AlibabaCloud::Ocr::Model::RecognizeTakeoutOrderRequest;
RecognizeTakeoutOrderRequest::RecognizeTakeoutOrderRequest()
: RpcServiceRequest("ocr", "2019-12-30", "RecognizeTakeoutOrder") {
setMethod(HttpRequest::Method::Post);
}
RecognizeTakeoutOrderRequest::~RecognizeTakeoutOrderRequest() {}
std::string RecognizeTakeoutOrderRequest::getImageURL() const {
return imageURL_;
}
void RecognizeTakeoutOrderRequest::setImageURL(const std::string &imageURL) {
imageURL_ = imageURL;
setBodyParameter(std::string("ImageURL"), imageURL);
}

View File

@@ -1,65 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ocr/model/RecognizeTakeoutOrderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ocr;
using namespace AlibabaCloud::Ocr::Model;
RecognizeTakeoutOrderResult::RecognizeTakeoutOrderResult() :
ServiceResult()
{}
RecognizeTakeoutOrderResult::RecognizeTakeoutOrderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RecognizeTakeoutOrderResult::~RecognizeTakeoutOrderResult()
{}
void RecognizeTakeoutOrderResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allElementsNode = dataNode["Elements"]["Element"];
for (auto dataNodeElementsElement : allElementsNode)
{
Data::Element elementObject;
if(!dataNodeElementsElement["Value"].isNull())
elementObject.value = dataNodeElementsElement["Value"].asString();
if(!dataNodeElementsElement["Score"].isNull())
elementObject.score = std::stof(dataNodeElementsElement["Score"].asString());
if(!dataNodeElementsElement["Name"].isNull())
elementObject.name = dataNodeElementsElement["Name"].asString();
auto allBoxes = value["Boxes"]["Box"];
for (auto value : allBoxes)
elementObject.boxes.push_back(value.asString());
data_.elements.push_back(elementObject);
}
}
RecognizeTakeoutOrderResult::Data RecognizeTakeoutOrderResult::getData()const
{
return data_;
}

View File

@@ -1,36 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ocr/model/RecognizeVerificationcodeRequest.h>
using AlibabaCloud::Ocr::Model::RecognizeVerificationcodeRequest;
RecognizeVerificationcodeRequest::RecognizeVerificationcodeRequest()
: RpcServiceRequest("ocr", "2019-12-30", "RecognizeVerificationcode") {
setMethod(HttpRequest::Method::Post);
}
RecognizeVerificationcodeRequest::~RecognizeVerificationcodeRequest() {}
std::string RecognizeVerificationcodeRequest::getImageURL() const {
return imageURL_;
}
void RecognizeVerificationcodeRequest::setImageURL(const std::string &imageURL) {
imageURL_ = imageURL;
setBodyParameter(std::string("ImageURL"), imageURL);
}

View File

@@ -1,52 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ocr/model/RecognizeVerificationcodeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ocr;
using namespace AlibabaCloud::Ocr::Model;
RecognizeVerificationcodeResult::RecognizeVerificationcodeResult() :
ServiceResult()
{}
RecognizeVerificationcodeResult::RecognizeVerificationcodeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RecognizeVerificationcodeResult::~RecognizeVerificationcodeResult()
{}
void RecognizeVerificationcodeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Content"].isNull())
data_.content = dataNode["Content"].asString();
}
RecognizeVerificationcodeResult::Data RecognizeVerificationcodeResult::getData()const
{
return data_;
}

View File

@@ -1,63 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ocr/model/TrimDocumentRequest.h>
using AlibabaCloud::Ocr::Model::TrimDocumentRequest;
TrimDocumentRequest::TrimDocumentRequest()
: RpcServiceRequest("ocr", "2019-12-30", "TrimDocument") {
setMethod(HttpRequest::Method::Post);
}
TrimDocumentRequest::~TrimDocumentRequest() {}
std::string TrimDocumentRequest::getFileType() const {
return fileType_;
}
void TrimDocumentRequest::setFileType(const std::string &fileType) {
fileType_ = fileType;
setBodyParameter(std::string("FileType"), fileType);
}
std::string TrimDocumentRequest::getOutputType() const {
return outputType_;
}
void TrimDocumentRequest::setOutputType(const std::string &outputType) {
outputType_ = outputType;
setBodyParameter(std::string("OutputType"), outputType);
}
bool TrimDocumentRequest::getAsync() const {
return async_;
}
void TrimDocumentRequest::setAsync(bool async) {
async_ = async;
setBodyParameter(std::string("Async"), async ? "true" : "false");
}
std::string TrimDocumentRequest::getFileURL() const {
return fileURL_;
}
void TrimDocumentRequest::setFileURL(const std::string &fileURL) {
fileURL_ = fileURL;
setBodyParameter(std::string("FileURL"), fileURL);
}

View File

@@ -1,66 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ocr/model/TrimDocumentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ocr;
using namespace AlibabaCloud::Ocr::Model;
TrimDocumentResult::TrimDocumentResult() :
ServiceResult()
{}
TrimDocumentResult::TrimDocumentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
TrimDocumentResult::~TrimDocumentResult()
{}
void TrimDocumentResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Content"].isNull())
data_.content = dataNode["Content"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string TrimDocumentResult::getMessage()const
{
return message_;
}
TrimDocumentResult::Data TrimDocumentResult::getData()const
{
return data_;
}
std::string TrimDocumentResult::getCode()const
{
return code_;
}