API Reference > Classes > PRC Base Classes > OdPrcHostAppServices Class > OdPrcHostAppServices Methods > OdPrcHostAppServices::createDatabase Method
OdPrcHostAppServices::createDatabase Method
Syntax
C++
virtual OdPrcFilePtr createDatabase(DatabaseDefaultContent defaultContent = kDbDefault) const;
Parameters 
Description 
DatabaseDefaultContent defaultContent = kDbDefault 
[in] A default database content flag. It determines whether the newly created database is populated with the default set of objects (by default). If the parameter value is equal to kNotInitialized, the database default content is not initialized.
 

Returns the newly created database.

Creates an instance of an OdPrcFile object. 

 

This HostAppServices object will be associated with the newly created database.

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