Release ScreenEC.
This commit is contained in:
@@ -58,6 +58,8 @@
|
||||
#include "model/RunMedQAResult.h"
|
||||
#include "model/ScreenChestCTRequest.h"
|
||||
#include "model/ScreenChestCTResult.h"
|
||||
#include "model/ScreenECRequest.h"
|
||||
#include "model/ScreenECResult.h"
|
||||
#include "model/SegmentOARRequest.h"
|
||||
#include "model/SegmentOARResult.h"
|
||||
#include "model/TranslateMedRequest.h"
|
||||
@@ -125,6 +127,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ScreenChestCTResult> ScreenChestCTOutcome;
|
||||
typedef std::future<ScreenChestCTOutcome> ScreenChestCTOutcomeCallable;
|
||||
typedef std::function<void(const ImageprocessClient*, const Model::ScreenChestCTRequest&, const ScreenChestCTOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ScreenChestCTAsyncHandler;
|
||||
typedef Outcome<Error, Model::ScreenECResult> ScreenECOutcome;
|
||||
typedef std::future<ScreenECOutcome> ScreenECOutcomeCallable;
|
||||
typedef std::function<void(const ImageprocessClient*, const Model::ScreenECRequest&, const ScreenECOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ScreenECAsyncHandler;
|
||||
typedef Outcome<Error, Model::SegmentOARResult> SegmentOAROutcome;
|
||||
typedef std::future<SegmentOAROutcome> SegmentOAROutcomeCallable;
|
||||
typedef std::function<void(const ImageprocessClient*, const Model::SegmentOARRequest&, const SegmentOAROutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SegmentOARAsyncHandler;
|
||||
@@ -190,6 +195,9 @@ namespace AlibabaCloud
|
||||
ScreenChestCTOutcome screenChestCT(const Model::ScreenChestCTRequest &request)const;
|
||||
void screenChestCTAsync(const Model::ScreenChestCTRequest& request, const ScreenChestCTAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ScreenChestCTOutcomeCallable screenChestCTCallable(const Model::ScreenChestCTRequest& request) const;
|
||||
ScreenECOutcome screenEC(const Model::ScreenECRequest &request)const;
|
||||
void screenECAsync(const Model::ScreenECRequest& request, const ScreenECAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ScreenECOutcomeCallable screenECCallable(const Model::ScreenECRequest& request) const;
|
||||
SegmentOAROutcome segmentOAR(const Model::SegmentOARRequest &request)const;
|
||||
void segmentOARAsync(const Model::SegmentOARRequest& request, const SegmentOARAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SegmentOAROutcomeCallable segmentOARCallable(const Model::SegmentOARRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMAGEPROCESS_MODEL_SCREENECREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGEPROCESS_MODEL_SCREENECREQUEST_H_
|
||||
|
||||
#include <alibabacloud/imageprocess/ImageprocessExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Imageprocess {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_IMAGEPROCESS_EXPORT ScreenECRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct URLList {
|
||||
std::string uRL;
|
||||
};
|
||||
ScreenECRequest();
|
||||
~ScreenECRequest();
|
||||
std::string getDataSourceType() const;
|
||||
void setDataSourceType(const std::string &dataSourceType);
|
||||
std::vector<URLList> getURLList() const;
|
||||
void setURLList(const std::vector<URLList> &uRLList);
|
||||
bool getAsync() const;
|
||||
void setAsync(bool async);
|
||||
|
||||
private:
|
||||
std::string dataSourceType_;
|
||||
std::vector<URLList> uRLList_;
|
||||
bool async_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Imageprocess
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_IMAGEPROCESS_MODEL_SCREENECREQUEST_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMAGEPROCESS_MODEL_SCREENECRESULT_H_
|
||||
#define ALIBABACLOUD_IMAGEPROCESS_MODEL_SCREENECRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imageprocess/ImageprocessExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageprocess
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEPROCESS_EXPORT ScreenECResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Lesion
|
||||
{
|
||||
std::string ecVolume;
|
||||
std::string benignVolume;
|
||||
std::string esoVolume;
|
||||
std::string mask;
|
||||
std::vector<std::string> possibilities;
|
||||
};
|
||||
Lesion lesion;
|
||||
};
|
||||
|
||||
|
||||
ScreenECResult();
|
||||
explicit ScreenECResult(const std::string &payload);
|
||||
~ScreenECResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEPROCESS_MODEL_SCREENECRESULT_H_
|
||||
Reference in New Issue
Block a user