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 >
C/C++ Source or Header  |  1994-12-13  |  5KB  |  119 lines

  1. #ifndef  SDAI_INI_CPP
  2. #define  SDAI_INI_CPP
  3. // This file was generated by fedex_plus.  You probably don't want to edit
  4. // it since your modifications will be lost if fedex_plus is used to
  5. // regenerate it.
  6. /* $Id$ */
  7. #ifndef  S_SCHEMA_H 
  8. #include <s_schema.h> 
  9. #endif 
  10. #include <Registry.h>
  11.  
  12. Registry& initpoly_line(Registry& reg){
  13.  
  14. /////////     ENTITY poly_line 
  15.  
  16.     reg.AddEntity (*example_schemae_poly_line);
  17.     TypeDescriptor * t_0 = new TypeDescriptor;
  18.     t_0->FundamentalType(AGGREGATE_TYPE);
  19.     t_0->Description("LIST of Line");
  20.     t_0->ReferentType (example_schemae_line);
  21.     a_0points = new AttrDescriptor("points",t_0,F,F,F,*example_schemae_poly_line);
  22.     example_schemae_poly_line->AddExplicitAttr (a_0points);
  23. /////////     END_ENTITY poly_line 
  24. return reg;
  25. }
  26. Registry& initshape(Registry& reg){
  27.  
  28. /////////     ENTITY shape 
  29.  
  30.     reg.AddEntity (*example_schemae_shape);
  31.     a_1item_name = new AttrDescriptor("item_name",example_schemat_label,F,F,F,*example_schemae_shape);
  32.     example_schemae_shape->AddExplicitAttr (a_1item_name);
  33.     a_2item_color = new AttrDescriptor("item_color",example_schemat_color,T,F,F,*example_schemae_shape);
  34.     example_schemae_shape->AddExplicitAttr (a_2item_color);
  35.     a_3number_of_sides = new AttrDescriptor("number_of_sides",t_INTEGER_TYPE,F,F,F,*example_schemae_shape);
  36.     example_schemae_shape->AddExplicitAttr (a_3number_of_sides);
  37. /////////     END_ENTITY shape 
  38. return reg;
  39. }
  40. Registry& initrectangle(Registry& reg){
  41.  
  42. /////////     ENTITY rectangle 
  43.  
  44.     reg.AddEntity (*example_schemae_rectangle);
  45.     example_schemae_rectangle->AddSupertype(example_schemae_shape);
  46.     example_schemae_shape->AddSubtype(example_schemae_rectangle);
  47.     a_4height = new AttrDescriptor("height",example_schemat_length_measure,F,F,F,*example_schemae_rectangle);
  48.     example_schemae_rectangle->AddExplicitAttr (a_4height);
  49.     a_5width = new AttrDescriptor("width",example_schemat_length_measure,F,F,F,*example_schemae_rectangle);
  50.     example_schemae_rectangle->AddExplicitAttr (a_5width);
  51. /////////     END_ENTITY rectangle 
  52. return reg;
  53. }
  54. Registry& initsquare(Registry& reg){
  55.  
  56. /////////     ENTITY square 
  57.  
  58.     reg.AddEntity (*example_schemae_square);
  59.     example_schemae_square->AddSupertype(example_schemae_rectangle);
  60.     example_schemae_rectangle->AddSubtype(example_schemae_square);
  61. /////////     END_ENTITY square 
  62. return reg;
  63. }
  64. Registry& inittriangle(Registry& reg){
  65.  
  66. /////////     ENTITY triangle 
  67.  
  68.     reg.AddEntity (*example_schemae_triangle);
  69.     example_schemae_triangle->AddSupertype(example_schemae_shape);
  70.     example_schemae_shape->AddSubtype(example_schemae_triangle);
  71.     a_6side1_length = new AttrDescriptor("side1_length",example_schemat_length_measure,F,F,F,*example_schemae_triangle);
  72.     example_schemae_triangle->AddExplicitAttr (a_6side1_length);
  73.     a_7side2_length = new AttrDescriptor("side2_length",example_schemat_length_measure,F,F,F,*example_schemae_triangle);
  74.     example_schemae_triangle->AddExplicitAttr (a_7side2_length);
  75.     a_8side3_length = new AttrDescriptor("side3_length",example_schemat_length_measure,F,F,F,*example_schemae_triangle);
  76.     example_schemae_triangle->AddExplicitAttr (a_8side3_length);
  77. /////////     END_ENTITY triangle 
  78. return reg;
  79. }
  80. Registry& initcircle(Registry& reg){
  81.  
  82. /////////     ENTITY circle 
  83.  
  84.     reg.AddEntity (*example_schemae_circle);
  85.     example_schemae_circle->AddSupertype(example_schemae_shape);
  86.     example_schemae_shape->AddSubtype(example_schemae_circle);
  87.     a_9radius = new AttrDescriptor("radius",t_REAL_TYPE,F,F,F,*example_schemae_circle);
  88.     example_schemae_circle->AddExplicitAttr (a_9radius);
  89. /////////     END_ENTITY circle 
  90. return reg;
  91. }
  92. Registry& initline(Registry& reg){
  93.  
  94. /////////     ENTITY line 
  95.  
  96.     reg.AddEntity (*example_schemae_line);
  97.     a_10end_point_one = new AttrDescriptor("end_point_one",example_schemae_cartesian_point,F,F,F,*example_schemae_line);
  98.     example_schemae_line->AddExplicitAttr (a_10end_point_one);
  99.     a_11end_point_two = new AttrDescriptor("end_point_two",example_schemae_cartesian_point,F,F,F,*example_schemae_line);
  100.     example_schemae_line->AddExplicitAttr (a_11end_point_two);
  101. /////////     END_ENTITY line 
  102. return reg;
  103. }
  104. Registry& initcartesian_point(Registry& reg){
  105.  
  106. /////////     ENTITY cartesian_point 
  107.  
  108.     reg.AddEntity (*example_schemae_cartesian_point);
  109.     a_12x = new AttrDescriptor("x",example_schemat_point,F,F,F,*example_schemae_cartesian_point);
  110.     example_schemae_cartesian_point->AddExplicitAttr (a_12x);
  111.     a_13y = new AttrDescriptor("y",example_schemat_point,F,F,F,*example_schemae_cartesian_point);
  112.     example_schemae_cartesian_point->AddExplicitAttr (a_13y);
  113.     a_14z = new AttrDescriptor("z",example_schemat_point,T,F,F,*example_schemae_cartesian_point);
  114.     example_schemae_cartesian_point->AddExplicitAttr (a_14z);
  115. /////////     END_ENTITY cartesian_point 
  116. return reg;
  117. }
  118. #endif
  119.