Object hierarchy

Most real-world applications represent data in a hierarchical or relational manner, with the data rationalized into discrete objects. There is often a central "root" object, which parents several other child objects, either as singular objects or as a collection. Each discrete object has its own set of data items that can be any number of types. The key principles we want to cover are as listed:

  • A range of data types (string, integer, datetime) and an enumerated value
  • Object hierarchy
  • Multiple single child entities of the same type
  • Collections of entities

Balancing these goals with simplicity, the data diagram we will work toward is as follows:

The purpose of each of these models is described in the following table:

Get Learn Qt 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.