API Reference > Classes > OdIfcHostAppServices Class > OdIfcHostAppServices Methods > OdIfcHostAppServices::createDatabase Method
OdIfcHostAppServices::createDatabase Method
Syntax
C++
virtual OdIfcFilePtr createDatabase(InitialSchema defaultContent = kScmUndefined) const;
Parameters 
Description 
InitialSchema defaultContent = kScmUndefined 
[in] A value of the default database content flag.  

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

Creates a new instance of the OdIfcFile class.

The default database content flag determines whether the newly created database is populated with the default set of objects (by default). If the parameter value is equal to the kNotInitialized value, the database default content is not initialized. The host application services object is associated with the newly created database.

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