// 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) #include #include #include #include "saga-file.hpp" /////////////////////////////////////////////////////////////////////////////// void run_test (std::string sourceURL) { // using namespace saga::attributes; // SAGA_GUARDED_EXEC // ( saga::context c0; /*saga::context c1("globus"); c1.set_defaults(); std::cout << "Type: " << c1.get_attribute(context_type) << std::endl; std::cout << "Proxy Path: " << c1.get_attribute(context_userproxy) << std::endl; std::cout << "User ID: " << c1.get_attribute(context_userid) << std::endl; std::cout << "Lifetime: " << c1.get_attribute(context_lifetime) << std::endl << std::endl; saga::context c2("globus"); c2.set_attribute(context_userproxy, "/tmp/gsu-proxy"); c2.set_defaults(); std::cout << "Type: " << c2.get_attribute(context_type) << std::endl; std::cout << "Proxy Path: " << c2.get_attribute(context_userproxy) << std::endl; std::cout << "User ID: " << c2.get_attribute(context_userid) << std::endl; std::cout << "Lifetime: " << c2.get_attribute(context_lifetime) << std::endl; saga::session s; //s.add_context(c1); //saga::filesystem::file f1(s, saga::url("grdftp://gg101.cct.lsu.edu//etc/profile")); */ // ) }