1 Star 0 Fork 0

jenie/microsql

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
commandFactory.cpp 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
jenie 提交于 2021-07-10 19:04 +08:00 . 1 创建client和server框架
/*******************************************************************************
Copyright (C) 2013 SequoiaDB Software Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License, version 3,
as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/license/>.
*******************************************************************************/
#include "commandFactory.hpp"
CommandFactory::CommandFactory()
{
addCommand();
}
ICommand * CommandFactory::getCommandProcesser(const char * pCmd)
{
ICommand * pProcessor = NULL;
do {
COMMAND_MAP::iterator iter;
iter = _cmdMap.find(pCmd);
if( iter != _cmdMap.end() )
{
pProcessor = iter->second;
}
}while(0);
return pProcessor;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/secens/microsql.git
git@gitee.com:secens/microsql.git
secens
microsql
microsql
master

搜索帮助