[Saga-devel] saga SVN commit 3286: /trunk/adaptors/default/file/

amerzky at cct.lsu.edu amerzky at cct.lsu.edu
Thu Jan 15 04:02:41 CST 2009


User: amerzky
Date: 2009/01/15 04:02 AM

Modified:
 /trunk/adaptors/default/file/
  default_namespace_dir.hpp, default_namespace_dir_impl.hpp, default_namespace_entry.hpp, default_namespace_entry_impl.hpp

Log:
 added missing is_file as alias to is_entry
 A

File Changes:

Directory: /trunk/adaptors/default/file/
========================================

File [modified]: default_namespace_dir.hpp
Delta lines: +5 -4
===================================================================
--- trunk/adaptors/default/file/default_namespace_dir.hpp	2009-01-15 09:45:37 UTC (rev 3285)
+++ trunk/adaptors/default/file/default_namespace_dir.hpp	2009-01-15 10:02:27 UTC (rev 3286)
@@ -46,10 +46,11 @@
     ~namespace_dir_cpi_impl (void);
 
     /* implementation of query methods */
-    void sync_exists   (bool & exists,  saga::url url);
-    void sync_is_dir   (bool & is_dir,  saga::url url);
-    void sync_is_entry (bool & is_file, saga::url url);
-    void sync_is_link  (bool & is_link, saga::url url);
+    void sync_exists   (bool & exists,   saga::url url);
+    void sync_is_dir   (bool & is_dir,   saga::url url);
+    void sync_is_entry (bool & is_entry, saga::url url);
+    void sync_is_file  (bool & is_file,  saga::url url);
+    void sync_is_link  (bool & is_link,  saga::url url);
     
     /* implementation of saga::directory::open and saga::directory::open_directory */
 //     void sync_open     (saga::file      & entry, std::string name, int openmode); 

File [modified]: default_namespace_dir_impl.hpp
Delta lines: +6 -0
===================================================================
--- trunk/adaptors/default/file/default_namespace_dir_impl.hpp	2009-01-15 09:45:37 UTC (rev 3285)
+++ trunk/adaptors/default/file/default_namespace_dir_impl.hpp	2009-01-15 10:02:27 UTC (rev 3286)
@@ -186,6 +186,12 @@
 
 template <typename Base>
 inline void
+namespace_dir_cpi_impl<Base>::sync_is_file (bool & is_file, saga::url url)
+{
+  sync_is_entry (is_file, url);
+}
+template <typename Base>
+inline void
 namespace_dir_cpi_impl<Base>::sync_is_link (bool & is_link, saga::url url)
 {
   namespace fs = boost::filesystem;

File [modified]: default_namespace_entry.hpp
Delta lines: +2 -1
===================================================================
--- trunk/adaptors/default/file/default_namespace_entry.hpp	2009-01-15 09:45:37 UTC (rev 3285)
+++ trunk/adaptors/default/file/default_namespace_entry.hpp	2009-01-15 10:02:27 UTC (rev 3286)
@@ -48,7 +48,8 @@
     /* implementation of query methods */
     void sync_exists   (bool & exists);
     void sync_is_dir   (bool & is_dir);
-    void sync_is_entry (bool & is_file);
+    void sync_is_entry (bool & is_entry);
+    void sync_is_file  (bool & is_file);
     void sync_is_link  (bool & is_link);
     
     /*! implementation of saga::directory::get_url */

File [modified]: default_namespace_entry_impl.hpp
Delta lines: +7 -0
===================================================================
--- trunk/adaptors/default/file/default_namespace_entry_impl.hpp	2009-01-15 09:45:37 UTC (rev 3285)
+++ trunk/adaptors/default/file/default_namespace_entry_impl.hpp	2009-01-15 10:02:27 UTC (rev 3286)
@@ -146,6 +146,13 @@
     is_entry = fs::exists (path) && ! fs::is_directory (path);
 }
 
+template <typename Base>
+inline void
+namespace_entry_cpi_impl<Base>::sync_is_file (bool & is_file)
+{
+  sync_is_entry (is_file);
+}
+
 ///////////////////////////////////////////////////////////////////////////////
 template <typename Base>
 inline void



More information about the saga-devel mailing list