ГОСТ Р ИСО/ТС 10303-26—2015
long id;
double x;
double y;
f point_t;
typedef struct colour_t <
longset_ur.set_bitmap;
char•s_colour;
enum colors t e colour;
\
сolour_t;
typedef struct
long
long
lline_t (
set_unset_bitmap;
id;
struct inst_ref_t startp;
struct inst_ref_t er.dp;
colour_tcolour;
} lline_t;
dendif /* EXAMPLES
• /
C.2 Отображение объявлений EXPRESS-схемы
Следующая EXPRESS-схема используется в качестве контекстной схемы во всех примерах, приведенных в
данном приложении.
SCHEMA geometry;
TYPE Colour - ENUMERATION OF
(
WOID,
RED,
GREEN,
BLUE,
WHITE,
BLACK
);
ENDJFYPE;
TYPE SSTR1NG - STRING;
END_TYPE;
TYPE CColour - SELECT(Colour,SSTRING);
END_TYPE;
ENTITY Line;
colour :CColour;
startp : POINT;
endp : POINT;
END_ENTITY;
ENTITY Point;
x : REAL;
у : REAL;
END_ENTITY;
LIST OFPOLYGON;
LIST OFLIST OF ALTITUDE;
ENTITY Land_survey;
country:STRING;
properties :LIST OF
altitudes :LIST OF
£ND_ENTITY;
END SCHEMA;
25