123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- #pragma once
- #include <sstream>
- #include <string>
- #include <vector>
- #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<ImageAuditingJobsDetail> GetJobsDetails() const { return m_jobs_details; }
- private:
- std::vector<ImageAuditingJobsDetail> 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() {}
- };
- }
|