Previous: Facets, Up: Facets



5.1.4.1 Built-in facets

Some facets are declared in ringing/peal.h. These facets are available in some of the built-in library types.

rw_ref
This facet, of type string, contains a reference to the method's appearance in the Ringing World.
first_tower_peal
This facet, of type peal, contains the date and place of the first tower bell peal in the method.
first_hand_peal
This facet, of type peal, contains the date and place of the first handbell peal in the method.

The last two are of type peal, which is a class also declared in ringing/peal.h. It is a very simple class and defines the following functions.

— Constructor: peal (void);
— Constructor: peal (const peal::date& DATE, const string& PLACE);

These functions construct objects in the obvious way.

— Function: peal::date const& peal::when (void);

This function returns the date of the peal.

— Function: string const& peal::where (void);

This function returns the location of the peal.

The peal::date type is also very simple.

     struct peal::date {
       int day, month, year;
     };
— Constructor: peal::date (void);
— Constructor: peal::date (int DAY, int MONTH, int YEAR);

These functions construct objects in the obvious way.