SettableSerialPortOption.qbk 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. [/
  2. / Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com)
  3. /
  4. / Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. /]
  7. [section:SettableSerialPortOption Settable serial port option requirements]
  8. In the table below, `X` denotes a serial port option class, `a` denotes a value
  9. of `X`, `ec` denotes a value of type `error_code`, and `s` denotes a value of
  10. implementation-defined type ['[^storage]] (where ['[^storage]] is the type
  11. `DCB` on Windows and `termios` on __POSIX__ platforms), and `u` denotes an
  12. identifier.
  13. [table SettableSerialPortOption requirements
  14. [[expression] [type] [assertion/note\npre/post-conditions]]
  15. [
  16. [
  17. `const X& u = a;`\n
  18. `u.store(s, ec);`
  19. ]
  20. [`error_code`]
  21. [
  22. Saves the value of the serial port option to the storage.\n
  23. \n
  24. If successful, sets `ec` such that `!ec` is true. If an error occurred,
  25. sets `ec` such that `!!ec` is true. Returns `ec`.
  26. ]
  27. ]
  28. ]
  29. [endsect]