1#ifndef TEST_DOUBLE_OS_WRAPPER_TEST_DOUBLE_PERIODIC_TIMER_FACTORY_H_INCLUDED
2#define TEST_DOUBLE_OS_WRAPPER_TEST_DOUBLE_PERIODIC_TIMER_FACTORY_H_INCLUDED
65template <
typename T = TestDoublePeriodicTimer>
74 obj->setCreateArgs(r, periodInMillis, name);
80 delete static_cast<T*
>(t);
Definition PeriodicTimerFactory.h:9
Abstract class that has functions of common RTOS's periodic timer.
Definition PeriodicTimer.h:20
PeriodicTimer(Runnable *r)
Definition PeriodicTimer.h:22
Interface for implementing an active class.
Definition Runnable.h:9
Definition TestDoublePeriodicTimerFactory.h:66
virtual void destroy(OSWrapper::PeriodicTimer *t)
Definition TestDoublePeriodicTimerFactory.h:78
TestDoublePeriodicTimerFactory()
Definition TestDoublePeriodicTimerFactory.h:68
virtual ~TestDoublePeriodicTimerFactory()
Definition TestDoublePeriodicTimerFactory.h:69
virtual OSWrapper::PeriodicTimer * create(OSWrapper::Runnable *r, unsigned long periodInMillis, const char *name)
Definition TestDoublePeriodicTimerFactory.h:71
Definition TestDoublePeriodicTimerFactory.h:10
virtual void stop()
Stop the timer.
Definition TestDoublePeriodicTimerFactory.h:40
unsigned long m_periodInMillis
Definition TestDoublePeriodicTimerFactory.h:13
OSWrapper::Runnable * m_runnable
Definition TestDoublePeriodicTimerFactory.h:12
virtual unsigned long getPeriodInMillis() const
Get the timer period (in milliseconds)
Definition TestDoublePeriodicTimerFactory.h:49
virtual ~TestDoublePeriodicTimer()
Definition TestDoublePeriodicTimerFactory.h:32
virtual const char * getName() const
Get the object's name.
Definition TestDoublePeriodicTimerFactory.h:59
virtual void setName(const char *name)
Set the object's name.
Definition TestDoublePeriodicTimerFactory.h:54
virtual void start()
Start the timer.
Definition TestDoublePeriodicTimerFactory.h:36
void setCreateArgs(OSWrapper::Runnable *r, unsigned long periodInMillis, const char *name)
Definition TestDoublePeriodicTimerFactory.h:25
TestDoublePeriodicTimer()
Definition TestDoublePeriodicTimerFactory.h:17
const char * m_name
Definition TestDoublePeriodicTimerFactory.h:14
virtual bool isStarted() const
Return true if the timer is started.
Definition TestDoublePeriodicTimerFactory.h:44
Implementation of OSWrapper for Test Double.
Definition TestDoubleEventFlagFactory.h:7