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

Method clone

src/utilities/filetypes/WorkflowJSON.cpp:99–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 }
98
99 WorkflowJSON WorkflowJSON_Impl::clone() const {
100 WorkflowJSON result(this->string(true));
101
102 boost::optional<openstudio::path> oswPath = this->oswPath();
103 if (oswPath) {
104 result.setOswPath(*oswPath);
105 } else {
106 result.setOswDir(this->oswDir());
107 }
108
109 return result;
110 }
111
112 Json::Value WorkflowJSON_Impl::toJSON(bool includeHash) const {
113

Callers 1

addMeasureMethod · 0.45

Calls 5

stringMethod · 0.95
oswPathMethod · 0.95
oswDirMethod · 0.95
setOswPathMethod · 0.80
setOswDirMethod · 0.80

Tested by

no test coverage detected