Line data Source code
1 : /*! 2 : * \file esys/repo/sshbase.cpp 3 : * \brief 4 : * 5 : * \cond 6 : * __legal_b__ 7 : * 8 : * Copyright (c) 2021 Michel Gillet 9 : * Distributed under the MIT License. 10 : * (See accompanying file LICENSE.txt or 11 : * copy at https://opensource.org/licenses/MIT) 12 : * 13 : * __legal_e__ 14 : * \endcond 15 : * 16 : */ 17 : 18 : #include "esys/repo/esysrepo_prec.h" 19 : #include "esys/repo/sshbase.h" 20 : 21 : namespace esys::repo 22 : { 23 : 24 203 : SSHBase::SSHBase() 25 203 : : log::User() 26 : { 27 203 : } 28 : 29 203 : SSHBase::~SSHBase() = default; 30 : 31 139 : void SSHBase::_set_agent_present(AgentPresent agent_present) 32 : { 33 139 : m_agent_present = agent_present; 34 139 : } 35 : 36 386 : SSHBase::AgentPresent SSHBase::_get_agent_present() const 37 : { 38 386 : return m_agent_present; 39 : } 40 : 41 1 : void SSHBase::set_agent_identity_path(const std::string &agent_identity_path) 42 : { 43 1 : m_agent_identity_path = agent_identity_path; 44 1 : } 45 : 46 418 : const std::string &SSHBase::get_agent_identity_path() const 47 : { 48 418 : return m_agent_identity_path; 49 : } 50 : 51 : } // namespace esys::repo