logic: combined GraphAccess and LocationAccess to StorageAccess
Having only one access point to the Storage will simplify caching and parallelisation in the future. Also the two accesses were never really independent of each other anyways, because in some cases they had to access both data sets.
This commit is contained in:
+4
-6
@@ -7,13 +7,12 @@
|
||||
|
||||
#include "data/Storage.h"
|
||||
|
||||
class GraphAccessProxy;
|
||||
class LocationAccessProxy;
|
||||
class StorageAccessProxy;
|
||||
|
||||
class Project
|
||||
{
|
||||
public:
|
||||
static std::shared_ptr<Project> create(GraphAccessProxy* graphAccessProxy, LocationAccessProxy* locationAccessProxy);
|
||||
static std::shared_ptr<Project> create(StorageAccessProxy* storageAccessProxy);
|
||||
|
||||
~Project();
|
||||
|
||||
@@ -27,14 +26,13 @@ public:
|
||||
void parseCode();
|
||||
|
||||
private:
|
||||
Project(GraphAccessProxy* graphAccessProxy, LocationAccessProxy* locationAccessProxy);
|
||||
Project(StorageAccessProxy* storageAccessProxy);
|
||||
Project(const Project&);
|
||||
Project operator=(const Project&);
|
||||
|
||||
std::string m_projectSettingsFilepath;
|
||||
|
||||
GraphAccessProxy* const m_graphAccessProxy;
|
||||
LocationAccessProxy* const m_locationAccessProxy;
|
||||
StorageAccessProxy* const m_storageAccessProxy;
|
||||
|
||||
std::shared_ptr<Storage> m_storage;
|
||||
std::shared_ptr<FileManager> m_fileManager;
|
||||
|
||||
Reference in New Issue
Block a user