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

Method ComponentData

src/model/ComponentData.cpp:173–178  ·  view source on GitHub ↗

@cond

Source from the content-addressed store, hash-verified

171
172 /// @cond
173 ComponentData::ComponentData(const Model& model) : ResourceObject(iddObjectType(), model) {
174 OS_ASSERT(getImpl<detail::ComponentData_Impl>());
175 setString(OS_ComponentDataFields::UUID, toString(createUUID()));
176 setInt(OS_ComponentDataFields::CreationTimestamp, (int)time(nullptr));
177 createVersionUUID();
178 }
179
180 ComponentData::ComponentData(std::shared_ptr<detail::ComponentData_Impl> impl) : ResourceObject(std::move(impl)) {}
181 /// @endcond

Callers

nothing calls this directly

Calls 3

createUUIDFunction · 0.85
iddObjectTypeFunction · 0.70
toStringFunction · 0.50

Tested by

no test coverage detected