1#ifndef TEST_DOUBLE_OS_WRAPPER_TEST_DOUBLE_ONESHOT_TIMER_FACTORY_H_INCLUDED
2#define TEST_DOUBLE_OS_WRAPPER_TEST_DOUBLE_ONESHOT_TIMER_FACTORY_H_INCLUDED
33 virtual void start(
unsigned long timeInMillis)
58template <
typename T = TestDoubleOneShotTimer>
67 obj->setCreateArgs(r, name);
73 delete static_cast<T*
>(t);
Definition OneShotTimerFactory.h:9
Abstract class that has functions of common RTOS's one-shot timer.
Definition OneShotTimer.h:20
OneShotTimer(Runnable *r)
Definition OneShotTimer.h:22
Interface for implementing an active class.
Definition Runnable.h:9
Definition TestDoubleOneShotTimerFactory.h:59
virtual ~TestDoubleOneShotTimerFactory()
Definition TestDoubleOneShotTimerFactory.h:62
TestDoubleOneShotTimerFactory()
Definition TestDoubleOneShotTimerFactory.h:61
virtual OSWrapper::OneShotTimer * create(OSWrapper::Runnable *r, const char *name)
Definition TestDoubleOneShotTimerFactory.h:64
virtual void destroy(OSWrapper::OneShotTimer *t)
Definition TestDoubleOneShotTimerFactory.h:71
Definition TestDoubleOneShotTimerFactory.h:10
virtual void setName(const char *name)
Set the object's name.
Definition TestDoubleOneShotTimerFactory.h:47
virtual ~TestDoubleOneShotTimer()
Definition TestDoubleOneShotTimerFactory.h:29
virtual void stop()
Stop the timer.
Definition TestDoubleOneShotTimerFactory.h:38
virtual bool isStarted() const
Return true if the timer is started.
Definition TestDoubleOneShotTimerFactory.h:42
virtual const char * getName() const
Get the object's name.
Definition TestDoubleOneShotTimerFactory.h:52
OSWrapper::Runnable * m_runnable
Definition TestDoubleOneShotTimerFactory.h:12
const char * m_name
Definition TestDoubleOneShotTimerFactory.h:13
virtual void start(unsigned long timeInMillis)
Start the timer.
Definition TestDoubleOneShotTimerFactory.h:33
TestDoubleOneShotTimer()
Definition TestDoubleOneShotTimerFactory.h:16
void setCreateArgs(OSWrapper::Runnable *r, const char *name)
Definition TestDoubleOneShotTimerFactory.h:23
Implementation of OSWrapper for Test Double.
Definition TestDoubleEventFlagFactory.h:7