| |
| #ifndef DATAFRAME_H |
| #define DATAFRAME_H |
| |
| #include <string> |
| |
| class DataFrame |
| { |
| public: |
| DataFrame() |
| : m_totalDataIn(0), m_totalDataOut(0), m_totalPacketsIn(0), m_totalPacketsOut(0), |
| m_totalErrorsIn(0), m_totalErrorsOut(0), m_totalDropsIn(0), m_totalDropsOut(0), |
| m_timeStampSeconds(0), m_timeStampMicroseconds(0), m_valid(false) {} |
| ~DataFrame() {} |
| |
| bool isValid() const { return m_valid; } |
| void setValid(bool valid) { m_valid = valid; } |
| |
| const std::string& getDeviceName() const { return m_deviceName; } |
| void setDeviceName(const std::string& deviceName) { m_deviceName = deviceName; } |
| |
| const std::string& getIpV4() const { return m_ipv4; } |
| void setIpV4(const std::string& ipv4) { m_ipv4 = ipv4; } |
| |
| long long getTotalDataIn() const { return m_totalDataIn; } |
| void setTotalDataIn(long long totalDataIn) { m_totalDataIn = totalDataIn; } |
| |
| long long getTotalDataOut() const { return m_totalDataOut; } |
| void setTotalDataOut(long long totalDataOut) { m_totalDataOut = totalDataOut; } |
| |
| long long getTotalPacketsIn() const { return m_totalPacketsIn; } |
| void setTotalPacketsIn(long long totalPacketsIn) { m_totalPacketsIn = totalPacketsIn; } |
| |
| long long getTotalPacketsOut() const { return m_totalPacketsOut; } |
| void setTotalPacketsOut(long long totalPacketsOut) { m_totalPacketsOut = totalPacketsOut; } |
| |
| long long getTotalErrorsIn() const { return m_totalErrorsIn; } |
| void setTotalErrorsIn(long long totalErrorsIn) { m_totalErrorsIn = totalErrorsIn; } |
| |
| long long getTotalErrorsOut() const { return m_totalErrorsOut; } |
| void setTotalErrorsOut(long long totalErrorsOut) { m_totalErrorsOut = totalErrorsOut; } |
| |
| long long getTotalDropsIn() const { return m_totalDropsIn; } |
| void setTotalDropsIn(long long totalDropsIn) { m_totalDropsIn = totalDropsIn; } |
| |
| long long getTotalDropsOut() const { return m_totalDropsOut; } |
| void setTotalDropsOut(long long totalDropsOut) { m_totalDropsOut = totalDropsOut; } |
| |
| unsigned long getTimeStampSeconds() const { return m_timeStampSeconds; } |
| void setTimeStampSeconds(unsigned long seconds) { m_timeStampSeconds = seconds; } |
| |
| unsigned long getTimeStampMicroseconds() const { return m_timeStampMicroseconds; } |
| void setTimeStampMicroseconds(unsigned long microseconds) { m_timeStampMicroseconds = microseconds; } |
| |
| private: |
| std::string m_deviceName; |
| std::string m_ipv4; |
| long long m_totalDataIn; |
| long long m_totalDataOut; |
| long long m_totalPacketsIn; |
| long long m_totalPacketsOut; |
| long long m_totalErrorsIn; |
| long long m_totalErrorsOut; |
| long long m_totalDropsIn; |
| long long m_totalDropsOut; |
| unsigned long m_timeStampSeconds; |
| unsigned long m_timeStampMicroseconds; |
| bool m_valid; |
| }; |
| |
| #endif |
| |