API Reference > OdDb Classes > OdGiContextForDbDatabase Class > OdGiContextForDbDatabase Methods > OdGiContextForDbDatabase::setDatabase Method
OdGiContextForDbDatabase::setDatabase Method
Syntax
C++
void setDatabase(OdDbDatabase* pDb, bool bTrackDbDestroy = true);
Parameters 
Description 
OdDbDatabase* pDb 
[in] Pointer to the database.  
bool bTrackDbDestroy = true 
[in] if to the database is not NULL then this parameter specifies if implementation should track database lifetime (by adding reactor to the database and processing OdDbDatabaseReactor::goodbye() event) and to clear pointer to the database if it will be destroyed. If you sure that lifetime of this object is shorter then lifetime of the database you may set this parameter to false to turn off unnecessary database lifetime tracking. 

Sets the database to be vectorized. 

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.