MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / clone

Method clone

src/model/ExternalFile.cpp:57–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 ModelObject ExternalFile_Impl::clone(Model model) const {
58 boost::optional<ExternalFile> externalFile = ExternalFile::getExternalFile(model, toString(this->filePath()));
59 if (!externalFile) {
60 LOG_AND_THROW("Could not clone " << this->briefDescription());
61 }
62 return *externalFile;
63 }
64
65 std::vector<IdfObject> ExternalFile_Impl::remove() {
66 if (!fileName().empty()) {

Callers

nothing calls this directly

Calls 3

filePathMethod · 0.95
briefDescriptionMethod · 0.80
toStringFunction · 0.50

Tested by

no test coverage detected