FreeRDP
sdl_resource_manager.hpp
1
18
#pragma once
19
20
#include <string>
21
#include <map>
22
#include <vector>
23
24
class
SDLResourceManager
25
{
26
friend
class
SDLResourceFile
;
27
28
public
:
29
SDLResourceManager
() =
delete
;
30
SDLResourceManager
(
const
SDLResourceManager
& other) =
delete
;
31
SDLResourceManager
(
const
SDLResourceManager
&& other) =
delete
;
32
~
SDLResourceManager
() =
delete
;
33
SDLResourceManager
operator=(
const
SDLResourceManager
& other) =
delete
;
34
SDLResourceManager
& operator=(
SDLResourceManager
&& other) =
delete
;
35
36
static
std::string
typeFonts
();
37
static
std::string typeImages();
38
39
protected
:
40
static
void
insert(
const
std::string& type,
const
std::string&
id
,
41
const
std::vector<unsigned char>& data);
42
43
static
const
std::vector<unsigned char>* data(
const
std::string& type,
const
std::string&
id
);
44
static
std::string filename(
const
std::string& type,
const
std::string&
id
);
45
46
static
bool
useCompiledResources();
47
48
private
:
49
static
std::map<std::string, std::vector<unsigned char>>& resources();
50
#if defined(SDL_USE_COMPILED_RESOURCES)
51
static
void
init();
// implemented in generated file
52
#endif
53
};
SDLResourceFile
Definition:
sdl_resource_file.hpp:24
SDLResourceManager
Definition:
sdl_resource_manager.hpp:25
SDLResourceManager::typeFonts
static std::string typeFonts()
Definition:
sdl_resource_manager.cpp:30
client
SDL
common
res
sdl_resource_manager.hpp
Generated by
1.9.1