ANNA Suite  2020b
Multipurpose development suite for Telco applications
Public Member Functions | List of all members
anna::testing::TestClock Class Reference

#include <TestClock.hpp>

Inheritance diagram for anna::testing::TestClock:
Inheritance graph
[legend]
Collaboration diagram for anna::testing::TestClock:
Collaboration graph
[legend]

Public Member Functions

 TestClock (const char *clockName, const anna::Millisecond &timeout, TestManager *manager)
 
virtual bool tick () noexcept(false)
 
- Public Member Functions inherited from anna::timex::Clock
 Clock (const char *name, const Millisecond &timeout)
 
std::string asString () const
 
- Public Member Functions inherited from anna::timex::TimeEvent
virtual ~TimeEvent ()
 
Id getId () const
 
const MillisecondgetTimeout () const
 
const TimeEventObservergetObserver () const
 
void setId (const Id id)
 
void setTimeout (const Millisecond &timeout)
 
void setObserver (TimeEventObserver *observer)
 
bool isActive () const
 

Additional Inherited Members

- Public Types inherited from anna::timex::TimeEvent
typedef anna::ptrnumber Id
 
- Protected Member Functions inherited from anna::timex::TimeEvent
 TimeEvent ()
 
 TimeEvent (const Id id, const Millisecond &timeout)
 
virtual void stop () noexcept(false)
 

Constructor & Destructor Documentation

◆ TestClock()

anna::testing::TestClock::TestClock ( const char *  clockName,
const anna::Millisecond timeout,
TestManager manager 
)
inline
27  : a_manager(manager), anna::timex::Clock(clockName, timeout) {;}
Definition: Clock.hpp:23
Here is the call graph for this function:

Member Function Documentation

◆ tick()

virtual bool anna::testing::TestClock::tick ( )
virtualnoexcept

Metodo a reimplementar para establecer las acciones que se ejecutaran cada vez que expire el tiempo asociado al reloj.

Returns
true si el reloj desea continuar recibiendo los pulsos periodicamente o false en otro caso.

Implements anna::timex::Clock.


The documentation for this class was generated from the following file: