Build the IfcDataStore for tables a reader has already populated.
Such a store cannot route through createSyntheticDataStore (it builds empty
tables), so the accessors are attached to the populated store instead.
attachDataStoreAccessors then wires getEntity/getEntitiesByType through the
STEP BufferEntitySource, which cannot read a store whose source is not STEP and
whose byte index is empty: it would return null/[] for every entity. Both are
overridden to serve the IfcEntity contract from the populated entity table. (Raw
STEP attribute lists do not exist here, so attributes is empty: identity rides
type, and name/GlobalId come from the entity table via the store's other accessors.)
Build the
IfcDataStorefor tables a reader has already populated.Such a store cannot route through
createSyntheticDataStore(it builds empty tables), so the accessors are attached to the populated store instead.attachDataStoreAccessorsthen wiresgetEntity/getEntitiesByTypethrough the STEPBufferEntitySource, which cannot read a store whose source is not STEP and whose byte index is empty: it would return null/[] for every entity. Both are overridden to serve theIfcEntitycontract from the populated entity table. (Raw STEP attribute lists do not exist here, soattributesis empty: identity ridestype, and name/GlobalId come from the entity table via the store's other accessors.)