liveBook · Manning

Cookbook region

As explained in Object-Oriented Software Design in C++

A categorical attribute identifying the culinary region associated with a cookbook.

A cookbook region is a categorical attribute that identifies the culinary region associated with a cookbook. It supports storing and searching cookbooks alongside other catalogue items. section 2.3.3 section 3.2

Represent the region with a fixed set of values:

Adding a cookbook

catalogue.add(new CookbookAttrs("The Woks of Life", "Leung", "Bill", Region::CHINA)); assigns the cookbook to the China category while preserving the common title and author fields.

How Object-Oriented Software Design in C++ covers it

How deep it goes
Defines fixed values and display mappings, then places region in CookbookAttrs; matching behavior is described but its implementation is incomplete here.
Examples
Uses Region::CHINA for The Woks of Life and lists China, France, India, Italy, Mexico, US, and unspecified values.
What it assumes
Assumes catalogue records and shared book attributes, while establishing cookbook-specific region values through subclassed attributes.
What you can do after
Apply it via a C++ enum and CookbookAttrs object when adding or searching cookbook records.
How it connects
Connects cookbook region with cookbooks, attributes, catalogue search, case-insensitive matching, and inheritance.

This explainer was generated by Manning's knowledge graph from the text of Object-Oriented Software Design in C++. The section links point to the parts of the book it draws on.