|
@@ -15,6 +15,36 @@ int g_eventTimeVaild = 600; /* 事件时间有效性,单位秒,超
|
|
* *************************** DeviceInfo成员函数 *******************************
|
|
* *************************** DeviceInfo成员函数 *******************************
|
|
* ====================================================================================*/
|
|
* ====================================================================================*/
|
|
|
|
|
|
|
|
+DeviceInfo::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& 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;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
/* 对比是否相等 */
|
|
/* 对比是否相等 */
|
|
bool DeviceInfo::operator==(const DeviceInfo& other)
|
|
bool DeviceInfo::operator==(const DeviceInfo& other)
|
|
{
|
|
{
|