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

Method addFilePath

src/utilities/filetypes/WorkflowJSON.cpp:444–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442 }
443
444 bool WorkflowJSON_Impl::addFilePath(const openstudio::path& path) {
445 if (!m_value.isMember("file_paths") || !m_value["file_paths"].isArray()) {
446 m_value["file_paths"] = Json::Value(Json::arrayValue);
447 }
448 m_value["file_paths"].append(toString(path));
449 onUpdate();
450 return true;
451 }
452
453 void WorkflowJSON_Impl::resetFilePaths() {
454 m_value["file_paths"] = Json::Value(Json::arrayValue);

Callers 3

TEST_FFunction · 0.80
TEST_FFunction · 0.80
runInitializationMethod · 0.80

Calls 3

isMemberMethod · 0.80
ValueClass · 0.70
toStringFunction · 0.50

Tested by 2

TEST_FFunction · 0.64
TEST_FFunction · 0.64