DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Designing SCOadmin object service agents

Example Subordinates Definition Tables (SDT)

For each class, the table defines any other classes which are subordinate to it. Only classes that support containment and scoping should have an SDT. See also ``Subordinates definition table (SDT)''.

This example defines two subordinate classes of the class ``sco user''. These two subordinate classes (``sco workProjects'' and ``sco vacations'') will each have a list operation which, when called with an object instance of the ``sco user'' class, will list which object instances of the ``sco user'' class it is contained by.

Example SDT (Tcl)

set users(subordinates) {
        {sco workProjects}
        {sco vacations}
}

Example SDT (C/C++)

static objectClass_pt subordinates[] = {
        "sco workProjects",
        "sco vacations",
        NULL
};

Next topic: Example Class Definition Tables (CDT)
Previous topic: Example Group Definition Tables (GDT)

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003