| 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); |
nothing calls this directly
no test coverage detected