globjects  2.0.0.630135941c42
Strict OpenGL objects wrapper.
Loading...
Searching...
No Matches
FileRegistry.h
Go to the documentation of this file.
1
2#pragma once
3
4
5#include <set>
6#include <string>
7
8#include <globjects/globjects_api.h>
9
11
12
13namespace globjects
14{
15
16
17class File;
18
19
20class GLOBJECTS_API FileRegistry : public Instantiator<FileRegistry>
21{
22public:
24 virtual ~FileRegistry();
25
26 File * get(const std::string & filePath) const;
27
28 void registerFile(File * file);
29 void deregisterFile(File * file);
30
31 void reloadAll();
32
33
34protected:
35 std::set<File*> m_registeredFiles;
36};
37
38
39} // namespace globjects
String source associated to a file.
Definition File.h:25
Definition FileRegistry.h:21
void deregisterFile(File *file)
File * get(const std::string &filePath) const
std::set< File * > m_registeredFiles
Definition FileRegistry.h:35
void registerFile(File *file)
CRTP for creating objects similar to std::make_unique.
Definition Instantiator.h:22
Contains all the classes that wrap OpenGL functionality.