00001
00002
00003
00004
00005
00006 #ifndef SAGA_FILE_HPP
00007 #define SAGA_FILE_HPP
00008
00009 #include <iostream>
00010 #include <saga/saga-defs.hpp>
00011
00013 #if !defined(SAGA_HAVE_PACKAGE_JOB)
00014 #define SAGA_GUARDED_EXEC(BLOCK)
00015 #else
00016 #define SAGA_GUARDED_EXEC(BLOCK) \
00017 try{ \
00018 BLOCK \
00019 } \
00020 catch (saga::exception const & e) { \
00021 std::cerr << e.what () << std::endl; \
00022 } \
00023 catch (std::exception const & e) { \
00024 std::cerr << e.what () << std::endl; \
00025 } \
00026 catch (...) { \
00027 std::cerr << std::endl; \
00028 } \
00029
00030 #endif
00031
00033
00034 void run_test (std::string fileURL);
00035
00036 void run_benchmarks (std::string rmURL);
00037
00038 void job_run (std::string rm_url, std::string exe, std::vector<std::string> args);
00039
00040 void job_submit (std::string rm_url, std::string exe, std::vector<std::string> args);
00041
00042 void job_state (std::string rm_url, std::string job_id);
00043
00044 void job_suspend (std::string rm_url, std::string job_id);
00045
00046 void job_resume (std::string rm_url, std::string job_id);
00047
00048
00049 #endif
00050
00051