Fission FSN
Loading...
Searching...
No Matches
fsC3dModelManager.h
Go to the documentation of this file.
1/********************************************************************
2*
3* Created: 31/10/2014 15:41
4*
5* File: fsC3dModelManager.h
6*
7* Author: Martin P. King
8*
9* Purpose: A 3D Model
10*
11*********************************************************************/
12
13#ifndef fsC3dModelManagerhdr
14#define fsC3dModelManagerhdr
15
16#include <memory>
17#include <map>
18
19#include <fsCore/fsStr.h>
21
22class fsI3dModelData;
23
24
25class fsC3dModelManager : public fsTSingleton<fsC3dModelManager>
26{
27 friend class fsTSingleton<fsC3dModelManager>;
28
29public:
30
31 void flush();
32
33 std::shared_ptr<fsI3dModelData> const get(const fsStr& pFilename);
34
35protected:
36
39
40private:
41
42 std::shared_ptr<fsI3dModelData> const newModelDataLoad(const fsStr& pFilename);
43 std::map<fsStr, std::shared_ptr<fsI3dModelData>>::iterator existingModelDataFind(const fsStr& pFilename);
44
45 std::map<fsStr, std::shared_ptr<fsI3dModelData>> mModelData;
46};
47
48
49#endif
void flush()
Definition fsC3dModelManager.cpp:15
~fsC3dModelManager()
Definition fsC3dModelManager.cpp:55
std::shared_ptr< fsI3dModelData > const get(const fsStr &pFilename)
Definition fsC3dModelManager.cpp:33
fsC3dModelManager()
Definition fsC3dModelManager.cpp:51
Definition fsI3dModelData.h:21
Definition fsStr.h:23