lunch-rest/meal.cpp

13 lines
328 B
C++
Raw Normal View History

2020-09-14 22:55:03 +00:00
#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;
}