yasmine
simple_state_model.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 #ifndef SIMPLE_STATE_MODEL_0B93DA0E_CD9B_486A_A5FC_4DDC8375C4C4
12 #define SIMPLE_STATE_MODEL_0B93DA0E_CD9B_486A_A5FC_4DDC8375C4C4
13 
14 
15 #include "state_model.hpp"
17 
18 
19 namespace sxy
20 {
21 
22 
23 namespace model
24 {
25 
26 
29 class simple_state_model : public virtual state_model
30 {
31 public:
33  {
34  // Nothing to do...
35  }
36 
37 
38  virtual ~simple_state_model() SX_NOEXCEPT SX_OVERRIDE
39  {
40  // Nothing to do...
41  }
42 
43 
44  SX_NO_COPY( simple_state_model )
45  virtual event_sptr get_error_event() const = 0;
46  virtual void set_error_event( event_sptr _error_event ) = 0;
47  virtual bool is_async() const = 0;
48  virtual void set_is_async( bool _is_async ) = 0;
49 
50 
51 };
52 
53 
54 }
55 }
56 
57 
58 #endif
virtual void set_error_event(event_sptr _error_event)=0
simple_state_model()
Definition: simple_state_model.hpp:32
virtual void set_is_async(bool _is_async)=0
Interface for a simple state in the model.
Definition: simple_state_model.hpp:29
virtual event_sptr get_error_event() const =0
virtual ~simple_state_model() SX_NOEXCEPT SX_OVERRIDE
Definition: simple_state_model.hpp:38
Definition: algorithm_parameters.hpp:16
Interface for a state in the model.
Definition: state_model.hpp:34
sxe::shared_ptr< event_model > event_sptr
Definition: event_model_id.hpp:48
virtual bool is_async() const =0