MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / GetName

Method GetName

lib/mdflib/include/mdflibrary/MdfFile.h:22–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 : MdfFile(const_cast<mdf::MdfFile*>(file)) {}
21 ~MdfFile() { file = nullptr; }
22 std::string GetName() const {
23 std::string str(MdfFileGetName(file, nullptr) + 1, '\0');
24 str.resize(MdfFileGetName(file, str.data()));
25 return str;
26 }
27 void SetName(const char* name) { MdfFileSetName(file, name); }
28 std::string GetFileName() const {
29 std::string str(MdfFileGetFileName(file, nullptr) + 1, '\0');

Callers 1

cpp_exampleFunction · 0.45

Calls 2

resizeMethod · 0.45
dataMethod · 0.45

Tested by 1

cpp_exampleFunction · 0.36