20 lines
323 B
C++
20 lines
323 B
C++
#include "outputterminal.hh"
|
|
#include "resultlist.hh"
|
|
|
|
|
|
|
|
void OutputTerminal::write(const Result &result)
|
|
{
|
|
output_stream << result << '\n' ;
|
|
}
|
|
|
|
|
|
|
|
void OutputTerminal::write(const ResultList &results)
|
|
{
|
|
if (results.empty())
|
|
output_stream << "There is no result.\n" ;
|
|
else
|
|
output_stream << results << '\n' ;
|
|
}
|