added lastChangeTime

This commit is contained in:
john30
2015-01-03 12:11:46 +01:00
parent 92e6178ef7
commit 50e24172b1
2 changed files with 22 additions and 7 deletions
+12 -3
View File
@@ -216,11 +216,17 @@ public:
string getLastValue() { return m_lastValue; }
/**
* @brief Get the time when @a m_lastValue was updated.
* @return the time when @a m_lastValue was updated, or 0 if this message was not decoded yet.
* @brief Get the time when @a m_lastValue was last stored.
* @return the time when @a m_lastValue was last stored, or 0 if this message was not decoded yet.
*/
time_t getLastUpdateTime() { return m_lastUpdateTime; }
/**
* @brief Get the time when @a m_lastValue was last changed.
* @return the time when @a m_lastValue was last changed, or 0 if this message was not decoded yet.
*/
time_t getLastChangeTime() { return m_lastChangeTime; }
/**
* @brief Get the time when this message was last polled for.
* @return the time when this message was last polled for, or 0 for never.
@@ -273,9 +279,12 @@ private:
/** the last decoded value. */
string m_lastValue;
/** the system time when @a m_lastValue was updated, 0 for never. */
/** the system time when @a m_lastValue was last stored, 0 for never. */
time_t m_lastUpdateTime;
/** the system time when @a m_lastValue was last changed, 0 for never. */
time_t m_lastChangeTime;
/** the number of times this messages was already polled for. */
unsigned int m_pollCount;