/* 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 { namespace func { std::map functionmap; void add(const char * functionname, Func functionptr) { functionmap[std::string(functionname)] = functionptr; } void remove(std:: string functionname) { functionmap.erase(std::string(functionname)); } Func find(std::string functionname) { return functionmap[functionname]; } } }