Added DocumentStoreEngine::getUniqueID
Added ModelCardDatabase::getStoreID
This commit is contained in:
@@ -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:
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user