Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-04-09 08:28:00

0001 //
0002 // Copyright (c) 2019-2024 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
0003 //
0004 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0005 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 
0008 #ifndef BOOST_MYSQL_DETAIL_ENGINE_HPP
0009 #define BOOST_MYSQL_DETAIL_ENGINE_HPP
0010 
0011 #include <boost/mysql/detail/any_resumable_ref.hpp>
0012 
0013 #include <boost/asio/any_completion_handler.hpp>
0014 #include <boost/asio/any_io_executor.hpp>
0015 
0016 namespace boost {
0017 namespace mysql {
0018 namespace detail {
0019 
0020 class engine
0021 {
0022 public:
0023     using executor_type = asio::any_io_executor;
0024 
0025     virtual ~engine() {}
0026     virtual executor_type get_executor() = 0;
0027     virtual bool supports_ssl() const = 0;
0028     virtual void set_endpoint(const void* endpoint) = 0;
0029     virtual void run(any_resumable_ref resumable, error_code& err) = 0;
0030     virtual void async_run(any_resumable_ref resumable, asio::any_completion_handler<void(error_code)>) = 0;
0031 };
0032 
0033 }  // namespace detail
0034 }  // namespace mysql
0035 }  // namespace boost
0036 
0037 #endif