Changeset 10799
- Timestamp:
- 07/28/11 13:19:41 (22 months ago)
- Location:
- ossiedev/branches/mcarrick/ossiedev/system/ossie/framework
- Files:
-
- 2 modified
-
FileManager_impl.cpp (modified) (3 diffs)
-
FileSystem_impl.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/branches/mcarrick/ossiedev/system/ossie/framework/FileManager_impl.cpp
r10798 r10799 27 27 #include <boost/filesystem/exception.hpp> 28 28 #include <boost/filesystem/operations.hpp> 29 #include <boost/cerrno.hpp> 29 30 30 31 #ifndef BOOST_VERSION … … 32 33 #endif 33 34 34 #if BOOST_VERSION < 10350035 # include <boost/filesystem/cerrno.hpp>36 #else37 # include <boost/cerrno.hpp>38 #endif39 35 40 36 namespace fs = boost::filesystem; … … 347 343 return result._retn(); 348 344 } catch (const fs::filesystem_error &ex) { 349 #if BOOST_VERSION < 103400350 DEBUG(9, FileManager, "Caught exception in list, error_code " << ex.error());351 if (ex.error() == fs::other_error)352 #elif BOOST_VERSION < 103500353 DEBUG(9, FileManager, "Caught exception in list, error_code " << ex.system_error());354 if (ex.system_error() == EINVAL)355 #else356 345 DEBUG(9, FileManager, "Caught exception in list, error_code " << ex.code().value()); 357 346 if (ex.code().value() == EINVAL) 358 #endif359 347 throw CF::InvalidFileName(CF::CFEINVAL, ex.what()); 360 348 throw CF::FileException(CF::CFNOTSET, ex.what()); -
ossiedev/branches/mcarrick/ossiedev/system/ossie/framework/FileSystem_impl.cpp
r10798 r10799 31 31 #include <boost/filesystem/path.hpp> 32 32 #include <boost/filesystem/exception.hpp> 33 #include <boost/cerrno.hpp> 34 33 35 #ifndef BOOST_VERSION 34 36 #include <boost/version.hpp> 35 #endif36 37 #if BOOST_VERSION < 10350038 # include <boost/filesystem/cerrno.hpp>39 #else40 # include <boost/cerrno.hpp>41 37 #endif 42 38 … … 120 116 fs::copy_file(sFile, dFile); 121 117 } catch (const fs::filesystem_error &ex) { 122 #if BOOST_VERSION < 103400123 if (ex.error() == fs::not_found_error)124 #elif BOOST_VERSION < 103500125 if (ex.system_error() == ENOENT)126 #else127 118 if (ex.code().value() == ENOENT) 128 #endif129 119 throw CF::FileException(CF::CFENOENT, ex.what()); 130 120 } … … 194 184 DEBUG(4, FileSystem, "About to return from list."); 195 185 } catch (const fs::filesystem_error &ex) { 196 #if BOOST_VERSION < 103400197 DEBUG(9, FileSystem, "Caught exception in list, error_code " << ex.error());198 if (ex.error() == fs::other_error)199 #elif BOOST_VERSION < 103500200 DEBUG(9, FileSystem, "Caught exception in list, error_code " << ex.system_error());201 if (ex.system_error() == EINVAL)202 #else203 186 DEBUG(9, FileSystem, "Caught exception in list, error_code " << ex.code().value()); 204 187 if (ex.code().value() == EINVAL) 205 #endif206 188 throw CF::InvalidFileName(CF::CFEINVAL, ex.what()); 207 189 throw CF::FileException(CF::CFNOTSET, ex.what());