// Copyright (c) 2008 Ole Weidner // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef SAGA_FILE_HPP #define SAGA_FILE_HPP #include #define SAGA_GUARDED_EXEC(BLOCK) \ try{ \ BLOCK \ } \ catch (saga::exception const& e) { \ std::cerr << e.what () << std::endl; \ } \ catch (std::exception const& e) { \ std::cerr << e.what() << std::endl; \ } \ catch (...) { \ std::cerr << std::endl; \ } \ \ /////////////////////////////////////////////////////////////////////////////// void run_test (std::string fileURL); void file_cat (std::string fileURL); void file_remove (std::string fileURL); void file_copy (std::string sourceURL, std::string targetURL); void file_move (std::string sourceURL, std::string targetURL); void list_dir (std::string directoryURL); #endif