DBgdvInsertPlan

Top  Previous  Next

A new plan in the plan management take up.

This plan may not be contained yet in the plan management. Because the plan name serves as a key, no other plan of the same name may be also confessed in the plan management. From the new plan must be known beside the name, the corner co-ordinates and the Layer. The co-ordinates of the new plan may not overlap with already in the data bank available. The area is calculated in each case including the lower left corner and excluding the upper right corner.

Parametre

root (PROOT) [IN]

This is the trading of the data bank. In the data bank a plan management must be loaded.

flat (char *) [IN]

A plan with this name should be announced to the plan management.

x_ul (STANDS IN) [IN]

X co-ordinate of the lower left corner of the new plan.

y_ul (STANDS IN) [IN]

Y co-ordinate of the lower left corner of the new plan.

x_or (STANDS IN) [IN]

X co-ordinate of the upper right corner of the new plan

y_or (STANDS IN) [IN]

Y co-ordinate of the upper right corner of the new plan.

layer (int) [IN]

The Layer of the new plan. It is not looked as a mistake if a Layer with this number does not exist yet in the data bank. Then the plans with this Layer are collected later while putting on the Layers and are indicated.

gdvName (const char *) [IN]

The name of the plan management. If is gdvName = ZERO, the open plan management is used.

x_ul_real (STANDS IN) [IN]

y_ul_real (STANDS IN) [IN]

x_or_real (STANDS IN) [IN]

y_or_real (STANDS IN) [IN]

Result

(T_ERROR) [OUT]

If the writing of the new data bank entry has run successfully, the procedure returns the value ERROR_OK. Herewith otherwise the mistake cause is delivered. A description of the error messages is to be seen from the file ERROR.H.

Declaration

#include "database.h"

 

T_ERROR DLLENTRY DBgdvInsertPlan (

PROOT root,

char * flat,

STAND-IN x_ul,

STAND-IN y_ul,

STAND-IN x_or,

STAND-IN y_or,

int layer

const char * gdvName,

STAND-IN x_ul_real,

STAND-IN y_ul_real,

STAND-IN x_or_real,

STAND-IN y_or_real

);