36 using namespace AlarmNotifications;
41 _severity ( severity ),
43 _triggertime ( std::time (
nullptr ) ),
44 _desktopNotificationSent (
false ),
45 _emailNotificationSent (
false )
57 _pvname ( other._pvname ),
58 _severity ( other._severity ),
59 _status ( other._status ),
60 _triggertime ( other._triggertime ),
61 _desktopNotificationSent ( other._desktopNotificationSent ),
62 _emailNotificationSent ( other._emailNotificationSent )
69 _pvname ( std::move ( other._pvname ) ),
70 _severity ( std::move ( other._severity ) ),
71 _status ( std::move ( other._status ) ),
72 _triggertime ( other._triggertime ),
73 _desktopNotificationSent ( other._desktopNotificationSent ),
74 _emailNotificationSent ( other._emailNotificationSent )
83 _pvname = other._pvname;
84 _severity = other._severity;
85 _status = other._status;
86 _triggertime = other._triggertime;
87 _desktopNotificationSent = other._desktopNotificationSent;
88 _emailNotificationSent = other._emailNotificationSent;
97 _pvname = std::move ( other._pvname );
98 _severity = std::move ( other._severity );
99 _status = std::move ( other._status );
109 return ( _pvname == other._pvname ) && ( _severity == other._severity ) && ( _status == other._status ) && ( _triggertime == other._triggertime ) && ( _desktopNotificationSent == other._desktopNotificationSent ) && ( _emailNotificationSent == other._emailNotificationSent );
124 _severity = severity;
144 _triggertime = triggertime;
149 if ( _triggertime < newdata._triggertime )
151 _severity = newdata._severity;
152 _status = newdata._status;
163 _desktopNotificationSent = desktopNotificationSent;
173 _emailNotificationSent = emailNotificationSent;