home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftptest.leeds.ac.uk
/
2015.02.ftptest.leeds.ac.uk.tar
/
ftptest.leeds.ac.uk
/
bionet
/
CAE-GROUP
/
SCL-WIN3x
/
SCLTEST.EXE
/
EXP
/
ENT_INIT.CPP
next >
Wrap
C/C++ Source or Header
|
1994-12-13
|
5KB
|
119 lines
#ifndef SDAI_INI_CPP
#define SDAI_INI_CPP
// This file was generated by fedex_plus. You probably don't want to edit
// it since your modifications will be lost if fedex_plus is used to
// regenerate it.
/* $Id$ */
#ifndef S_SCHEMA_H
#include <s_schema.h>
#endif
#include <Registry.h>
Registry& initpoly_line(Registry& reg){
///////// ENTITY poly_line
reg.AddEntity (*example_schemae_poly_line);
TypeDescriptor * t_0 = new TypeDescriptor;
t_0->FundamentalType(AGGREGATE_TYPE);
t_0->Description("LIST of Line");
t_0->ReferentType (example_schemae_line);
a_0points = new AttrDescriptor("points",t_0,F,F,F,*example_schemae_poly_line);
example_schemae_poly_line->AddExplicitAttr (a_0points);
///////// END_ENTITY poly_line
return reg;
}
Registry& initshape(Registry& reg){
///////// ENTITY shape
reg.AddEntity (*example_schemae_shape);
a_1item_name = new AttrDescriptor("item_name",example_schemat_label,F,F,F,*example_schemae_shape);
example_schemae_shape->AddExplicitAttr (a_1item_name);
a_2item_color = new AttrDescriptor("item_color",example_schemat_color,T,F,F,*example_schemae_shape);
example_schemae_shape->AddExplicitAttr (a_2item_color);
a_3number_of_sides = new AttrDescriptor("number_of_sides",t_INTEGER_TYPE,F,F,F,*example_schemae_shape);
example_schemae_shape->AddExplicitAttr (a_3number_of_sides);
///////// END_ENTITY shape
return reg;
}
Registry& initrectangle(Registry& reg){
///////// ENTITY rectangle
reg.AddEntity (*example_schemae_rectangle);
example_schemae_rectangle->AddSupertype(example_schemae_shape);
example_schemae_shape->AddSubtype(example_schemae_rectangle);
a_4height = new AttrDescriptor("height",example_schemat_length_measure,F,F,F,*example_schemae_rectangle);
example_schemae_rectangle->AddExplicitAttr (a_4height);
a_5width = new AttrDescriptor("width",example_schemat_length_measure,F,F,F,*example_schemae_rectangle);
example_schemae_rectangle->AddExplicitAttr (a_5width);
///////// END_ENTITY rectangle
return reg;
}
Registry& initsquare(Registry& reg){
///////// ENTITY square
reg.AddEntity (*example_schemae_square);
example_schemae_square->AddSupertype(example_schemae_rectangle);
example_schemae_rectangle->AddSubtype(example_schemae_square);
///////// END_ENTITY square
return reg;
}
Registry& inittriangle(Registry& reg){
///////// ENTITY triangle
reg.AddEntity (*example_schemae_triangle);
example_schemae_triangle->AddSupertype(example_schemae_shape);
example_schemae_shape->AddSubtype(example_schemae_triangle);
a_6side1_length = new AttrDescriptor("side1_length",example_schemat_length_measure,F,F,F,*example_schemae_triangle);
example_schemae_triangle->AddExplicitAttr (a_6side1_length);
a_7side2_length = new AttrDescriptor("side2_length",example_schemat_length_measure,F,F,F,*example_schemae_triangle);
example_schemae_triangle->AddExplicitAttr (a_7side2_length);
a_8side3_length = new AttrDescriptor("side3_length",example_schemat_length_measure,F,F,F,*example_schemae_triangle);
example_schemae_triangle->AddExplicitAttr (a_8side3_length);
///////// END_ENTITY triangle
return reg;
}
Registry& initcircle(Registry& reg){
///////// ENTITY circle
reg.AddEntity (*example_schemae_circle);
example_schemae_circle->AddSupertype(example_schemae_shape);
example_schemae_shape->AddSubtype(example_schemae_circle);
a_9radius = new AttrDescriptor("radius",t_REAL_TYPE,F,F,F,*example_schemae_circle);
example_schemae_circle->AddExplicitAttr (a_9radius);
///////// END_ENTITY circle
return reg;
}
Registry& initline(Registry& reg){
///////// ENTITY line
reg.AddEntity (*example_schemae_line);
a_10end_point_one = new AttrDescriptor("end_point_one",example_schemae_cartesian_point,F,F,F,*example_schemae_line);
example_schemae_line->AddExplicitAttr (a_10end_point_one);
a_11end_point_two = new AttrDescriptor("end_point_two",example_schemae_cartesian_point,F,F,F,*example_schemae_line);
example_schemae_line->AddExplicitAttr (a_11end_point_two);
///////// END_ENTITY line
return reg;
}
Registry& initcartesian_point(Registry& reg){
///////// ENTITY cartesian_point
reg.AddEntity (*example_schemae_cartesian_point);
a_12x = new AttrDescriptor("x",example_schemat_point,F,F,F,*example_schemae_cartesian_point);
example_schemae_cartesian_point->AddExplicitAttr (a_12x);
a_13y = new AttrDescriptor("y",example_schemat_point,F,F,F,*example_schemae_cartesian_point);
example_schemae_cartesian_point->AddExplicitAttr (a_13y);
a_14z = new AttrDescriptor("z",example_schemat_point,T,F,F,*example_schemae_cartesian_point);
example_schemae_cartesian_point->AddExplicitAttr (a_14z);
///////// END_ENTITY cartesian_point
return reg;
}
#endif