API Reference > Classes > OdIfcHostAppServices Class > OdIfcHostAppServices Methods > createDatabase Method > OdIfcHostAppServices::createDatabase Method (IfcSchema)
OdIfcHostAppServices::createDatabase Method (IfcSchema)
Syntax
C++
virtual OdIfcFilePtr createDatabase(IfcSchema initialSchema = kScmUndefined) const;
Parameters 
Description 
IfcSchema initialSchema = kScmUndefined 
[in] An initial schema to be used for the new instance creation.  

A smart pointer to the OdIfcFile object that represents the created database instance.

Creates a new instance of the OdIfcFile class.

If the parameter is equal to the kScmUndefined value, the created .ifc file doesn't have underlying OdDAI::Model object. This way of initialization is used for the file open operation when the underlying model should be created during the file loading process. The host application services object is associated with the newly created database.

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