| 4489 | } |
| 4490 | |
| 4491 | std::vector<Parser::Token> parseInto( int argc, char const* argv[], ConfigT& config ) const { |
| 4492 | std::string processName = argv[0]; |
| 4493 | std::size_t lastSlash = processName.find_last_of( "/\\" ); |
| 4494 | if( lastSlash != std::string::npos ) |
| 4495 | processName = processName.substr( lastSlash+1 ); |
| 4496 | m_boundProcessName.set( config, processName ); |
| 4497 | std::vector<Parser::Token> tokens; |
| 4498 | Parser parser; |
| 4499 | parser.parseIntoTokens( argc, argv, tokens ); |
| 4500 | return populate( tokens, config ); |
| 4501 | } |
| 4502 | |
| 4503 | std::vector<Parser::Token> populate( std::vector<Parser::Token> const& tokens, ConfigT& config ) const { |
| 4504 | validate(); |
no test coverage detected