ANNA Suite  2020b
Multipurpose development suite for Telco applications
TimeEventObserver.hpp
Go to the documentation of this file.
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 anna_timex_TimeEventObserver_hpp
10 #define anna_timex_TimeEventObserver_hpp
11 
12 namespace anna {
13 
14 namespace timex {
15 
16 class TimeEvent;
17 class Engine;
18 
34 public:
39  TimeEventObserver(const char* name) : a_name(name) {}
40 
45  std::string asString() const
46  {
47  std::string msg("timex::TimeEventObserver { Name: ");
48  msg += a_name;
49  return msg += " }";
50  }
51 
52 protected:
61  virtual void release(timex::TimeEvent* timeEvent) = 0;
62 
63 private:
64  std::string a_name;
65 
66  friend class Engine;
67 };
68 
69 }
70 }
71 
72 #endif
73 
74 
TimeEventObserver(const char *name)
Definition: TimeEventObserver.hpp:39
virtual void release(timex::TimeEvent *timeEvent)=0
Definition: TimeEvent.hpp:26
Definition: TimeEventObserver.hpp:33
Definition: app.hpp:12
Definition: Engine.hpp:62
std::string asString() const
Definition: TimeEventObserver.hpp:45