Go to the documentation of this file.
7 #ifndef _NIM_SDK_CPP_DOC_TRANS_HELPER_H_
8 #define _NIM_SDK_CPP_DOC_TRANS_HELPER_H_
13 #include "nim_define_include.h"
15 #include "nim_wrapper_util/nim_json_util.h"
28 : quality_(kNIMDocTranscodingQualityHigh)
50 : source_type_(kNIMDocTranscodingFileTypePPT)
52 , pic_type_(kNIMDocTranscodingImageTypeJPG)
53 , state_(kNIMDocTranscodingStatePreparing)
55 , continue_upload_state_(kNIMDocContinueUploadNone) {}
64 NIM_SDK_CPPWRAPPER_DLL_API
bool ParseDocTransInfo(
const std::string& json, DocTransInfo& info);
72 NIM_SDK_CPPWRAPPER_DLL_API int32_t
ParseDocTransInfos(
const std::string& json, std::list<DocTransInfo>& info_list);
76 #endif //_NIM_SDK_CPP_DOC_TRANS_HELPER_H_
NIMDocContinueUploadState continue_upload_state_
Definition: nim_doc_trans_helper.h:48
int page_num_
Definition: nim_doc_trans_helper.h:43
std::string url_prefix_
Definition: nim_doc_trans_helper.h:42
文档传输的图片信息
Definition: nim_doc_trans_helper.h:22
NIM_SDK_CPPWRAPPER_DLL_API int32_t ParseDocTransInfos(const std::string &json, std::list< DocTransInfo > &info_list)
解析一组文档传输信息
std::string name_
Definition: nim_doc_trans_helper.h:37
std::string upload_file_path
Definition: nim_doc_trans_helper.h:47
NIMDocTranscodingQuality quality_
Definition: nim_doc_trans_helper.h:23
int64_t size_
Definition: nim_doc_trans_helper.h:26
文档传输信息
Definition: nim_doc_trans_helper.h:35
NIMDocTranscodingImageType pic_type_
Definition: nim_doc_trans_helper.h:40
int width_
Definition: nim_doc_trans_helper.h:24
std::list< PictureInfo > pic_info_
Definition: nim_doc_trans_helper.h:45
int height_
Definition: nim_doc_trans_helper.h:25
NIM_SDK_CPPWRAPPER_DLL_API bool ParseDocTransInfo(const std::string &json, DocTransInfo &info)
解析文档传输信息
std::string id_
Definition: nim_doc_trans_helper.h:36
NIMDocTranscodingFileType source_type_
Definition: nim_doc_trans_helper.h:38
int64_t size_
Definition: nim_doc_trans_helper.h:39
std::string ext_
Definition: nim_doc_trans_helper.h:44
NIMDocTranscodingState state_
Definition: nim_doc_trans_helper.h:41