Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62704 - in branches/filesystem3: boost boost/filesystem boost/filesystem/v3 libs/filesystem/v3/example libs/filesystem/v3/src
From: bdawes_at_[hidden]
Date: 2010-06-09 21:03:58


Author: bemandawes
Date: 2010-06-09 21:03:56 EDT (Wed, 09 Jun 2010)
New Revision: 62704
URL: http://svn.boost.org/trac/boost/changeset/62704

Log:
All V3 tests passing
Added:
   branches/filesystem3/boost/filesystem/fstream.hpp (contents, props changed)
Text files modified:
   branches/filesystem3/boost/filesystem.hpp | 5 +++--
   branches/filesystem3/boost/filesystem/v3/convenience.hpp | 16 ++++++++++++++++
   branches/filesystem3/boost/filesystem/v3/fstream.hpp | 28 +++++++++++++++++++++++++++-
   branches/filesystem3/boost/filesystem/v3/operations.hpp | 5 +++++
   branches/filesystem3/libs/filesystem/v3/example/simple_ls.cpp | 2 ++
   branches/filesystem3/libs/filesystem/v3/src/utf8_codecvt_facet.hpp | 21 +++++++++++++++++----
   6 files changed, 70 insertions(+), 7 deletions(-)

Modified: branches/filesystem3/boost/filesystem.hpp
==============================================================================
--- branches/filesystem3/boost/filesystem.hpp (original)
+++ branches/filesystem3/boost/filesystem.hpp 2010-06-09 21:03:56 EDT (Wed, 09 Jun 2010)
@@ -15,12 +15,13 @@
 # if defined(BOOST_FILESYSTEM_VERSION) \
   && BOOST_FILESYSTEM_VERSION != 2 && BOOST_FILESYSTEM_VERSION != 3
 # error BOOST_FILESYSTEM_VERSION defined, but not as 2 or 3
+# endif
 
 # if !defined(BOOST_FILESYSTEM_VERSION)
 # define BOOST_FILESYSTEM_VERSION 2
 # endif
 
-#ifdef BOOST_FILESYSTEM_VERSION == 2
+#if BOOST_FILESYSTEM_VERSION == 2
 # include <boost/filesystem/v2/config.hpp>
 # include <boost/filesystem/v2/path.hpp>
 # include <boost/filesystem/v2/operations.hpp>
@@ -34,4 +35,4 @@
 
 # endif
 
-#endif BOOST_FILESYSTEM_FILESYSTEM_HPP
+#endif // BOOST_FILESYSTEM_FILESYSTEM_HPP

Added: branches/filesystem3/boost/filesystem/fstream.hpp
==============================================================================
--- (empty file)
+++ branches/filesystem3/boost/filesystem/fstream.hpp 2010-06-09 21:03:56 EDT (Wed, 09 Jun 2010)
@@ -0,0 +1,32 @@
+// boost/filesystem/fstream.hpp ------------------------------------------------------//
+
+// Copyright Beman Dawes 2010
+
+// Distributed under the Boost Software License, Version 1.0.
+// See http://www.boost.org/LICENSE_1_0.txt
+
+// Library home page: http://www.boost.org/libs/filesystem
+
+//--------------------------------------------------------------------------------------//
+
+#ifndef BOOST_FILESYSTEM_FSTREAMX_HPP
+#define BOOST_FILESYSTEM_FSTREAMX_HPP
+
+# if defined(BOOST_FILESYSTEM_VERSION) \
+ && BOOST_FILESYSTEM_VERSION != 2 && BOOST_FILESYSTEM_VERSION != 3
+# error BOOST_FILESYSTEM_VERSION defined, but not as 2 or 3
+# endif
+
+# if !defined(BOOST_FILESYSTEM_VERSION)
+# define BOOST_FILESYSTEM_VERSION 2
+# endif
+
+#if BOOST_FILESYSTEM_VERSION == 2
+# include <boost/filesystem/v2/fstream.hpp>
+
+# else
+# include <boost/filesystem/v3/fstream.hpp>
+
+# endif
+
+#endif // BOOST_FILESYSTEM_FSTREAMX_HPP

Modified: branches/filesystem3/boost/filesystem/v3/convenience.hpp
==============================================================================
--- branches/filesystem3/boost/filesystem/v3/convenience.hpp (original)
+++ branches/filesystem3/boost/filesystem/v3/convenience.hpp 2010-06-09 21:03:56 EDT (Wed, 09 Jun 2010)
@@ -48,5 +48,21 @@
   } // namespace filesystem3
 } // namespace boost
 
+//----------------------------------------------------------------------------//
+
+namespace boost
+{
+ namespace filesystem
+ {
+# ifndef BOOST_FILESYSTEM_NO_DEPRECATED
+ using filesystem3::extension;
+ using filesystem3::basename;
+ using filesystem3::change_extension;
+# endif
+ }
+}
+
+//----------------------------------------------------------------------------//
+
 #include <boost/config/abi_suffix.hpp> // pops abi_prefix.hpp pragmas
 #endif // BOOST_FILESYSTEM3_CONVENIENCE_HPP

