00001
00002
00003
00004
00005
00006 #ifndef SAGA_REPLICA_HPP
00007 #define SAGA_REPLICA_HPP
00008
00009 #include <iostream>
00010 #include <saga/saga-defs.hpp>
00011
00013 #if !defined(SAGA_HAVE_PACKAGE_ADVERT) || !defined(SAGA_HAVE_PACKAGE_NAMESPACE)
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 advert_list_directory(std::string advertURL, std::string pattern);
00035
00036 void advert_dump_directory(std::string advertURL, std::string indent = " ", std::string cwd = "");
00037
00038 void advert_add_directory(std::string advertURL);
00039
00040 void advert_add_entry(std::string advertURL);
00041
00042 void advert_remove_entry (std::string advertURL);
00043
00044 void advert_remove_directory (std::string advertURL);
00045
00046 void advert_list_attributes(std::string advertURL);
00047
00048 void advert_add_attribute (std::string advertURL, std::string key, std::string val);
00049
00050 void advert_remove_attribute (std::string advertURL, std::string key);
00051
00052 void advert_store_string (std::string advertURL, std::string data);
00053
00054 void advert_retrieve_string (std::string advertURL);
00055
00056 #endif