yasmine
state_visitor.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 STATE_VISITOR_74B7FD7D_C18E_4F6E_B278_00268B0CFCD7
13 #define STATE_VISITOR_74B7FD7D_C18E_4F6E_B278_00268B0CFCD7
14 
15 
16 namespace sxy
17 {
18 
19 
20 class composite_state;
21 class final_state;
22 class simple_state;
23 
24 
26 {
27 public:
29  {
30  // Nothing to do...
31  }
32 
33 
34  virtual ~state_visitor() SX_NOEXCEPT
35  {
36  // Nothing to do...
37  }
38 
39 
40  SX_NO_COPY(state_visitor)
41  virtual void visit( const composite_state& _composite_state ) = 0;
42  virtual void visit( const simple_state& _simple_state ) = 0;
43  virtual void visit( const final_state& _final_state ) = 0;
44 };
45 
46 
47 }
48 
49 
50 #endif
virtual void visit(const composite_state &_composite_state)=0
state_visitor()
Definition: state_visitor.hpp:28
Definition: composite_state.hpp:28
virtual ~state_visitor() SX_NOEXCEPT
Definition: state_visitor.hpp:34
Definition: adapter_cpp11.hpp:21
Definition: final_state.hpp:23
Definition: simple_state.hpp:23
Definition: state_visitor.hpp:25