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 / SDAIEXAM.H < prev   
C/C++ Source or Header  |  1994-12-13  |  8KB  |  308 lines

  1. #ifndef  SDAIEXAMPLE_SCHEMA_H
  2. #define  SDAIEXAMPLE_SCHEMA_H
  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. #ifdef __O3DB__
  8. #include <OpenOODB.h>
  9. #endif
  10.  
  11. #ifndef  S_SCHEMA_H 
  12. #include <s_schema.h> 
  13. #endif 
  14.  
  15. /*    **************  TYPES      */
  16.  
  17. //    ***** Describe the Entities      
  18.  
  19. class SdaiPoly_line;
  20. typedef SdaiPoly_line *     SdaiPoly_lineH;
  21. extern EntityDescriptor     *example_schemae_poly_line;
  22.  
  23. class SdaiShape;
  24. typedef SdaiShape *     SdaiShapeH;
  25. extern EntityDescriptor     *example_schemae_shape;
  26.  
  27. class SdaiRectangle;
  28. typedef SdaiRectangle *     SdaiRectangleH;
  29. extern EntityDescriptor     *example_schemae_rectangle;
  30.  
  31. class SdaiSquare;
  32. typedef SdaiSquare *     SdaiSquareH;
  33. extern EntityDescriptor     *example_schemae_square;
  34.  
  35. class SdaiTriangle;
  36. typedef SdaiTriangle *     SdaiTriangleH;
  37. extern EntityDescriptor     *example_schemae_triangle;
  38.  
  39. class SdaiCircle;
  40. typedef SdaiCircle *     SdaiCircleH;
  41. extern EntityDescriptor     *example_schemae_circle;
  42.  
  43. class SdaiLine;
  44. typedef SdaiLine *     SdaiLineH;
  45. extern EntityDescriptor     *example_schemae_line;
  46.  
  47. class SdaiCartesian_point;
  48. typedef SdaiCartesian_point *     SdaiCartesian_pointH;
  49. extern EntityDescriptor     *example_schemae_cartesian_point;
  50.  
  51. //    ***** Describe the Other Types      
  52. extern TypeDescriptor     *example_schemat_color;
  53.  
  54. //////////  ENUMERATION TYPE color
  55. enum  sdaiColor  {
  56.     color_GREEN,
  57.     color_WHITE,
  58.     color_ORANGE,
  59.     color_YELLOW,
  60.     color_RED,
  61.     color_BLACK,
  62.     color_BROWN,
  63.     color_BLUE
  64.  } ;
  65.  
  66. class SdaiColor  :  public STEPenumeration  {
  67.   public:
  68.     SdaiColor (const char * n =0);
  69.     SdaiColor (sdaiColor e) {  set_value (e);  }
  70.     ~SdaiColor ()  {  }
  71.     SdaiColor& operator= (const sdaiColor& e)
  72.         {  set_value (e);  return *this;  }
  73.     operator sdaiColor () const;
  74.  
  75.     inline virtual const char * Name () const
  76.         {  return "SdaiColor" ;  }
  77.     inline virtual int no_elements () const  {  return 8;  }
  78.     virtual const char * element_at (int n) const;
  79. };
  80.  
  81.  
  82. class SdaiColors  :  public  EnumAggregate  {
  83.   public:
  84.     virtual SingleLinkNode * NewNode ()  {
  85.       return new EnumNode (new SdaiColor);    }
  86. };
  87. typedef SdaiColors * SdaiColorsH;
  88. //////////  END ENUMERATION color
  89.  
  90. extern TypeDescriptor     *example_schemat_label;
  91. extern TypeDescriptor     *example_schemat_point;
  92. extern TypeDescriptor     *example_schemat_length_measure;
  93. typedef SdaiString     SdaiLabel;
  94. typedef SdaiReal     SdaiPoint;
  95. typedef SdaiReal     SdaiLength_measure;
  96.  
  97. //    ***** Build the SELECT Types      
  98.  
  99. /*    **************  ENTITIES      */
  100.  
  101. //    ***** Print Entity Classes      
  102.  
  103. /////////     ENTITY poly_line 
  104.  
  105. extern AttrDescriptor *a_0points;
  106.  
  107. class SdaiPoly_line  :    public STEPentity {
  108.   protected:
  109.     EntityAggregate _points ;      //  of  line
  110.  
  111.   public:  
  112.  
  113.     SdaiPoly_line ( ); 
  114.     SdaiPoly_line (SdaiPoly_line& e ); 
  115.     ~SdaiPoly_line ();
  116.     int opcode ()  { return 0 ; } 
  117.     const EntityAggregateH Points() const;
  118.     void Points (EntityAggregateH x);
  119. };
  120. inline SdaiPoly_line *
  121. create_SdaiPoly_line () {  return  new SdaiPoly_line ;  }
  122.  
  123. /////////     END_ENTITY poly_line 
  124.  
  125.  
  126. /////////     ENTITY shape 
  127.  
  128. extern AttrDescriptor *a_1item_name;
  129. extern AttrDescriptor *a_2item_color;
  130. extern AttrDescriptor *a_3number_of_sides;
  131.  
  132. class SdaiShape  :    public STEPentity {
  133.   protected:
  134.     SdaiString _item_name ;
  135.     SdaiColor _item_color ;    //  OPTIONAL
  136.     SdaiInteger _number_of_sides ;
  137.   public:  
  138.  
  139.     SdaiShape ( ); 
  140.     SdaiShape (SdaiShape& e ); 
  141.     ~SdaiShape ();
  142.     int opcode ()  { return 1 ; } 
  143.     const SdaiLabel& Item_name() const;
  144.     void Item_name (const char * x);
  145.     const SdaiColor& Item_color() const;
  146.     void Item_color (sdaiColor x);
  147.     const SdaiInteger Number_of_sides() const;
  148.     void Number_of_sides (SdaiInteger x);
  149. };
  150. inline SdaiShape *
  151. create_SdaiShape () {  return  new SdaiShape ;  }
  152.  
  153. /////////     END_ENTITY shape 
  154.  
  155.  
  156. /////////     ENTITY rectangle 
  157.  
  158. extern AttrDescriptor *a_4height;
  159. extern AttrDescriptor *a_5width;
  160.  
  161. class SdaiRectangle  :    public SdaiShape  {
  162.    protected:
  163.     SdaiReal _height ;
  164.     SdaiReal _width ;
  165.   public:  
  166.  
  167.     SdaiRectangle ( ); 
  168.     SdaiRectangle (SdaiRectangle& e ); 
  169.     ~SdaiRectangle ();
  170.     int opcode ()  { return 2 ; } 
  171.     const SdaiLength_measure Height() const;
  172.     void Height (SdaiLength_measure x);
  173.     const SdaiLength_measure Width() const;
  174.     void Width (SdaiLength_measure x);
  175. };
  176. inline SdaiRectangle *
  177. create_SdaiRectangle () {  return  new SdaiRectangle ;  }
  178.  
  179. /////////     END_ENTITY rectangle 
  180.  
  181.  
  182. /////////     ENTITY square 
  183.  
  184.  
  185. class SdaiSquare  :    public SdaiRectangle  {
  186.    protected:
  187.   public:  
  188.  
  189.     SdaiSquare ( ); 
  190.     SdaiSquare (SdaiSquare& e ); 
  191.     ~SdaiSquare ();
  192.     int opcode ()  { return 3 ; } 
  193. };
  194. inline SdaiSquare *
  195. create_SdaiSquare () {  return  new SdaiSquare ;  }
  196.  
  197. /////////     END_ENTITY square 
  198.  
  199.  
  200. /////////     ENTITY triangle 
  201.  
  202. extern AttrDescriptor *a_6side1_length;
  203. extern AttrDescriptor *a_7side2_length;
  204. extern AttrDescriptor *a_8side3_length;
  205.  
  206. class SdaiTriangle  :    public SdaiShape  {
  207.    protected:
  208.     SdaiReal _side1_length ;
  209.     SdaiReal _side2_length ;
  210.     SdaiReal _side3_length ;
  211.   public:  
  212.  
  213.     SdaiTriangle ( ); 
  214.     SdaiTriangle (SdaiTriangle& e ); 
  215.     ~SdaiTriangle ();
  216.     int opcode ()  { return 4 ; } 
  217.     const SdaiLength_measure Side1_length() const;
  218.     void Side1_length (SdaiLength_measure x);
  219.     const SdaiLength_measure Side2_length() const;
  220.     void Side2_length (SdaiLength_measure x);
  221.     const SdaiLength_measure Side3_length() const;
  222.     void Side3_length (SdaiLength_measure x);
  223. };
  224. inline SdaiTriangle *
  225. create_SdaiTriangle () {  return  new SdaiTriangle ;  }
  226.  
  227. /////////     END_ENTITY triangle 
  228.  
  229.  
  230. /////////     ENTITY circle 
  231.  
  232. extern AttrDescriptor *a_9radius;
  233.  
  234. class SdaiCircle  :    public SdaiShape  {
  235.    protected:
  236.     SdaiReal _radius ;
  237.   public:  
  238.  
  239.     SdaiCircle ( ); 
  240.     SdaiCircle (SdaiCircle& e ); 
  241.     ~SdaiCircle ();
  242.     int opcode ()  { return 5 ; } 
  243.     const SdaiReal Radius() const;
  244.     void Radius (SdaiReal x);
  245. };
  246. inline SdaiCircle *
  247. create_SdaiCircle () {  return  new SdaiCircle ;  }
  248.  
  249. /////////     END_ENTITY circle 
  250.  
  251.  
  252. /////////     ENTITY line 
  253.  
  254. extern AttrDescriptor *a_10end_point_one;
  255. extern AttrDescriptor *a_11end_point_two;
  256.  
  257. class SdaiLine  :    public STEPentity {
  258.   protected:
  259.     SdaiCartesian_pointH _end_point_one ;
  260.     SdaiCartesian_pointH _end_point_two ;
  261.   public:  
  262.  
  263.     SdaiLine ( ); 
  264.     SdaiLine (SdaiLine& e ); 
  265.     ~SdaiLine ();
  266.     int opcode ()  { return 6 ; } 
  267.     SdaiCartesian_pointH End_point_one() const;
  268.     void End_point_one (SdaiCartesian_pointH x);
  269.     SdaiCartesian_pointH End_point_two() const;
  270.     void End_point_two (SdaiCartesian_pointH x);
  271. };
  272. inline SdaiLine *
  273. create_SdaiLine () {  return  new SdaiLine ;  }
  274.  
  275. /////////     END_ENTITY line 
  276.  
  277.  
  278. /////////     ENTITY cartesian_point 
  279.  
  280. extern AttrDescriptor *a_12x;
  281. extern AttrDescriptor *a_13y;
  282. extern AttrDescriptor *a_14z;
  283.  
  284. class SdaiCartesian_point  :    public STEPentity {
  285.   protected:
  286.     SdaiReal _x ;
  287.     SdaiReal _y ;
  288.     SdaiReal _z ;    //  OPTIONAL
  289.   public:  
  290.  
  291.     SdaiCartesian_point ( ); 
  292.     SdaiCartesian_point (SdaiCartesian_point& e ); 
  293.     ~SdaiCartesian_point ();
  294.     int opcode ()  { return 7 ; } 
  295.     const SdaiPoint X() const;
  296.     void X (SdaiPoint x);
  297.     const SdaiPoint Y() const;
  298.     void Y (SdaiPoint x);
  299.     const SdaiPoint Z() const;
  300.     void Z (SdaiPoint x);
  301. };
  302. inline SdaiCartesian_point *
  303. create_SdaiCartesian_point () {  return  new SdaiCartesian_point ;  }
  304.  
  305. /////////     END_ENTITY cartesian_point 
  306.  
  307. #endif
  308.