DBgetAnyOwner

Top  Previous  Next

If delivers owner of the element.

To every element (object, point element, line element, attribute or similar) there is an owner. E.G., a point in the line element has the trading of the line element as an afterwards higher owner. The uppermost owner is always the data bank even (PROOT). Now with this routine it is to be determined possibly the trading of a hierarchy step which is not the direct owner of this element. E.G., the hierarchy runs as follows: PROOT->PSEGMENT->PPLAN->POBJECT->PSTRING_ELEMENT->T_PPOINT. Should the trading be determined now by the T_PPOINT owner three hierarchy steps higher, must be handed over than parametre, on the one hand, the Punkthandle and on the other hand the constant TYP_PLAN.

Parametre

perch (PANY) [IN]

Act on the element by which the owner should be determined.

blockToFind (int) [IN]

To every owner there is a constant, she must be given here to be able to determine the owner.

Result

(PANY) [OUT]

As a return value becomes the trading on the owner zurückgeliefert, but ZERO.

Declaration

#include "database.h"

 

PANY DLLENTRY DBgetAnyOwner (

PANY block,

int blockToFind

);

Constants

Constants are described in the file TYPE.H.

Related functions

DBownerOf<Typ>