Modified: branches/filesystem3/boost/filesystem/v3/fstream.hpp
==============================================================================
--- branches/filesystem3/boost/filesystem/v3/fstream.hpp (original)
+++ branches/filesystem3/boost/filesystem/v3/fstream.hpp 2010-06-09 21:03:56 EDT (Wed, 09 Jun 2010)
@@ -166,11 +166,37 @@
 
   typedef basic_filebuf<wchar_t> wfilebuf;
   typedef basic_ifstream<wchar_t> wifstream;
- typedef basic_fstream<wchar_t> wfstream;
   typedef basic_ofstream<wchar_t> wofstream;
+ typedef basic_fstream<wchar_t> wfstream;
   
 } // namespace filesystem3
 } // namespace boost
 
+//----------------------------------------------------------------------------//
+
+namespace boost
+{
+ namespace filesystem
+ {
+ using filesystem3::filebuf;
+ using filesystem3::ifstream;
+ using filesystem3::ofstream;
+ using filesystem3::fstream;
+ using filesystem3::wfilebuf;
+ using filesystem3::wifstream;
+ using filesystem3::wfstream;
+ using filesystem3::wofstream;
+ using filesystem3::basic_filebuf;
+ using filesystem3::basic_ifstream;
+ using filesystem3::basic_ofstream;
+ using filesystem3::basic_fstream;
+
+# ifndef BOOST_FILESYSTEM_NO_DEPRECATED
+# endif
+ }
+}
+
+//----------------------------------------------------------------------------//
+
 #include <boost/config/abi_suffix.hpp> // pops abi_prefix.hpp pragmas
 #endif // BOOST_FILESYSTEM3_FSTREAM_HPP

Modified: branches/filesystem3/boost/filesystem/v3/operations.hpp
==============================================================================
--- branches/filesystem3/boost/filesystem/v3/operations.hpp (original)
+++ branches/filesystem3/boost/filesystem/v3/operations.hpp 2010-06-09 21:03:56 EDT (Wed, 09 Jun 2010)
@@ -951,6 +951,7 @@
     using filesystem3::is_symlink;
     using filesystem3::last_write_time;
     using filesystem3::read_symlink;
+ using filesystem3::recursive_directory_iterator;
     using filesystem3::regular_file;
     using filesystem3::remove;
     using filesystem3::remove_all;
@@ -974,6 +975,10 @@
     //using filesystem3::wdirectory_iterator;
     //using filesystem3::wdirectory_entry;
 # endif
+ namespace detail
+ {
+ using filesystem3::detail::possible_large_file_size_support;
+ }
   }
 }
 

Modified: branches/filesystem3/libs/filesystem/v3/example/simple_ls.cpp
==============================================================================
--- branches/filesystem3/libs/filesystem/v3/example/simple_ls.cpp (original)
+++ branches/filesystem3/libs/filesystem/v3/example/simple_ls.cpp 2010-06-09 21:03:56 EDT (Wed, 09 Jun 2010)
@@ -8,6 +8,8 @@
 
 // See http://www.boost.org/libs/filesystem for documentation.
 
+#define BOOST_FILESYSTEM_VERSION 3
+
 // As an example program, we don't want to use any deprecated features
 #define BOOST_FILESYSTEM_NO_DEPRECATED
 

Modified: branches/filesystem3/libs/filesystem/v3/src/utf8_codecvt_facet.hpp
==============================================================================
--- branches/filesystem3/libs/filesystem/v3/src/utf8_codecvt_facet.hpp (original)
+++ branches/filesystem3/libs/filesystem/v3/src/utf8_codecvt_facet.hpp 2010-06-09 21:03:56 EDT (Wed, 09 Jun 2010)
@@ -4,13 +4,13 @@
 // Distributed under the Boost Software License, Version 1.0.
 // (See http://www.boost.org/LICENSE_1_0.txt)
 
-#ifndef BOOST_FILESYSTEM_UTF8_CODECVT_FACET_HPP
-#define BOOST_FILESYSTEM_UTF8_CODECVT_FACET_HPP
+#ifndef BOOST_FILESYSTEM3_UTF8_CODECVT_FACET_HPP
+#define BOOST_FILESYSTEM3_UTF8_CODECVT_FACET_HPP
 
-#include <boost/filesystem/config.hpp>
+#include <boost/filesystem/v3/config.hpp>
 
 #define BOOST_UTF8_BEGIN_NAMESPACE \
- namespace boost { namespace filesystem { namespace detail {
+ namespace boost { namespace filesystem3 { namespace detail {
 
 #define BOOST_UTF8_END_NAMESPACE }}}
 #define BOOST_UTF8_DECL BOOST_FILESYSTEM_DECL
@@ -21,4 +21,17 @@
 #undef BOOST_UTF8_END_NAMESPACE
 #undef BOOST_UTF8_DECL
 
+//----------------------------------------------------------------------------//
+
+namespace boost
+{
+ namespace filesystem
+ {
+ namespace detail
+ {
+ using filesystem3::detail::utf8_codecvt_facet;
+ }
+ }
+}
+
 #endif


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk