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

Method IdfObject_Impl

src/utilities/idf/IdfObject.cpp:38–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 // CONSTRUCTORS
37
38 IdfObject_Impl::IdfObject_Impl(const IdfObject_Impl& other, bool keepHandle)
39 : m_comment(other.comment()), m_iddObject(other.iddObject()), m_fields(other.fields()), m_fieldComments(other.fieldComments()) {
40 if (keepHandle) {
41 OS_ASSERT(!other.handle().isNull());
42 m_handle = other.handle();
43 } else {
44 m_handle = openstudio::createUUID();
45 if (m_iddObject.hasHandleField()) {
46 bool ok = setString(0, toString(m_handle));
47 OS_ASSERT(ok);
48 }
49 }
50 }
51
52 IdfObject_Impl::IdfObject_Impl(IddObjectType type, bool fastName) : m_handle(openstudio::createUUID()) {
53 OptionalIddObject candidate = IddFactory::instance().getObject(type);

Callers

nothing calls this directly

Calls 12

createUUIDFunction · 0.85
iddObjectMethod · 0.80
isNullMethod · 0.80
hasHandleFieldMethod · 0.80
nameFieldIndexMethod · 0.80
toStringFunction · 0.50
commentMethod · 0.45
fieldsMethod · 0.45
fieldCommentsMethod · 0.45
handleMethod · 0.45
getObjectMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected