#pragma once #include #include #include #include "rapidxml/1.13/rapidxml.hpp" #include "rapidxml/1.13/rapidxml_print.hpp" #include "rapidxml/1.13/rapidxml_utils.hpp" #include "request/auditing_req.h" #include "response/object_resp.h" namespace qcloud_cos { class AuditingResp: public BaseResp { public: AuditingResp() {} virtual ~AuditingResp() {} virtual bool ParseFromXmlString(const std::string& body) { UNUSED_PARAM(body); return true;}; protected: static bool ParseSceneResultInfo(rapidxml::xml_node<>* root, SceneResultInfo& scene_result_info); static bool ParseOcrResultInfo(rapidxml::xml_node<>* root, OcrResult& ocr_results); static bool ParseLocation(rapidxml::xml_node<>* root, Location& location); static bool ParseUserInfo(rapidxml::xml_node<>* root, UserInfo& user_info); static bool ParseSegmentResult(rapidxml::xml_node<>* root, SegmentResult& segment_result); static bool ParseResults(rapidxml::xml_node<>* root, Result& result); static bool ParseObjectResults(rapidxml::xml_node<>* root, ObjectResults& object_results); static bool ParseRecognitionResult(rapidxml::xml_node<>* root, RecognitionResult& result); static bool ParseListInfo(rapidxml::xml_node<>* root, ListInfo& list_info); }; class AuditingJobResp : public AuditingResp { public: AuditingJobResp() {} virtual ~AuditingJobResp() {} virtual bool ParseFromXmlString(const std::string& body); virtual bool ParseJobsDetail(rapidxml::xml_node<>* root) { UNUSED_PARAM(root); return true;}; std::string GetRequestId() const { return m_request_id; } protected: std::string m_request_id; }; class ImageAuditingResp : public AuditingJobResp { public: ImageAuditingResp() {} virtual ~ImageAuditingResp() {} virtual bool ParseFromXmlString(const std::string& body) { UNUSED_PARAM(body); return true; } static bool ParseImageAuditingJobsDetail(rapidxml::xml_node<>* root, ImageAuditingJobsDetail& jobs_detail); }; class GetImageAuditingResp : public ImageAuditingResp { public: GetImageAuditingResp() {} virtual ~GetImageAuditingResp() {} virtual bool ParseFromXmlString(const std::string& body); ImageAuditingJobsDetail GetJobsDetail() const { return m_jobs_detail; } private: ImageAuditingJobsDetail m_jobs_detail; }; class BatchImageAuditingResp : public ImageAuditingResp { public: BatchImageAuditingResp() {} virtual ~BatchImageAuditingResp() {} virtual bool ParseFromXmlString(const std::string& body); std::vector GetJobsDetails() const { return m_jobs_details; } private: std::vector m_jobs_details; }; class DescribeImageAuditingJobResp : public ImageAuditingResp { public: DescribeImageAuditingJobResp() {} virtual ~DescribeImageAuditingJobResp() {} virtual bool ParseFromXmlString(const std::string& body); ImageAuditingJobsDetail GetJobsDetail() const { return m_jobs_detail; } private: ImageAuditingJobsDetail m_jobs_detail; std::string m_request_id; }; class VideoAuditingResp : public AuditingJobResp { public: VideoAuditingResp() {} virtual ~VideoAuditingResp() {} virtual bool ParseJobsDetail(rapidxml::xml_node<>* root); VideoAuditingJobsDetail GetJobsDetail() const { return m_jobs_detail; } protected: VideoAuditingJobsDetail m_jobs_detail; }; class CreateVideoAuditingJobResp : public VideoAuditingResp { public: CreateVideoAuditingJobResp() {} virtual ~CreateVideoAuditingJobResp() {} }; class DescribeVideoAuditingJobResp : public VideoAuditingResp { public: DescribeVideoAuditingJobResp() {} virtual ~DescribeVideoAuditingJobResp() {} }; class AudioAuditingResp : public AuditingJobResp { public: AudioAuditingResp() {} virtual ~AudioAuditingResp() {} virtual bool ParseJobsDetail(rapidxml::xml_node<>* root); AudioAuditingJobsDetail GetJobsDetail() const { return m_jobs_detail; } protected: AudioAuditingJobsDetail m_jobs_detail; }; class CreateAudioAuditingJobResp : public AudioAuditingResp { public: CreateAudioAuditingJobResp() {} virtual ~CreateAudioAuditingJobResp() {} }; class DescribeAudioAuditingJobResp : public AudioAuditingResp { public: DescribeAudioAuditingJobResp() {} virtual ~DescribeAudioAuditingJobResp() {} }; class TextAuditingResp : public AuditingJobResp { public: TextAuditingResp() {} virtual ~TextAuditingResp() {} virtual bool ParseJobsDetail(rapidxml::xml_node<>* root); TextAuditingJobsDetail GetJobsDetail() const { return m_jobs_detail; } protected: TextAuditingJobsDetail m_jobs_detail; }; class CreateTextAuditingJobResp : public TextAuditingResp { public: CreateTextAuditingJobResp() {} virtual ~CreateTextAuditingJobResp() {} }; class DescribeTextAuditingJobResp : public TextAuditingResp { public: DescribeTextAuditingJobResp() {} virtual ~DescribeTextAuditingJobResp() {} }; class DocumentAuditingResp : public AuditingJobResp { public: DocumentAuditingResp() {} virtual ~DocumentAuditingResp() {} virtual bool ParseJobsDetail(rapidxml::xml_node<>* root); DocumentAuditingJobsDetail GetJobsDetail() const { return m_jobs_detail; } protected: DocumentAuditingJobsDetail m_jobs_detail; }; class CreateDocumentAuditingJobResp : public DocumentAuditingResp { public: CreateDocumentAuditingJobResp() {} virtual ~CreateDocumentAuditingJobResp() {} }; class DescribeDocumentAuditingJobResp : public DocumentAuditingResp { public: DescribeDocumentAuditingJobResp() {} virtual ~DescribeDocumentAuditingJobResp() {} }; class WebPageAuditingResp : public AuditingJobResp { public: WebPageAuditingResp() {} virtual ~WebPageAuditingResp() {} virtual bool ParseJobsDetail(rapidxml::xml_node<>* root); WebPageAuditingJobsDetail GetJobsDetail() const { return m_jobs_detail; } protected: WebPageAuditingJobsDetail m_jobs_detail; }; class CreateWebPageAuditingJobResp : public WebPageAuditingResp { public: CreateWebPageAuditingJobResp() {} virtual ~CreateWebPageAuditingJobResp() {} }; class DescribeWebPageAuditingJobResp : public WebPageAuditingResp { public: DescribeWebPageAuditingJobResp() {} virtual ~DescribeWebPageAuditingJobResp() {} }; }