| 655 | /** -------------------------- Implementation -------------------------- */ |
| 656 | |
| 657 | inline |
| 658 | SerialStreamBuf::Implementation::Implementation(const std::string& fileName, |
| 659 | const BaudRate& baudRate, |
| 660 | const CharacterSize& characterSize, |
| 661 | const FlowControl& flowControlType, |
| 662 | const Parity& parityType, |
| 663 | const StopBits& stopBits) |
| 664 | try : mSerialPort(fileName, |
| 665 | baudRate, |
| 666 | characterSize, |
| 667 | flowControlType, |
| 668 | parityType, |
| 669 | stopBits) |
| 670 | { |
| 671 | // empty |
| 672 | } |
| 673 | catch (const std::exception& err) |
| 674 | { |
| 675 | throw OpenFailed(err.what()) ; |
| 676 | } |
| 677 | |
| 678 | inline |
| 679 | void |