QA: Put UTILITY_PROGRAM in KI_TEST
Also expand some documentation of some other KI_TEST functions.
This commit is contained in:
committed by
Wayne Stambaugh
parent
b94cf9d564
commit
e4b4230bcf
@@ -24,15 +24,14 @@
|
||||
|
||||
#include <wx/msgout.h>
|
||||
|
||||
namespace KI_TEST
|
||||
{
|
||||
|
||||
COMBINED_UTILITY::COMBINED_UTILITY( const UTIL_LIST& aSubUtils ) : m_subUtils( aSubUtils )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Print the names and descriptions of the registered tools
|
||||
*/
|
||||
void COMBINED_UTILITY::showSubUtilityList( std::ostream& os ) const
|
||||
{
|
||||
for( const auto& tool : m_subUtils )
|
||||
@@ -42,11 +41,6 @@ void COMBINED_UTILITY::showSubUtilityList( std::ostream& os ) const
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the utility program that matches a tool name
|
||||
* @param aName the name to look for
|
||||
* @return the tool function
|
||||
*/
|
||||
UTILITY_PROGRAM::FUNC* COMBINED_UTILITY::findSubUtility( const std::string& aName ) const
|
||||
{
|
||||
for( const auto& tool : m_subUtils )
|
||||
@@ -112,4 +106,6 @@ int COMBINED_UTILITY::HandleCommandLine( int argc, char** argv ) const
|
||||
|
||||
// pass on the rest of the commands
|
||||
return ( *func )( argc - 1, argv + 1 );
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace KI_TEST
|
||||
Reference in New Issue
Block a user