MCPcopy Create free account
hub / github.com/SIPp/sipp / setFileName

Method setFileName

src/scenario.cpp:414–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414void scenario::setFileName(const char *name)
415{
416 const char* sep = strrchr(name, '/');
417 if (sep) {
418 ++sep; // include slash
419 path = std::string(name, sep - name);
420 } else {
421 path.clear();
422 sep = name;
423 }
424 const char* ext = strrchr(sep, '.');
425 if (ext && strcmp(ext, ".xml") == 0) {
426 fileName = std::string(sep, ext - sep);
427 } else {
428 fileName = sep;
429 }
430 stats->setFileName(fileName.c_str(), ".csv");
431}
432
433void scenario::removeRtpTaskThreadID(pthread_t id)
434{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected