示例#1
0
int CountCommand::runCommand()
{
    FileReader reader;

    reader.setLoadStringData(false);

    reader.addFiles(input_filenames);
    reader.runChain();
    
    cout << reader.getCount() << endl;
    
    return 0;
}
示例#2
0
int HistoryCommand::runCommand()
{
    FileReader reader;
    PrintHistory history;
    
    reader.addFiles(input_filenames);
    
    reader.addSink(&history);
    
    reader.runChain();

    return 0;
}