NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_cpp_doc_trans.h
浏览该文件的文档.
1
7#ifndef _NIM_SDK_CPP_DOC_TRANS_H_
8#define _NIM_SDK_CPP_DOC_TRANS_H_
9
10#include <functional>
11#include <string>
18namespace nim {
23public:
24 typedef std::function<void(int32_t code, const DocTransInfo& doc_info)> DocInfoCallback;
25 typedef std::function<void(int32_t code, int32_t count, const std::list<DocTransInfo>& doc_infos)> DocInfosCallback;
26
27public:
33 static void RegNotifyCb(const DocInfoCallback& cb);
34
42 static void GetInfo(const std::string& id, const std::string& json_extension, const DocInfoCallback& cb);
43
52 static void GetInfoList(const std::string& id, int32_t limit, const std::string& json_extension, const DocInfosCallback& cb);
53
61 static void DeleteInfo(const std::string& id, const std::string& json_extension, const DocInfoCallback& cb);
62
69 static std::string GetSourceFileUrl(const std::string& url_prefix, NIMDocTranscodingFileType file_type);
70
81 static std::string GetPageUrl(const std::string& url_prefix,
84 int32_t page_num);
85};
86
87} // namespace nim
88
89#endif //_NIM_SDK_CPP_DOC_TRANS_H_
NIM SDK提供的文档转换相关接口
Definition nim_cpp_doc_trans.h:22
std::function< void(int32_t code, int32_t count, const std::list< DocTransInfo > &doc_infos) DocInfosCallback)
Definition nim_cpp_doc_trans.h:25
std::function< void(int32_t code, const DocTransInfo &doc_info) DocInfoCallback)
Definition nim_cpp_doc_trans.h:24
namespace nim
NIMDocTranscodingFileType
Definition nim_doc_trans_def.h:18
NIMDocTranscodingImageType
Definition nim_doc_trans_def.h:28
NIMDocTranscodingQuality
Definition nim_doc_trans_def.h:36
文档传输辅助方法和数据结构定义
定义导出宏
#define NIM_SDK_CPPWRAPPER_DLL_API
Definition nim_sdk_cpp_wrapper.h:38
文档传输信息
Definition nim_doc_trans_helper.h:39