![]() |
C++客户端开发接口库 V5.1.8.15
连接信创集成中间件服务程序的二次开发接口
|
#include <AutoUpdateHelper.h>
Public 成员函数 | |
| std::string | GetLastErrorMessage () |
| int | GetLastErrorCode () |
| int | CheckUpdateSoftWare (const std::string &sProductTag, const std::string &sVersion, std::string &sPackFileName, int64_t &iPackFileSize, std::string &sPackFileMD5, CMidLinkComm *comm=nullptr) |
| bool | UpdateLocalSoft (const std::string &sPackFileName, int64_t iPackFileSize, const std::string &sPackFileMD5, const std::string &sRunPrgName) |
| CAutoUpdateHelper () | |
| ~CAutoUpdateHelper () | |
系统程序自动更新,功能线程安全,错误信息线程共享
| mdwc::CAutoUpdateHelper::CAutoUpdateHelper | ( | ) |
构造函数
| mdwc::CAutoUpdateHelper::~CAutoUpdateHelper | ( | ) |
析构函数
| int mdwc::CAutoUpdateHelper::CheckUpdateSoftWare | ( | const std::string & | sProductTag, |
| const std::string & | sVersion, | ||
| std::string & | sPackFileName, | ||
| int64_t & | iPackFileSize, | ||
| std::string & | sPackFileMD5, | ||
| CMidLinkComm * | comm = nullptr ) |
检查当前运行的程序文件名是否需要更新
| sProductTag | 产品标识,中间件服务器的升级配置列表中的产品名称一致 |
| sVersion | 本前系统的版本号,格式:x.x.x.x,x只能为数字 |
| sPackFileName | 返回可升级包文件名 |
| iPackFileSize | 返回可升级包尺寸 |
| sPackFileMD5 | 返回可升级包MD5值 |
| comm | 中间件通信连接,如果为null连接默认配置的服务器,从连接池中获取 |

| int mdwc::CAutoUpdateHelper::GetLastErrorCode | ( | ) |
取得最后执行的错误代码
| std::string mdwc::CAutoUpdateHelper::GetLastErrorMessage | ( | ) |
取得最后执行的错误信息描述
| bool mdwc::CAutoUpdateHelper::UpdateLocalSoft | ( | const std::string & | sPackFileName, |
| int64_t | iPackFileSize, | ||
| const std::string & | sPackFileMD5, | ||
| const std::string & | sRunPrgName ) |
更新本地程序
| sPackFileName | 返回可升级包文件名 |
| iPackFileSize | 返回可升级包尺寸 |
| sPackFileMD5 | 返回可升级包MD5值 |
| sRunPrgName | 升级成功后运行程序文件名 |