1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
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 //
9 #ifndef anna_timex_internal_TickConsumer_hpp
10 #define anna_timex_internal_TickConsumer_hpp
12 #include <anna/comm/Handler.hpp>
25 class TickConsumer : public comm::Handler {
27 TickConsumer(Engine* timeController) :
28 comm::Handler(comm::Handler::Type::Custom, Support::None),
29 a_timeController(*timeController) {
30 a_pipe [0] = a_pipe [1] = -1;
33 int getfdWrite() const throw() { return a_pipe [1]; }
35 std::string asString() const throw();
38 Engine& a_timeController;
41 void initialize() throw(RuntimeException);
42 void apply() throw(RuntimeException);
43 void finalize() throw();
44 void clone() throw(RuntimeException);