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.CPP < prev    next >
C/C++ Source or Header  |  1994-12-13  |  9KB  |  361 lines

  1. #ifndef  SDAIEXAMPLE_SCHEMA_CPP
  2. #define  SDAIEXAMPLE_SCHEMA_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.  
  11. /*    **************  TYPES      */
  12. TypeDescriptor     *example_schemat_color;
  13.  
  14. //////////  ENUMERATION TYPE color
  15. const char * 
  16. SdaiColor::element_at (int n) const  {
  17.   switch (n)  {
  18.   case color_GREEN :  return "GREEN";
  19.   case color_WHITE :  return "WHITE";
  20.   case color_ORANGE :  return "ORANGE";
  21.   case color_YELLOW :  return "YELLOW";
  22.   case color_RED :  return "RED";
  23.   case color_BLACK :  return "BLACK";
  24.   case color_BROWN :  return "BROWN";
  25.   case color_BLUE :  return "BLUE";
  26.   default:  return "";
  27.   }
  28. }
  29. SdaiColor::SdaiColor (const char * n )  {
  30.   set_value (n);
  31. }
  32. SdaiColor::operator sdaiColor () const {
  33.   switch (v) {
  34.     case color_GREEN :  return color_GREEN;
  35.     case color_WHITE :  return color_WHITE;
  36.     case color_ORANGE :  return color_ORANGE;
  37.     case color_YELLOW :  return color_YELLOW;
  38.     case color_RED :  return color_RED;
  39.     case color_BLACK :  return color_BLACK;
  40.     case color_BROWN :  return color_BROWN;
  41.     case color_BLUE :  
  42.     default :  return color_BLUE;
  43. ;
  44.   }
  45. }
  46.  
  47. //////////  END ENUMERATION color
  48. TypeDescriptor     *example_schemat_label;
  49. TypeDescriptor     *example_schemat_point;
  50. TypeDescriptor     *example_schemat_length_measure;
  51.  
  52. /*    **************  ENTITIES      */
  53.  
  54. /////////     ENTITY poly_line 
  55.  
  56. EntityDescriptor *example_schemae_poly_line =0;
  57. AttrDescriptor *a_0points =0;
  58. SdaiPoly_line::SdaiPoly_line( ) 
  59. {
  60. EntityDescriptor = example_schemae_poly_line;
  61.  
  62.     STEPattribute * a = new STEPattribute (*a_0points,  &_points);
  63.     a -> set_null ();
  64.      attributes.push (a);
  65. }
  66. SdaiPoly_line::SdaiPoly_line (SdaiPoly_line& e ) 
  67.     {  CopyAs((STEPentityH) &e);    }
  68. SdaiPoly_line::~SdaiPoly_line () {  }
  69.  
  70. const EntityAggregateH 
  71. SdaiPoly_line::Points() const 
  72.     { return (EntityAggregateH) &_points; }
  73.  
  74. void 
  75. SdaiPoly_line::Points (EntityAggregateH x)
  76.     { _points.ShallowCopy (*x); }
  77.  
  78. /////////     END_ENTITY poly_line 
  79.  
  80.  
  81. /////////     ENTITY shape 
  82.  
  83. EntityDescriptor *example_schemae_shape =0;
  84. AttrDescriptor *a_1item_name =0;
  85. AttrDescriptor *a_2item_color =0;
  86. AttrDescriptor *a_3number_of_sides =0;
  87. SdaiShape::SdaiShape( ) 
  88. {
  89. EntityDescriptor = example_schemae_shape;
  90.  
  91.     STEPattribute * a = new STEPattribute (*a_1item_name,  &_item_name);
  92.     a -> set_null ();
  93.      attributes.push (a);
  94.  
  95.      a = new STEPattribute (*a_2item_color,  &_item_color);
  96.     a -> set_null ();
  97.      attributes.push (a);
  98.  
  99.      a = new STEPattribute (*a_3number_of_sides,  &_number_of_sides);
  100.     a -> set_null ();
  101.      attributes.push (a);
  102. }
  103. SdaiShape::SdaiShape (SdaiShape& e ) 
  104.     {  CopyAs((STEPentityH) &e);    }
  105. SdaiShape::~SdaiShape () {  }
  106.  
  107. const SdaiLabel& 
  108. SdaiShape::Item_name() const
  109.     { return (const SdaiLabel&) _item_name; }
  110.  
  111. void 
  112. SdaiShape::Item_name (const char * x)
  113.     { _item_name = x; }
  114.  
  115. const SdaiColor & 
  116. SdaiShape::Item_color() const 
  117.     { return (const SdaiColor&) _item_color; }
  118.  
  119. void 
  120. SdaiShape::Item_color (sdaiColor x)
  121.     { _item_color.put (x); }
  122.  
  123. const SdaiInteger 
  124. SdaiShape::Number_of_sides() const 
  125.     { return (const SdaiInteger) _number_of_sides; }
  126.  
  127. void 
  128. SdaiShape::Number_of_sides (SdaiInteger x)
  129.     { _number_of_sides = x; }
  130.  
  131. /////////     END_ENTITY shape 
  132.  
  133.  
  134. /////////     ENTITY rectangle 
  135.  
  136. EntityDescriptor *example_schemae_rectangle =0;
  137. AttrDescriptor *a_4height =0;
  138. AttrDescriptor *a_5width =0;
  139. SdaiRectangle::SdaiRectangle( ) 
  140. {
  141. EntityDescriptor = example_schemae_rectangle;
  142.  
  143.     STEPattribute * a = new STEPattribute (*a_4height,  &_height);
  144.     a -> set_null ();
  145.      attributes.push (a);
  146.  
  147.      a = new STEPattribute (*a_5width,  &_width);
  148.     a -> set_null ();
  149.      attributes.push (a);
  150. }
  151. SdaiRectangle::SdaiRectangle (SdaiRectangle& e ) 
  152.     {  CopyAs((STEPentityH) &e);    }
  153. SdaiRectangle::~SdaiRectangle () {  }
  154.  
  155. const SdaiLength_measure 
  156. SdaiRectangle::Height() const 
  157.     { return (const SdaiLength_measure) _height; }
  158.  
  159. void 
  160. SdaiRectangle::Height (SdaiLength_measure x)
  161.     { _height = x; }
  162.  
  163. const SdaiLength_measure 
  164. SdaiRectangle::Width() const 
  165.     { return (const SdaiLength_measure) _width; }
  166.  
  167. void 
  168. SdaiRectangle::Width (SdaiLength_measure x)
  169.     { _width = x; }
  170.  
  171. /////////     END_ENTITY rectangle 
  172.  
  173.  
  174. /////////     ENTITY square 
  175.  
  176. EntityDescriptor *example_schemae_square =0;
  177. SdaiSquare::SdaiSquare( ) 
  178. {
  179. EntityDescriptor = example_schemae_square;
  180. }
  181. SdaiSquare::SdaiSquare (SdaiSquare& e ) 
  182.     {  CopyAs((STEPentityH) &e);    }
  183. SdaiSquare::~SdaiSquare () {  }
  184.  
  185. /////////     END_ENTITY square 
  186.  
  187.  
  188. /////////     ENTITY triangle 
  189.  
  190. EntityDescriptor *example_schemae_triangle =0;
  191. AttrDescriptor *a_6side1_length =0;
  192. AttrDescriptor *a_7side2_length =0;
  193. AttrDescriptor *a_8side3_length =0;
  194. SdaiTriangle::SdaiTriangle( ) 
  195. {
  196. EntityDescriptor = example_schemae_triangle;
  197.  
  198.     STEPattribute * a = new STEPattribute (*a_6side1_length,  &_side1_length);
  199.     a -> set_null ();
  200.      attributes.push (a);
  201.  
  202.      a = new STEPattribute (*a_7side2_length,  &_side2_length);
  203.     a -> set_null ();
  204.      attributes.push (a);
  205.  
  206.      a = new STEPattribute (*a_8side3_length,  &_side3_length);
  207.     a -> set_null ();
  208.      attributes.push (a);
  209. }
  210. SdaiTriangle::SdaiTriangle (SdaiTriangle& e ) 
  211.     {  CopyAs((STEPentityH) &e);    }
  212. SdaiTriangle::~SdaiTriangle () {  }
  213.  
  214. const SdaiLength_measure 
  215. SdaiTriangle::Side1_length() const 
  216.     { return (const SdaiLength_measure) _side1_length; }
  217.  
  218. void 
  219. SdaiTriangle::Side1_length (SdaiLength_measure x)
  220.     { _side1_length = x; }
  221.  
  222. const SdaiLength_measure 
  223. SdaiTriangle::Side2_length() const 
  224.     { return (const SdaiLength_measure) _side2_length; }
  225.  
  226. void 
  227. SdaiTriangle::Side2_length (SdaiLength_measure x)
  228.     { _side2_length = x; }
  229.  
  230. const SdaiLength_measure 
  231. SdaiTriangle::Side3_length() const 
  232.     { return (const SdaiLength_measure) _side3_length; }
  233.  
  234. void 
  235. SdaiTriangle::Side3_length (SdaiLength_measure x)
  236.     { _side3_length = x; }
  237.  
  238. /////////     END_ENTITY triangle 
  239.  
  240.  
  241. /////////     ENTITY circle 
  242.  
  243. EntityDescriptor *example_schemae_circle =0;
  244. AttrDescriptor *a_9radius =0;
  245. SdaiCircle::SdaiCircle( ) 
  246. {
  247. EntityDescriptor = example_schemae_circle;
  248.  
  249.     STEPattribute * a = new STEPattribute (*a_9radius,  &_radius);
  250.     a -> set_null ();
  251.      attributes.push (a);
  252. }
  253. SdaiCircle::SdaiCircle (SdaiCircle& e ) 
  254.     {  CopyAs((STEPentityH) &e);    }
  255. SdaiCircle::~SdaiCircle () {  }
  256.  
  257. const SdaiReal 
  258. SdaiCircle::Radius() const 
  259.     { return (const SdaiReal) _radius; }
  260.  
  261. void 
  262. SdaiCircle::Radius (SdaiReal x)
  263.     { _radius = x; }
  264.  
  265. /////////     END_ENTITY circle 
  266.  
  267.  
  268. /////////     ENTITY line 
  269.  
  270. EntityDescriptor *example_schemae_line =0;
  271. AttrDescriptor *a_10end_point_one =0;
  272. AttrDescriptor *a_11end_point_two =0;
  273. SdaiLine::SdaiLine( ) 
  274. {
  275. EntityDescriptor = example_schemae_line;
  276.  
  277.     STEPattribute * a = new STEPattribute (*a_10end_point_one, (STEPentityH *) &_end_point_one);
  278.     a -> set_null ();
  279.      attributes.push (a);
  280.  
  281.      a = new STEPattribute (*a_11end_point_two, (STEPentityH *) &_end_point_two);
  282.     a -> set_null ();
  283.      attributes.push (a);
  284. }
  285. SdaiLine::SdaiLine (SdaiLine& e ) 
  286.     {  CopyAs((STEPentityH) &e);    }
  287. SdaiLine::~SdaiLine () {  }
  288.  
  289. SdaiCartesian_pointH 
  290. SdaiLine::End_point_one() const 
  291.     { return (SdaiCartesian_pointH) _end_point_one; }
  292.  
  293. void 
  294. SdaiLine::End_point_one (SdaiCartesian_pointH x)
  295.     { _end_point_one = x; }
  296.  
  297. SdaiCartesian_pointH 
  298. SdaiLine::End_point_two() const 
  299.     { return (SdaiCartesian_pointH) _end_point_two; }
  300.  
  301. void 
  302. SdaiLine::End_point_two (SdaiCartesian_pointH x)
  303.     { _end_point_two = x; }
  304.  
  305. /////////     END_ENTITY line 
  306.  
  307.  
  308. /////////     ENTITY cartesian_point 
  309.  
  310. EntityDescriptor *example_schemae_cartesian_point =0;
  311. AttrDescriptor *a_12x =0;
  312. AttrDescriptor *a_13y =0;
  313. AttrDescriptor *a_14z =0;
  314. SdaiCartesian_point::SdaiCartesian_point( ) 
  315. {
  316. EntityDescriptor = example_schemae_cartesian_point;
  317.  
  318.     STEPattribute * a = new STEPattribute (*a_12x,  &_x);
  319.     a -> set_null ();
  320.      attributes.push (a);
  321.  
  322.      a = new STEPattribute (*a_13y,  &_y);
  323.     a -> set_null ();
  324.      attributes.push (a);
  325.  
  326.      a = new STEPattribute (*a_14z,  &_z);
  327.     a -> set_null ();
  328.      attributes.push (a);
  329. }
  330. SdaiCartesian_point::SdaiCartesian_point (SdaiCartesian_point& e ) 
  331.     {  CopyAs((STEPentityH) &e);    }
  332. SdaiCartesian_point::~SdaiCartesian_point () {  }
  333.  
  334. const SdaiPoint 
  335. SdaiCartesian_point::X() const 
  336.     { return (const SdaiPoint) _x; }
  337.  
  338. void 
  339. SdaiCartesian_point::X (SdaiPoint x)
  340.     { _x = x; }
  341.  
  342. const SdaiPoint 
  343. SdaiCartesian_point::Y() const 
  344.     { return (const SdaiPoint) _y; }
  345.  
  346. void 
  347. SdaiCartesian_point::Y (SdaiPoint x)
  348.     { _y = x; }
  349.  
  350. const SdaiPoint 
  351. SdaiCartesian_point::Z() const 
  352.     { return (const SdaiPoint) _z; }
  353.  
  354. void 
  355. SdaiCartesian_point::Z (SdaiPoint x)
  356.     { _z = x; }
  357.  
  358. /////////     END_ENTITY cartesian_point 
  359.  
  360. #endif
  361.