Dynamic lib selection and deployment
[anna.git] / example / diameter / launcher / testing / TestClock.hpp
1 // ANNA - Anna is Not Nothingness Anymore                                                         //
2 //                                                                                                //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
4 //                                                                                                //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite                           //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7
8
9 #ifndef example_diameter_launcher_TestClock_hpp
10 #define example_diameter_launcher_TestClock_hpp
11
12 // Project
13 #include <anna/core/core.hpp>
14 #include <anna/timex/Clock.hpp>
15
16 class TestManager;
17
18 class TestClock : public anna::timex::Clock {
19   TestManager *a_manager;
20
21 public:
22   TestClock(const char *clockName, const anna::Millisecond & timeout, TestManager *manager)
23     : a_manager(manager), anna::timex::Clock(clockName, timeout) {;}
24
25   virtual bool tick() throw(anna::RuntimeException);
26 };
27
28 #endif
29