Example #1
0
/*
 * A query that receives a reference to an ISBN object and returns true 
 * if the Order object is for that ISBN, false otherwise
 */
int Order::has(const ISBN& isbn) const {
    bool flag = false;
    ISBNPrefix list(PREFIX);

    if (isbn == ISBN(isbnNo.getISBN(), list)) 
        flag = true;
    return flag;
}
Example #2
0
 const Book& default_book()
 {
     static const Book b(ISBN(),"","",0,Book::fiction,false);
     return b;
 }