You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
380 B
C
25 lines
380 B
C
![]()
6 years ago
|
#ifndef BOOK_H_
|
||
|
#define BOOK_H_
|
||
|
|
||
|
#include <iosfwd>
|
||
|
#include <string>
|
||
|
|
||
|
#include "boost/filesystem/path.hpp"
|
||
|
|
||
|
struct Book {
|
||
|
std::string id;
|
||
|
std::string title;
|
||
|
double price;
|
||
|
std::string photo; // Name only
|
||
|
|
||
|
bool IsNull() const {
|
||
|
return id.empty();
|
||
|
}
|
||
|
};
|
||
|
|
||
|
std::ostream& operator<<(std::ostream& os, const Book& book);
|
||
|
|
||
|
extern const Book kNullBook;
|
||
|
|
||
|
#endif // BOOK_H_
|