// // C++ Interface: langmap // // Description: // // // Author: Lorenzo Bettini , (C) 2004 // // Copyright: See COPYING file that comes with this distribution // // #ifndef LANGMAP_H #define LANGMAP_H #include #include #include /** map a file extension to a language definition @author Lorenzo Bettini */ class LangMap { typedef std::map Map; Map langmap; public: LangMap() {} LangMap(const std::string &path, const std::string &filename); ~LangMap(); void print(); const std::string &get_file(const std::string &lang) { return langmap[lang]; } }; typedef boost::shared_ptr LangMapPtr; #endif