| 
    KiCad PCB EDA Suite
    
   | 
 
Class that handles delegation of command lines to one of a number of "sub-utilities". More...
#include <utility_program.h>
Public Member Functions | |
| int | HandleCommandLine (int argc, char **argv) const | 
| Take in a command line and:   | |
Private Member Functions | |
| void | showSubUtilityList (std::ostream &os) const | 
| Format the list of known sub-utils.   | |
| UTILITY_PROGRAM::FUNC * | findSubUtility (const std::string &aName) const | 
| Find a sub-utility with the given ID/name.   | |
| void | printUsage (char *name, std::ostream &os) const | 
| Print the command line usage of this program.   | |
Class that handles delegation of command lines to one of a number of "sub-utilities".
Definition at line 97 of file utility_program.h.
      
  | 
  private | 
Find a sub-utility with the given ID/name.
| aName | the desired sub-utility name (e.g. "drc") | 
Definition at line 42 of file utility_program.cpp.
References UTILITY_REGISTRY::GetInfoMap(), and KI_TEST::UTILITY_PROGRAM::m_func.
Referenced by HandleCommandLine().
| int KI_TEST::COMBINED_UTILITY::HandleCommandLine | ( | int | argc, | 
| char ** | argv ) const | 
Take in a command line and:
| argc | argument count (directly from the main() parameter ) | 
| argv | argument values (directly from the main() parameter ) | 
Definition at line 75 of file utility_program.cpp.
References KI_TEST::BAD_CMDLINE, findSubUtility(), KI_TEST::OK, printUsage(), showSubUtilityList(), and KI_TEST::UNKNOWN_TOOL.
Referenced by main(), and APP_TEST::OnInit().
      
  | 
  private | 
Print the command line usage of this program.
| name | the name the program was run with | 
| os | stream to print to | 
Definition at line 59 of file utility_program.cpp.
References name, and showSubUtilityList().
Referenced by HandleCommandLine().
      
  | 
  private | 
Format the list of known sub-utils.
| os | the stream to format on | 
Definition at line 31 of file utility_program.cpp.
References UTILITY_REGISTRY::GetInfoMap(), KI_TEST::UTILITY_PROGRAM::m_desc, and KI_TEST::UTILITY_PROGRAM::m_name.
Referenced by HandleCommandLine(), and printUsage().