yasmine
event_creation_request.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 EVENT_CREATION_REQUEST_05BAD27E_EBBD_405D_B23D_00670DF91241
13 #define EVENT_CREATION_REQUEST_05BAD27E_EBBD_405D_B23D_00670DF91241
14 
15 
16 #include "essentials/compatibility/chrono.hpp"
17 #include "essentials/non_copyable.hpp"
18 
19 #include "event_id.hpp"
20 #include "event_fwd.hpp"
21 #include "event_handle.hpp"
22 
23 
24 namespace sxy
25 {
26 
27 
28 class event_creation_request SX_FINAL
29 {
30 public:
31 
32 
33  event_creation_request( const sxe::time_point< sxe::system_clock >& _time, const event_sptr _event,
34  const handle_type _handle );
35  ~event_creation_request() SX_NOEXCEPT;
36 #ifndef SX_CPP03_BOOST
37  SX_NO_COPY(event_creation_request)
38  event_creation_request( event_creation_request&& );
39  event_creation_request& operator=( event_creation_request&& );
40 #endif
41  sxe::time_point< sxe::system_clock > get_time() const;
42  handle_type get_handle() const;
43  event_sptr get_event() const;
44 
45 
46 private:
47  sxe::time_point< sxe::system_clock > time_;
48  event_sptr event_;
49  handle_type handle_;
50 };
51 
52 
53 }
54 
55 
56 #endif
Definition: adapter_cpp11.hpp:21
sxe::shared_ptr< event > event_sptr
Definition: event_fwd.hpp:25
sxe::uint32_t handle_type
The type alias for yasmine&#39;s event handle.
Definition: event_handle.hpp:26