yasmine
behavior.hpp
Go to the documentation of this file.
1 // //
3 // This file is part of the Seadex yasmine ecosystem (http://yasmine.seadex.de). //
4 // Copyright (C) 2016-2017 Seadex GmbH //
5 // //
6 // Licensing information is available in the folder "license" which is part of this distribution. //
7 // The same information is available on the www @ http://yasmine.seadex.de/Licenses.html. //
8 // //
10 
11 
12 #ifndef BEHAVIOR_2A20341F_93C3_409E_8792_B05E0D83C7D1
13 #define BEHAVIOR_2A20341F_93C3_409E_8792_B05E0D83C7D1
14 
15 
16 #include "essentials/non_copyable.hpp"
17 
18 #include "behavior_fwd.hpp"
19 #include "event_fwd.hpp"
20 
21 
22 namespace sxy
23 {
24 
25 
26 class behavior
27 {
28 public:
30  {
31  // Nothing to do...
32  }
33 
34 
35  virtual ~behavior() SX_NOEXCEPT
36  {
37  // Nothing to do...
38  }
39 
40 
41  SX_NO_COPY(behavior)
42  virtual void operator()( const event&, event_collector& ) const = 0;
43 };
44 
45 
46 }
47 
48 
49 #endif
Definition: event_collector.hpp:25
Interface of an event. An event has an ID, a name and a priority (for processing by the async state m...
Definition: event.hpp:28
virtual void operator()(const event &, event_collector &) const =0
Definition: adapter_cpp11.hpp:21
virtual ~behavior() SX_NOEXCEPT
Definition: behavior.hpp:35
Definition: behavior.hpp:26
behavior()
Definition: behavior.hpp:29