/* core/func.cc This file is part of the Osirion project and is distributed under the terms of the GNU General Public License version 2 */ #include "core/func.h" #include namespace core { std::map functionmap; void func_register(const char * functionname, Func functionptr) { functionmap[std::string(functionname)] = functionptr; } void func_unregister(std:: string functionname) { functionmap.erase(std::string(functionname)); } Func func_find(std::string functionname) { return functionmap[functionname]; } } // namespace core