DynamicDevice.cpp 542 B

1234567891011121314151617181920212223242526272829303132333435
  1. #include "DynamicDevice.h"
  2. #include <StringAlgorithm.h>
  3. namespace PresenceDetection {
  4. namespace Util {
  5. DynamicDevice::DynamicDevice(const std::string& macAddress) :
  6. m_probeCounter(0),
  7. m_macAddress(macAddress)
  8. {
  9. }
  10. std::string DynamicDevice::MacAddress()
  11. {
  12. return m_macAddress;
  13. }
  14. int DynamicDevice::ProbeCounter() const
  15. {
  16. return m_probeCounter;
  17. }
  18. void DynamicDevice::IncrementProbeCounter()
  19. {
  20. ++m_probeCounter;
  21. }
  22. void DynamicDevice::ResetProbeCounter()
  23. {
  24. m_probeCounter = 0;
  25. }
  26. } // namespace Util
  27. } // namespace PresenceDetection