00001 00002 /* Copyright 2009 Diego Barrios Romero 00003 * 00004 * This file is part of DSMemorizer. 00005 * 00006 * DSMemorizer is free software: you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation, either version 3 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * DSMemorizer distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with DSMemorizer. If not, see <http://www.gnu.org/licenses/>. 00018 */ 00019 00020 #ifndef FILES_H_ 00021 #define FILES_H_ 00022 00023 #include <string> 00024 #include "types.h" 00025 00027 namespace Files 00028 { 00030 std::string filepath (Types::Font f) 00031 { 00032 std::string path; 00033 switch(f) 00034 { 00035 case Types::MONA_FONT: path = std::string ("/fonts/mona.ttf"); 00036 break; 00037 case Types::VERA_FONT: path = std::string ("/fonts/vera.ttf"); 00038 break; 00039 } 00040 return path; 00041 } 00042 } 00043 00044 #endif // FILES_H_ 00045
1.5.8