Added DocumentStoreEngine::getUniqueID

Added ModelCardDatabase::getStoreID
This commit is contained in:
Ralph Wessel
2024-09-23 16:01:35 +01:00
parent f0fc7e8fec
commit 29ece2282f
3 changed files with 20 additions and 0 deletions
@@ -101,6 +101,16 @@ void ModelCardDatabase::erase(const String& cardID) const {
} //ModelCardDatabase::erase
/*--------------------------------------------------------------------
Get the unique ID of the engine storage
return: The databas unique ID
--------------------------------------------------------------------*/
RecordID ModelCardDatabase::getStoreID() const {
return m_engine->getUniqueID();
} //ModelCardDatabase::getStoreID
/*--------------------------------------------------------------------
Get a serialisation wrapper for the database
@@ -49,6 +49,11 @@ namespace connector::database {
@return A database wrapper
*/
std::unique_ptr<active::serialise::Cargo> wrapper() const;
/*!
Get the unique ID of the engine storage
@return The database unique ID
*/
speckle::database::RecordID getStoreID() const;
// MARK: - Functions (mutating)
@@ -122,6 +122,11 @@ namespace speckle::database {
@return The database outline
*/
Outline getOutline() const override;
/*!
Get the engine unique ID
@return The unique ID
*/
RecordID getUniqueID() const { return getCache()->getID(); }
protected:
/*!