// Copyright (c) 2008-2009 Hartmut Kaiser // // 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_REPLICA_HPP #define SAGA_REPLICA_HPP #include #include #include /////////////////////////////////////////////////////////////////////////////// #if !defined(SAGA_HAVE_PACKAGE_ADVERT) || !defined(SAGA_HAVE_PACKAGE_NAMESPACE) #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 advert_list_directory(std::string advertURL, std::string pattern); void advert_dump_directory(saga::url advertURL, std::string indent = " "); void advert_add_directory(std::string advertURL); void advert_add_entry(std::string advertURL); void advert_remove_entry (std::string advertURL); void advert_remove_directory (std::string advertURL); void advert_list_attributes(std::string advertURL); void advert_add_attribute (std::string advertURL, std::string key, std::string val); void advert_remove_attribute (std::string advertURL, std::string key); void advert_store_string (std::string advertURL, std::string data); void advert_retrieve_string (std::string advertURL); #endif