Lines Matching full:strresult
50 * @param[out] strResult a string containing the result of the command.
54 typedef CommandStatus (CCommandParser::*RemoteCommandParser)(const IRemoteCommand& remoteCommand, std::string& strResult);
88 bool parse(CCommandParser* pCommandParser, const IRemoteCommand& remoteCommand, std::string& strResult) const
93 strResult = std::string("Not enough arguments supplied\nUsage:\n") + usage();
98 switch ((pCommandParser->*_pfnParser)(remoteCommand, strResult)) {
100 strResult = "Done";
105 strResult = usage();
159 bool remoteCommandProcess(const IRemoteCommand& remoteCommand, std::string& strResult)
167 strResult = "Command not found!\nUse \"help\" to show available commands";
174 helpCommandProcess(strResult);
179 return pRemoteCommandParserItem->parse(_pCommandParser, remoteCommand, strResult);
205 void helpCommandProcess(std::string& strResult)
209 strResult = "\n";
220 strResult += strUsage;
227 strResult += " ";
230 strResult += std::string("=> ") + std::string(pRemoteCommandParserItem->getDescription()) + "\n";