|
@@ -131,31 +131,8 @@ struct DeviceInfo
|
|
|
std::vector<AlgorithmInfo> vecAlgorithmInfo; /* 算法信息 */
|
|
|
|
|
|
DeviceInfo() = default;
|
|
|
- DeviceInfo(const DeviceInfo& other)
|
|
|
- : PKID(other.PKID),
|
|
|
- DeviceID(other.DeviceID),
|
|
|
- DevicePort(other.DevicePort),
|
|
|
- DeviceName(other.DeviceName),
|
|
|
- DeviceSerial(other.DeviceSerial),
|
|
|
- DeviceType(other.DeviceType),
|
|
|
- DeviceIP(other.DeviceIP),
|
|
|
- UserAccount(other.UserAccount),
|
|
|
- UserPassword(other.UserPassword),
|
|
|
- vecAlgorithmInfo(other.vecAlgorithmInfo) {}
|
|
|
- DeviceInfo& operator=(const DeviceInfo& other) {
|
|
|
- if (this != &other) {
|
|
|
- DeviceID = other.DeviceID;
|
|
|
- DevicePort = other.DevicePort;
|
|
|
- DeviceName = other.DeviceName;
|
|
|
- DeviceSerial = other.DeviceSerial;
|
|
|
- DeviceType = other.DeviceType;
|
|
|
- DeviceIP = other.DeviceIP;
|
|
|
- UserAccount = other.UserAccount;
|
|
|
- UserPassword = other.UserPassword;
|
|
|
- vecAlgorithmInfo = other.vecAlgorithmInfo;
|
|
|
- }
|
|
|
- return *this;
|
|
|
- }
|
|
|
+ DeviceInfo(const DeviceInfo& other);
|
|
|
+ DeviceInfo& operator=(const DeviceInfo& other);
|
|
|
/* 对比是否相等 */
|
|
|
bool operator==(const DeviceInfo& other);
|
|
|
|