src/common/cliutils.cpp
const CommandMode Utils::getCommandMode(const IMessagePtr& msg)
{
    if (msg->getValue(msg::key::cli::TYPE) == msg::key::cli::TYPECOMPLETE)
        return GETCOMPLETION;
    if (msg->getValue(msg::key::cli::TYPE) == msg::key::cli::TYPEPROCESS)
        return PROCESS;

    return UNKNOWN;
}
// Retrives command mode from the message
Retrives command mode from the message
Retrives command mode from the message
const CommandMode Utils::getCommandMode(const IMessagePtr& msg)
{
    if (msg->getValue(msg::key::cli::TYPE) == msg::key::cli::TYPECOMPLETE)
        return GETCOMPLETION;
    if (msg->getValue(msg::key::cli::TYPE) == msg::key::cli::TYPEPROCESS)
        return PROCESS;
    return UNKNOWN;
}
const CommandMode Utils :: getCommandMode ( const IMessagePtr & msg ) { if ( msg -> getValue ( msg :: key :: cli :: TYPE ) == msg :: key :: cli :: TYPECOMPLETE ) return GETCOMPLETION ; if ( msg -> getValue ( msg :: key :: cli :: TYPE ) == msg :: key :: cli :: TYPEPROCESS ) return PROCESS ; return UNKNOWN ; }
Retrives command mode from the message
Retrives command mode from the message