Silicium
file_notification.hpp
Go to the documentation of this file.
1 #ifndef SILICIUM_FILE_NOTIFICATION_HPP
2 #define SILICIUM_FILE_NOTIFICATION_HPP
3 
4 #include <boost/detail/scoped_enum_emulation.hpp>
6 
7 namespace Si
8 {
9 #ifdef BOOST_SCOPED_ENUM_DECLARE_BEGIN
10  BOOST_SCOPED_ENUM_DECLARE_BEGIN(file_notification_type)
11 #else
13 #endif
14  {
15  add,
16  remove,
17  move_self,
22  }
23 #ifdef BOOST_SCOPED_ENUM_DECLARE_END
24  BOOST_SCOPED_ENUM_DECLARE_END(file_notification_type)
25 #else
26  ;
27 #endif
28 
30  {
34 
35  file_notification() BOOST_NOEXCEPT
37  , is_directory(false)
38  {
39  }
40 
41  file_notification(file_notification_type type, relative_path name, bool is_directory) BOOST_NOEXCEPT
42  : type(type)
43  , name(std::move(name))
44  , is_directory(is_directory)
45  {
46  }
47  };
48 
49  BOOST_STATIC_ASSERT(is_handle<file_notification>::value);
50 }
51 
52 #endif
std::remove_reference< T >::type && move(T &&ref)
Definition: move.hpp:10
BOOST_STATIC_ASSERT(Si::is_handle< absolute_path >::value)
file_notification() BOOST_NOEXCEPT
Definition: file_notification.hpp:35
Definition: absolute_path.hpp:19
file_notification_type
Definition: file_notification.hpp:12
file_notification_type type
Definition: file_notification.hpp:31
relative_path name
Definition: file_notification.hpp:32
file_notification(file_notification_type type, relative_path name, bool is_directory) BOOST_NOEXCEPT
Definition: file_notification.hpp:41
Definition: relative_path.hpp:10
Definition: file_notification.hpp:29
bool is_directory
Definition: file_notification.hpp:33