// 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) #include #include "saga-advert.hpp" /////////////////////////////////////////////////////////////////////////////// #if defined(SAGA_HAVE_PACKAGE_ADVERT) && defined(SAGA_HAVE_PACKAGE_NAMESPACE) void advert_get_attribute (saga_tools::common & c, std::string aname, std::string key) { // instantiate advert entry saga::advert::entry e (c.session (), saga::url (aname), saga::advert::ReadWrite); // set attribute std::cout << e.get_attribute (key) << std::endl; } #endif