New file |
| | |
| | |
|
| | | #ifndef VSSLOCALSETTINGTBL_BUILDER_H
|
| | | #define VSSLOCALSETTINGTBL_BUILDER_H
|
| | | #include <string>
|
| | | #include <vector>
|
| | | #include "VssLocalSettingTbl.h"
|
| | | using namespace std;
|
| | |
|
| | | /**
|
| | | * 本地国标配置构建器
|
| | | */
|
| | | class VssLocalSettingTblBuilder {
|
| | | public:
|
| | | VssLocalSettingTblBuilder& addID(int ID) {
|
| | | vssLocalSettingTblMap[VssLocalSettingTbl_ID] = to_string(ID);
|
| | | return *this;
|
| | | }
|
| | | VssLocalSettingTblBuilder& addServerIp(std::string ServerIp) {
|
| | | vssLocalSettingTblMap[VssLocalSettingTbl_ServerIp] = ServerIp;
|
| | | return *this;
|
| | | }
|
| | | VssLocalSettingTblBuilder& addServerPort(std::string ServerPort) {
|
| | | vssLocalSettingTblMap[VssLocalSettingTbl_ServerPort] = ServerPort;
|
| | | return *this;
|
| | | }
|
| | | VssLocalSettingTblBuilder& addServerId(std::string ServerId) {
|
| | | vssLocalSettingTblMap[VssLocalSettingTbl_ServerId] = ServerId;
|
| | | return *this;
|
| | | }
|
| | | VssLocalSettingTblBuilder& addUserAuthId(std::string UserAuthId) {
|
| | | vssLocalSettingTblMap[VssLocalSettingTbl_UserAuthId] = UserAuthId;
|
| | | return *this;
|
| | | }
|
| | | VssLocalSettingTblBuilder& addPassword(std::string Password) {
|
| | | vssLocalSettingTblMap[VssLocalSettingTbl_Password] = Password;
|
| | | return *this;
|
| | | }
|
| | | VssLocalSettingTblBuilder& addUpdateTime(std::string UpdateTime) {
|
| | | vssLocalSettingTblMap[VssLocalSettingTbl_UpdateTime] = UpdateTime;
|
| | | return *this;
|
| | | }
|
| | | /** 本地国标配置 map */
|
| | | std::map<std::string, std::string>& buildVssLocalSettingTblMap() {
|
| | | return vssLocalSettingTblMap;
|
| | | }
|
| | | public:
|
| | | std::map<std::string, std::string> vssLocalSettingTblMap;
|
| | | };
|
| | |
|
| | | #endif //VSSLOCALSETTINGTBL_BUILDER_H
|
| | |
|
| | |
|