Creating Glossary Lists |
Use the class os_glossary_list
to create a list of items with a term and a
description. Every glossary list object must contain at least one term. Use the
class os_glossary_term to create a term in the
glossary list. Use the class os_glossary_definition
to create a definition in the glossary list. By default, text inserted into a
glossary list creates a definition.
The following example creates a glossary list with three term objects: Encapsulation, Inheritance, and Polymorphism.
#include <iostream.h>
#include <ospace/web.h>
int main()
{
os_page page( "List#3 Example" );
os_glossary_list list( os_bold( "Common Object-Oriented Terms Defined" ) );
list << os_glossary_term( "Encapsulation" )
<< "Hiding details of an implementation";
list << os_glossary_term( "Inheritance" )
<< "Specialization of a class";
list << os_glossary_term( "Polymorphism" )
<< "From the Greek - many forms";
page << list;
cout << page;
return 0;
}

Copyright©1994-2026 Recursion
Software LLC
All Rights Reserved - For use by licensed users only.