// Copyright (c) 2005-2007 Hartmut Kaiser // Copyright (c) 2005-2007 Andre Merzky (andre@merzky.net) // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef ADAPTORS_SSH_JOB_ADAPTOR_HPP #define ADAPTORS_SSH_JOB_ADAPTOR_HPP // saga adaptor includes #include //////////////////////////////////////////////////////////////////////// namespace ssh_job { class adaptor : public saga::adaptor { private: saga::ini::ini adap_ini_; public: bool init (saga::impl::session * s, saga::ini::ini const & glob_ini, saga::ini::ini const & adap_ini); void dump_context (saga::context c); typedef saga::impl::v1_0::op_info op_info; typedef saga::impl::v1_0::cpi_info cpi_info; typedef saga::impl::v1_0::preference_type preference_type; // This function registers the adaptor with the factory // @param factory the factory where the adaptor registers // its maker function and description table saga::impl::adaptor_selector::adaptor_info_list_type adaptor_register (saga::impl::session * s); std::string get_name (void) const { return BOOST_PP_STRINGIZE (SAGA_ADAPTOR_NAME); } std::string translate_jobid (const std::string & in, const std::string & host = "localhost"); }; } // namespace ssh_job //////////////////////////////////////////////////////////////////////// #endif // ADAPTORS_SSH_JOB_ADAPTOR_HPP