#include <databasebinding.h>
DatabaseBinding is a collection of the databases to be used for world elements spatialization.
Inherits Kaim::RefCountBaseNTS< C, Stat >.
Public Member Functions | |
DatabaseBinding () | |
KyResult | AddDataBase (Database *database) |
World * | GetWorld () |
KyUInt32 | GetBoundDatabaseCount () const |
Database * | GetBoundDatabase (KyUInt32 boundDatabaseIndex) const |
KyUInt32 | GetBoundDatabaseIdx (KyUInt32 databaseIdxInWorld) const |
void | Clear () |
Adds a Database to this DatabaseBinding instance.
If this is the first Database, it initialize the internals to fit the databases count in the World and add the Database. If internal bound databases array is not empty, it checks the provided database is in the same World than the one(s) already there. If not, the database is simply ignored.
KY_SUCCESS | The provided Database has been successfully inserted in this DatabaseBinding. |
KY_ERROR | The provided Database is either associated to no World or to another World than the databases already listed in this DatabaseBinding. |
boundDatabaseIndex | The index of the Database to retrieve in bound databases array. |