stlab.adobe.com Adobe Systems Incorporated

platform_file_monitor_impl.hpp

Go to the documentation of this file.
00001 /*
00002     Copyright 2005-2007 Adobe Systems Incorporated
00003     Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
00004     or a copy at http://stlab.adobe.com/licenses.html)
00005 */
00006 
00007 /****************************************************************************************************/
00008 
00009 #ifndef ADOBE_FILE_MONITOR_IMPL_HPP
00010 #define ADOBE_FILE_MONITOR_IMPL_HPP
00011 
00012 /****************************************************************************************************/
00013 
00014 #define WINDOWS_LEAN_AND_MEAN 1
00015 
00016 #include <windows.h>
00017 
00018 #include <ctime>
00019 
00020 /****************************************************************************************************/
00021 
00022 namespace adobe {
00023 
00024 /****************************************************************************************************/
00025 
00026 struct file_monitor_platform_data_t
00027 {
00028     file_monitor_platform_data_t();
00029 
00030     file_monitor_platform_data_t(const file_monitor_path_type&  path, const file_monitor_callback_t& proc);
00031 
00032     file_monitor_platform_data_t(const file_monitor_platform_data_t& rhs);
00033 
00034     ~file_monitor_platform_data_t();
00035 
00036     file_monitor_platform_data_t& operator = (const file_monitor_platform_data_t& rhs);
00037 
00038     void set_path(const file_monitor_path_type& path);
00039 
00040     void connect();
00041 
00042     void disconnect();
00043 
00044     file_monitor_path_type         path_m;
00045     adobe::file_monitor_callback_t proc_m;
00046     std::time_t                    last_write_m;
00047     HANDLE                         change_handle_m;
00048 };
00049 
00050 /****************************************************************************************************/
00051 
00052 } // namespace adobe
00053 
00054 /****************************************************************************************************/
00055 
00056 #endif
00057 
00058 /****************************************************************************************************/

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google