| 681 | } |
| 682 | |
| 683 | std::string |
| 684 | InspectorUI::captureFileName(void) const |
| 685 | { |
| 686 | unsigned int i = 0; |
| 687 | std::string path; |
| 688 | |
| 689 | do { |
| 690 | std::ostringstream os; |
| 691 | |
| 692 | os << "channel-capture-" |
| 693 | << this->getClassName() |
| 694 | << "-" |
| 695 | << std::to_string(this->getBaudRate()) |
| 696 | << "-baud-" |
| 697 | << std::setw(4) |
| 698 | << std::setfill('0') |
| 699 | << ++i |
| 700 | << ".raw"; |
| 701 | path = this->saverUI->getRecordSavePath() + "/" + os.str(); |
| 702 | } while (access(path.c_str(), F_OK) != -1); |
| 703 | |
| 704 | return path; |
| 705 | } |
| 706 | |
| 707 | bool |
| 708 | InspectorUI::installNetForwarder(void) |
no test coverage detected