// 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 #include /////////////////////////////////////////////////////////////////////////////// #if !defined(SAGA_HAVE_PACKAGE_JOB) #define SAGA_GUARDED_EXEC(BLOCK) #else #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; \ } \ /**/ #endif /////////////////////////////////////////////////////////////////////////////// void run_test (std::string fileURL); void run_benchmarks (std::string rmURL); int job_run (std::string rm_url, std::string exe, std::vector args); void job_submit (std::string rm_url, std::string exe, std::vector args); void job_state (std::string rm_url, std::string job_id); void job_suspend (std::string rm_url, std::string job_id); void job_resume (std::string rm_url, std::string job_id); #endif