mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +01:00
Removed ThemeMap.
This commit is contained in:
parent
3f48c9be38
commit
7f4adcd13d
@ -1,3 +1,3 @@
|
||||
g++ -o3 -g main.cpp ./core/settings.cpp ./core/request.cpp ./core/http_server.cpp ./core/file_cache.cpp ./core/application.cpp ./rdn_application.cpp \
|
||||
./themes/theme.cpp ./themes/theme_map.cpp \
|
||||
./themes/theme.cpp \
|
||||
-o ./bin/server -Ilibs -lpthread -std=c++11
|
||||
|
@ -4,6 +4,30 @@
|
||||
#include<map>
|
||||
#include<string>
|
||||
|
||||
/*
|
||||
class ThemeMap {
|
||||
public:
|
||||
THEME_CLASS *current_theme;
|
||||
std::map<std::string, THEME_CLASS> theme_map;
|
||||
|
||||
ThemeMap() {
|
||||
_instance = this;
|
||||
}
|
||||
~ThemeMap() {
|
||||
_instance = nullptr;
|
||||
}
|
||||
|
||||
static ThemeMap *get_singleton() {
|
||||
return _instance;
|
||||
}
|
||||
|
||||
private:
|
||||
static ThemeMap *_instance;
|
||||
};
|
||||
|
||||
ThemeMap *ThemeMap::_instance = nullptr;
|
||||
*/
|
||||
|
||||
class Theme {
|
||||
public:
|
||||
|
||||
|
@ -1,15 +0,0 @@
|
||||
#include "theme_map.h"
|
||||
|
||||
ThemeMap::ThemeMap() {
|
||||
_instance = this;
|
||||
}
|
||||
|
||||
ThemeMap::~ThemeMap() {
|
||||
_instance = nullptr;
|
||||
}
|
||||
|
||||
ThemeMap *ThemeMap::get_singleton() {
|
||||
return _instance;
|
||||
}
|
||||
|
||||
ThemeMap *ThemeMap::_instance = nullptr;
|
@ -1,28 +0,0 @@
|
||||
#ifndef THEME_MAP_H
|
||||
#define THEME_MAP_H
|
||||
|
||||
#ifndef THEME_CLASS_INCLUDE
|
||||
#define THEME_CLASS_INCLUDE "theme.h"
|
||||
#endif
|
||||
|
||||
#ifndef THEME_CLASS
|
||||
#define THEME_CLASS Theme
|
||||
#endif
|
||||
|
||||
#include THEME_CLASS_INCLUDE
|
||||
|
||||
class ThemeMap {
|
||||
public:
|
||||
THEME_CLASS *current_theme;
|
||||
std::map<std::string, THEME_CLASS> theme_map;
|
||||
|
||||
ThemeMap();
|
||||
~ThemeMap();
|
||||
|
||||
static ThemeMap *get_singleton();
|
||||
|
||||
private:
|
||||
static ThemeMap *_instance;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user