API Reference > Classes > OdIfcFile Class > OdIfcFile Methods > initialize Method > OdIfcFile::initialize Method (OdDAI::Repository*)
OdIfcFile::initialize Method (OdDAI::Repository*)
Syntax
C++
OdResult initialize(OdDAI::Repository* pRepo);
Parameters 
Description 
OdDAI::Repository* pRepo 
[in] A raw pointer to the repository object to be attached to the file object.  

eOk if the repository object was successfully attached; otherwise, the method returns an appropriate error code.

Initializes OdIfcFile instance with a specified repository if it contains appropriate information in IFC format (single model of supported IFC schema). After the initialization, the model becomes opened in read-only access mode by default and stays in this mode while the repository is attached to the file object.

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.