コード例 #1
0
ファイル: main.cpp プロジェクト: llittle3701/audisktool
/*auDiskTool driver */
int main() {

    Tool          tool;
    CommandLine   cmdline;
    Configuration config;
    Report        report;
    Type type;

    tool.Init(config, report);
      
    while ((type = cmdline.GetType())!= EXIT) {
      if (cmdline.GetCommand() != 0)
	tool.RespondCmd(cmdline, config, report);
    }
  
    tool.Exit();
    return 0;
}
コード例 #2
0
     CommandLine :: CommandLine (CommandLine &cmd_line_ref )
                     : vcls (),
  command(NULL),
  file_handle(NULL),
  cmd_name(NULL),
  cmd_list(cmd_line_ref.get_cmd_list()),
  entry_points(cmd_line_ref.get_entry_points()),
  echo(cmd_line_ref.get_echo()),
  owns_file_handle(NO),
  top_cmdline(cmd_line_ref.get_top_cmdline()),
  type(cmd_line_ref.get_type()),
  condition(NULL),
  size(0),
  output(NULL),
  output_file(cmd_line_ref.get_output_file()),
permanent_redirection(cmd_line_ref.get_permanent_redirection())
{

  SetCommand(cmd_line_ref.GetCommand());


}