MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / captureFileName

Method captureFileName

Default/GenericInspector/InspectorUI.cpp:683–705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

681}
682
683std::string
684InspectorUI::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
707bool
708InspectorUI::installNetForwarder(void)

Callers 1

installDataSaverMethod · 0.95

Calls 3

getClassNameMethod · 0.95
getBaudRateMethod · 0.95
getRecordSavePathMethod · 0.45

Tested by

no test coverage detected