Clarified concepts for Storage and Engine types

Added FilterMover and CardMover to deal with polymorphic ModelCard and Sendfilter types
Implemented more of SenderModelCard (more needed)
This commit is contained in:
Ralph Wessel
2024-09-14 02:06:02 +01:00
parent 90211900e1
commit e75ef3133d
9 changed files with 258 additions and 43 deletions
@@ -2,6 +2,7 @@
#include "Active/Database/Storage/Storage.h"
#include "Active/Serialise/JSON/JSONTransport.h"
#include "Connector/Record/Model/CardMover.h"
#include "Speckle/Database/Identity/RecordID.h"
#include "Speckle/Database/Storage/DocumentStore/DocumentStoreEngine.h"
@@ -20,8 +21,8 @@ using namespace speckle::utility;
namespace connector::database {
///ModelCard database engine declaration
class ModelCardDatabase::Engine : public DocumentStoreEngine<ModelCard, ModelCard, JSONTransport, RecordID> {
using base = DocumentStoreEngine<ModelCard, ModelCard, JSONTransport, RecordID>;
class ModelCardDatabase::Engine : public DocumentStoreEngine<ModelCard, CardMover, JSONTransport, RecordID> {
using base = DocumentStoreEngine<ModelCard, CardMover, JSONTransport, RecordID>;
using base::base;
};