src/modules/network/routecommand.cpp
const cli::ParameterVector
RouteListCommand::getCompletion(const cli::ParameterVector& setparams)
{
    cli::ParameterVector res;
    if (setparams.empty())
    {
        res.push_back(cli::ALL);
        RouteInfoList list = getModule<Network>()->getRouteInfo();
        for (RouteInfoList::iterator item = list.begin();
             item != list.end(); item++)
        {
            res.push_back((*item)->getName());
        }
    }

    return res;
}
// Retrives list of possible completions for a n's parameter
Retrives list of possible completions for a n's parameter
Retrives list of possible completions for a n ' s parameter
const cli::ParameterVector
RouteListCommand::getCompletion(const cli::ParameterVector& setparams)
{
    cli::ParameterVector res;
    if (setparams.empty())
    {
        res.push_back(cli::ALL);
        RouteInfoList list = getModule<Network>()->getRouteInfo();
        for (RouteInfoList::iterator item = list.begin();
             item != list.end(); item++)
        {
            res.push_back((*item)->getName());
        }
    }
    return res;
}
const cli :: ParameterVector RouteListCommand :: getCompletion ( const cli :: ParameterVector & setparams ) { cli :: ParameterVector res ; if ( setparams . empty ( ) ) { res . push_back ( cli :: ALL ) ; RouteInfoList list = getModule < Network > ( ) -> getRouteInfo ( ) ; for ( RouteInfoList :: iterator item = list . begin ( ) ; item != list . end ( ) ; item ++ ) { res . push_back ( ( * item ) -> getName ( ) ) ; } } return res ; }
Retrives list of possible completions for a n's parameter
Retrives list of possible completions for a n ' s parameter