| 4970 | } |
| 4971 | |
| 4972 | std::vector<Parser::Token> parseInto( std::vector<std::string> const& args, ConfigT& config ) const { |
| 4973 | std::string processName = args.empty() ? std::string() : args[0]; |
| 4974 | std::size_t lastSlash = processName.find_last_of( "/\\" ); |
| 4975 | if( lastSlash != std::string::npos ) |
| 4976 | processName = processName.substr( lastSlash+1 ); |
| 4977 | m_boundProcessName.set( config, processName ); |
| 4978 | std::vector<Parser::Token> tokens; |
| 4979 | Parser parser; |
| 4980 | parser.parseIntoTokens( args, tokens ); |
| 4981 | return populate( tokens, config ); |
| 4982 | } |
| 4983 | |
| 4984 | std::vector<Parser::Token> populate( std::vector<Parser::Token> const& tokens, ConfigT& config ) const { |
| 4985 | validate(); |
no test coverage detected