サンプルプログラム"draw"のAP向けヘッダファイルです。
#ifndef SER_shape_INCLUDED #define SER_shape_INCLUDED /************************************************************ * Header file generated by schema compiler * Don't edit this file. * Schema name shape ************************************************************/ #include "SER.h" /* C part start */ /* C part end */ typedef struct Point_tag Point; typedef struct { Point *point; } Polyline; struct Point_tag { double x; double y; }; typedef struct { Point point[2]; } Box; typedef struct { Point center; double radius; } Circle; typedef enum { POLYLINE_SHAPE = 1, BOX_SHAPE, CIRCLE_SHAPE } ShapeType; typedef struct Shape_tag Shape; struct Shape_tag { struct ser_0_tag { ShapeType tag; union { Polyline polyline; Box box; Circle circle; } u; } attr; Shape *prev; Shape *next; }; #define SER_TYPE_Polyline (17) #define SER_TYPE_Box (18) #define SER_TYPE_Circle (19) #define SER_TYPE_ShapeType (20) #define SER_TYPE_Shape (21) #define SER_TYPE_Point (22) #define SER_TYPE_NUM_shape (22) extern SER_Schema SER_shape_schema; #endif /* SER_shape_INCLUDED */