13 lines
328 B
C++
13 lines
328 B
C++
|
#include "meal.hpp"
|
||
|
|
||
|
std::ostream &operator<<(std::ostream &os, const LunchRest::Meal &meal) {
|
||
|
if(meal.isSoup())
|
||
|
os << "SOUP ";
|
||
|
os << meal.getName();
|
||
|
if(meal.getDesc() != "")
|
||
|
os << " - " << meal.getDesc();
|
||
|
if(meal.getPrice() > 0)
|
||
|
os << ", " << meal.getPrice() << " czk";
|
||
|
return os;
|
||
|
}
|