MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / getDocTransientPath

Method getDocTransientPath

src/App/PropertyFile.cpp:78–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78std::string PropertyFileIncluded::getDocTransientPath() const
79{
80 std::string path;
81 PropertyContainer* co = getContainer();
82 if (co->isDerivedFrom<DocumentObject>()) {
83 path = static_cast<DocumentObject*>(co)->getDocument()->TransientDir.getValue();
84 std::replace(path.begin(), path.end(), '\\', '/');
85 }
86 return path;
87}
88
89std::string PropertyFileIncluded::getUniqueFileName(const std::string& path,
90 const std::string& filename) const

Callers

nothing calls this directly

Calls 6

getContainerFunction · 0.85
replaceFunction · 0.85
getValueMethod · 0.45
getDocumentMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected