// Copyright (c) 2008 Ole Weidner // // 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 #if !defined(SAGA_HAVE_PACKAGE_REPLICA) || !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 replica_add_lfn(std::string lfnURL); void replica_remove_lfn(std::string lfnURL); void replica_list_directory (std::string lfnURL); void replica_add_directory (std::string lfnURL); void replica_remove_directory (std::string lfnURL); void replica_list_pfns(std::string lfn); void replica_list_attributes(std::string lfn); void replica_set_attribute (std::string lfnURL, std::string key, std::string val); void replica_remove_attribute (std::string lfnURL, std::string key); void replica_add_pfn (std::string lfnURL, std::string pfnURL); void replica_remove_pfn (std::string lfnURL, std::string pfnURL); #endif