blob: 0e8a41c1450f505ac948df8fe072f922fbaf3ff7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include <book_store/book.hh>
#include <book_store/member.hh>
#include <book_store/price.hh>
namespace book_store::consumer {
using namespace product;
auto member::books_bought() const noexcept -> book::size_type {
return this->_books_bought;
}
auto member::amount_spent() const noexcept -> price::usd {
return this->_amount_spent;
}
auto member::books_bought(book::size_type books_bought) noexcept -> void {
this->_books_bought = books_bought;
}
auto member::amount_spent(price::usd amount_spent) noexcept -> void {
this->_amount_spent = amount_spent;
}
} // namespace book_store::consumer
|