lunch-rest/meal.cpp
2020-09-15 00:55:03 +02:00

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;
}