API Reference > Classes > OdIfcHostAppServices Class > OdIfcHostAppServices Methods > createDatabase Method > OdIfcHostAppServices::createDatabase Method (OdAnsiString &)
OdIfcHostAppServices::createDatabase Method (OdAnsiString &)
Syntax
C++
virtual OdIfcFilePtr createDatabase(const OdAnsiString & schemaName) const;
Parameters 
Description 
const OdAnsiString & schemaName 
[in] An initial schema name 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 string is empty, 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.