company logo

ObjectSpace :: isDatabase - Is object space a database

The property returns, whether the object space is a database or not. The property return true , when the object space is a database and false otherwise. The function should be called before converting an object space into a database.

Database GetDatabase ( ObjectSpace &os ) {

  return os.isDatabase() ? os.asDatabase() : Database();

}

Return value:  Success ( bool  )

The value is true when the function was executed successfully. Otherwise the value is set to false .

Implementation details

bool ObjectSpace  :: isDatabase (  )