|
Freya
0.0.1
A Gtk3 MPD Client
|
00001 #ifndef FREYA_COMPILESYMBOLS_HH 00002 #define FREYA_COMPILESYMBOLS_HH 00003 00004 #include <map> 00005 #include <string> 00006 #include "Singleton.hh" 00007 00008 namespace Utils 00009 { 00010 class CompileSymbols 00011 { 00012 DEF_SINGLETON(CompileSymbols); 00013 00014 public: 00015 00016 // Inline definition, because other file is autogenerated. 00017 00018 const char * get_defs(const char * key) 00019 { 00020 if(key != NULL) 00021 { 00022 std::string skey(key); 00023 return compile_defs[skey]; 00024 } 00025 return NULL; 00026 } 00027 00028 private: 00029 00030 std::map<std::string,const char*> compile_defs; 00031 }; 00032 } 00033 00034 #endif /* end of include guard: FREYA_COMPILESYMBOLS_HH */ 00035
1.8.0