company logo

Access via property reference

Keywords:  property reference

A property reference is a simple access path containing just an elementary property name referring to a property in structure. Opening a property handle with property reference directly provides the property handle from the instance or a copy of it. The data set managed by the property handle is the data set stored for the property instance in the currently selected structure instance.

// access to city via basic property handles

  Property     persons(obh, "Person::Persons", PI_Read);

  Property     address(&persons, "address");      // original instance property handle

  Property     city(&address, "city");            // original instance property handle

  Property     children(person, "children");      // copy of instance property handle

// PH-Macro: the short way of definition

  PH(&persons,address)

  PH(        &address,city)

  PH(persons,children)