Realistic 3D camera system
3D camera system components
serial_port_base.hpp
Go to the documentation of this file.
1 //
2 // impl/serial_port_base.hpp
3 // ~~~~~~~~~~~~~~~~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2015 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 
12 #ifndef ASIO_IMPL_SERIAL_PORT_BASE_HPP
13 #define ASIO_IMPL_SERIAL_PORT_BASE_HPP
14 
15 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
16 # pragma once
17 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
18 
20 
21 namespace asio {
22 
23 inline serial_port_base::baud_rate::baud_rate(unsigned int rate)
24  : value_(rate)
25 {
26 }
27 
28 inline unsigned int serial_port_base::baud_rate::value() const
29 {
30  return value_;
31 }
32 
33 inline serial_port_base::flow_control::type
34 serial_port_base::flow_control::value() const
35 {
36  return value_;
37 }
38 
39 inline serial_port_base::parity::type serial_port_base::parity::value() const
40 {
41  return value_;
42 }
43 
44 inline serial_port_base::stop_bits::type
45 serial_port_base::stop_bits::value() const
46 {
47  return value_;
48 }
49 
50 inline unsigned int serial_port_base::character_size::value() const
51 {
52  return value_;
53 }
54 
55 } // namespace asio
56 
58 
59 #endif // ASIO_IMPL_SERIAL_PORT_BASE_HPP