00001
00002
00003
00004
00005
00006 #ifndef SAGA_FILE_HPP
00007 #define SAGA_FILE_HPP
00008
00009 #include <iostream>
00010
00011 #define SAGA_GUARDED_EXEC(BLOCK) \
00012 try{ \
00013 BLOCK \
00014 } \
00015 catch (saga::exception const & e) { \
00016 std::cerr << e.what () << std::endl; \
00017 } \
00018 catch (std::exception const & e) { \
00019 std::cerr << e.what () << std::endl; \
00020 } \
00021 catch (...) { \
00022 std::cerr << std::endl; \
00023 } \
00024
00025
00027
00028 void run_test (std::string fileURL);
00029
00030 void job_run (std::string rm_url, std::string exe, std::vector<std::string> args);
00031
00032 void job_submit (std::string rm_url, std::string exe, std::vector<std::string> args);
00033
00034 void job_state (std::string job_id);
00035
00036 void job_suspend (std::string rum_url, std::string job_id);
00037
00038 void job_resume (std::string rum_url, std::string job_id);
00039
00040
00041 #endif
00042
00043