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
00026
00028
00029 void run_test (std::string fileURL);
00030
00031 void file_cat (std::string fileURL);
00032
00033 void file_remove (std::string fileURL);
00034
00035 void file_copy (std::string sourceURL, std::string targetURL);
00036
00037 void file_move (std::string sourceURL, std::string targetURL);
00038
00039 void list_dir (std::string directoryURL);
00040
00041 #endif