Add Static Devices
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
#include "DynamicDevice.h"
|
||||
#include <StringAlgorithm.h>
|
||||
|
||||
|
||||
namespace PresenceDetection {
|
||||
namespace Util {
|
||||
|
||||
DynamicDevice::DynamicDevice(const std::string& macAddress) :
|
||||
m_probeCounter(0),
|
||||
m_macAddress(macAddress)
|
||||
{
|
||||
}
|
||||
|
||||
std::string DynamicDevice::MacAddress()
|
||||
{
|
||||
return m_macAddress;
|
||||
}
|
||||
|
||||
int DynamicDevice::ProbeCounter() const
|
||||
{
|
||||
return m_probeCounter;
|
||||
}
|
||||
|
||||
void DynamicDevice::IncrementProbeCounter()
|
||||
{
|
||||
++m_probeCounter;
|
||||
}
|
||||
|
||||
void DynamicDevice::ResetProbeCounter()
|
||||
{
|
||||
m_probeCounter = 0;
|
||||
}
|
||||
|
||||
} // namespace Util
|
||||
} // namespace PresenceDetection
|
||||
Reference in New Issue
Block a user