OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
DataSourceManager.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <string>
6#include <map>
7
8#include "OldTreeIcon.h"
9
11
12class ClassFactory;
13
15{
16public:
18 virtual ~DataSourceManager();
19
20 static DataSourceManagerItem *getDataItem(ot::UID sourceID, ot::UID sourceVersion, ot::UID meshID, ot::UID meshVersion, ot::components::ModelComponent *modelComponent, ClassFactory* classFactory);
21
22 static void deleteDataItem(ot::UID sourceID, ot::UID sourceVersion);
23 static bool isDataItemLoaded(ot::UID sourceID, ot::UID sourceVersion);
24
25 static void deleteAllDataItems(void);
26
27private:
28 static std::map<std::pair<ot::UID, ot::UID>, DataSourceManagerItem *> dataItems;
29};
Definition DataSourceManager.h:15
static void deleteDataItem(ot::UID sourceID, ot::UID sourceVersion)
Definition DataSourceManager.cpp:57
virtual ~DataSourceManager()
Definition DataSourceManager.cpp:19
static DataSourceManagerItem * getDataItem(ot::UID sourceID, ot::UID sourceVersion, ot::UID meshID, ot::UID meshVersion, ot::components::ModelComponent *modelComponent, ClassFactory *classFactory)
Definition DataSourceManager.cpp:24
DataSourceManager()
Definition DataSourceManager.cpp:14
static void deleteAllDataItems(void)
Definition DataSourceManager.cpp:71
static bool isDataItemLoaded(ot::UID sourceID, ot::UID sourceVersion)
Definition DataSourceManager.cpp:66
Definition DataSourceManagerItem.h:17
Definition ModelComponent.h:42
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27