Searched refs:CommandType (Results 1 – 5 of 5) sorted by relevance
30 /* static */ CommandType CommandUtils::getCommandType(const std::string &commandName) { in getCommandType()32 return CommandType::Info; in getCommandType()34 return CommandType::Diff; in getCommandType()36 return CommandType::Makedict; in getCommandType()38 return CommandType::Header; in getCommandType()40 return CommandType::Help; in getCommandType()42 return CommandType::Unknown; in getCommandType()53 const CommandType commandType) { in getCommandExecutor()55 case CommandType::Info: in getCommandExecutor()57 case CommandType::Diff: in getCommandExecutor()[all …]
29 enum class CommandType : int { enum40 static CommandType getCommandType(const std::string &commandName);43 static std::function<int(int, char **)> getCommandExecutor(const CommandType commandType);
26 EXPECT_EQ(CommandUtils::getCommandType(""), CommandType::Unknown); in TEST()27 EXPECT_EQ(CommandUtils::getCommandType("abc"), CommandType::Unknown); in TEST()28 EXPECT_EQ(CommandUtils::getCommandType("info"), CommandType::Info); in TEST()29 EXPECT_EQ(CommandUtils::getCommandType("diff"), CommandType::Diff); in TEST()30 EXPECT_EQ(CommandUtils::getCommandType("makedict"), CommandType::Makedict); in TEST()31 EXPECT_EQ(CommandUtils::getCommandType("header"), CommandType::Header); in TEST()32 EXPECT_EQ(CommandUtils::getCommandType("help"), CommandType::Help); in TEST()
32 const CommandType commandType = CommandUtils::getCommandType(argv[1]); in main()33 if (commandType == CommandType::Unknown) { in main()
1106 AppInterface.CommandType.DISPLAY_TEXT.value()) in handleCmdResponse()1127 AppInterface.CommandType.OPEN_CHANNEL.value()) { in handleCmdResponse()1175 AppInterface.CommandType.GET_INPUT.value() || in cleanUpInstanceStackBySlot()1177 AppInterface.CommandType.GET_INKEY.value()) { in cleanUpInstanceStackBySlot()1180 AppInterface.CommandType.SET_UP_MENU.value() || in cleanUpInstanceStackBySlot()1182 AppInterface.CommandType.SELECT_ITEM.value()) { in cleanUpInstanceStackBySlot()1201 AppInterface.CommandType cmdType = mStkContext[slotId].mCurrentCmd.getCmdType(); in restoreInstanceFromStackBySlot()