serial_port.hpp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // serial_port.hpp
  3. // ~~~~~~~~~~~~~~~
  4. //
  5. // Copyright (c) 2003-2008 Christopher M. Kohlhoff (chris at kohlhoff dot com)
  6. // Copyright (c) 2008 Rep Invariant Systems, Inc. (info@repinvariant.com)
  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/push_options.hpp>
  17. #include <boost/asio/basic_serial_port.hpp>
  18. #if defined(BOOST_ASIO_HAS_SERIAL_PORT) \
  19. || defined(GENERATING_DOCUMENTATION)
  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. #include <boost/asio/detail/pop_options.hpp>
  29. #endif // BOOST_ASIO_SERIAL_PORT_HPP