| 108 | } |
| 109 | |
| 110 | bool ComponentData_Impl::registerObject(const ModelObject& object) { |
| 111 | IdfExtensibleGroup eg = pushExtensibleGroup(StringVector()); |
| 112 | bool result = !eg.empty(); |
| 113 | if (result) { |
| 114 | auto meg = eg.cast<ModelExtensibleGroup>(); |
| 115 | result = result && meg.setPointer(OS_ComponentDataExtensibleFields::NameofObject, object.handle()); |
| 116 | } |
| 117 | return result; |
| 118 | } |
| 119 | |
| 120 | unsigned ComponentData_Impl::numComponentObjects() const { |
| 121 | return numExtensibleGroups(); |
no test coverage detected