serial_port.hpp 1010 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // serial_port.hpp
  3. // ~~~~~~~~~~~~~~~
  4. //
  5. // Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
  6. // Copyright (c) 2008 Rep Invariant Systems, Inc. ([email protected])
  7. //
  8. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  9. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  10. //
  11. #ifndef BOOST_ASIO_SERIAL_PORT_HPP
  12. #define BOOST_ASIO_SERIAL_PORT_HPP
  13. #if defined(_MSC_VER) && (_MSC_VER >= 1200)
  14. # pragma once
  15. #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
  16. #include <boost/asio/detail/config.hpp>
  17. #if defined(BOOST_ASIO_HAS_SERIAL_PORT) \
  18. || defined(GENERATING_DOCUMENTATION)
  19. #include <boost/asio/basic_serial_port.hpp>
  20. namespace boost {
  21. namespace asio {
  22. /// Typedef for the typical usage of a serial port.
  23. typedef basic_serial_port<> serial_port;
  24. } // namespace asio
  25. } // namespace boost
  26. #endif // defined(BOOST_ASIO_HAS_SERIAL_PORT)
  27. // || defined(GENERATING_DOCUMENTATION)
  28. #endif // BOOST_ASIO_SERIAL_PORT_HPP