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 >
Wrap
C/C++ Source or Header
|
1994-12-13
|
9KB
|
361 lines
#ifndef SDAIEXAMPLE_SCHEMA_CPP
#define SDAIEXAMPLE_SCHEMA_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
/* ************** TYPES */
TypeDescriptor *example_schemat_color;
////////// ENUMERATION TYPE color
const char *
SdaiColor::element_at (int n) const {
switch (n) {
case color_GREEN : return "GREEN";
case color_WHITE : return "WHITE";
case color_ORANGE : return "ORANGE";
case color_YELLOW : return "YELLOW";
case color_RED : return "RED";
case color_BLACK : return "BLACK";
case color_BROWN : return "BROWN";
case color_BLUE : return "BLUE";
default: return "";
}
}
SdaiColor::SdaiColor (const char * n ) {
set_value (n);
}
SdaiColor::operator sdaiColor () const {
switch (v) {
case color_GREEN : return color_GREEN;
case color_WHITE : return color_WHITE;
case color_ORANGE : return color_ORANGE;
case color_YELLOW : return color_YELLOW;
case color_RED : return color_RED;
case color_BLACK : return color_BLACK;
case color_BROWN : return color_BROWN;
case color_BLUE :
default : return color_BLUE;
;
}
}
////////// END ENUMERATION color
TypeDescriptor *example_schemat_label;
TypeDescriptor *example_schemat_point;
TypeDescriptor *example_schemat_length_measure;
/* ************** ENTITIES */
///////// ENTITY poly_line
EntityDescriptor *example_schemae_poly_line =0;
AttrDescriptor *a_0points =0;
SdaiPoly_line::SdaiPoly_line( )
{
EntityDescriptor = example_schemae_poly_line;
STEPattribute * a = new STEPattribute (*a_0points, &_points);
a -> set_null ();
attributes.push (a);
}
SdaiPoly_line::SdaiPoly_line (SdaiPoly_line& e )
{ CopyAs((STEPentityH) &e); }
SdaiPoly_line::~SdaiPoly_line () { }
const EntityAggregateH
SdaiPoly_line::Points() const
{ return (EntityAggregateH) &_points; }
void
SdaiPoly_line::Points (EntityAggregateH x)
{ _points.ShallowCopy (*x); }
///////// END_ENTITY poly_line
///////// ENTITY shape
EntityDescriptor *example_schemae_shape =0;
AttrDescriptor *a_1item_name =0;
AttrDescriptor *a_2item_color =0;
AttrDescriptor *a_3number_of_sides =0;
SdaiShape::SdaiShape( )
{
EntityDescriptor = example_schemae_shape;
STEPattribute * a = new STEPattribute (*a_1item_name, &_item_name);
a -> set_null ();
attributes.push (a);
a = new STEPattribute (*a_2item_color, &_item_color);
a -> set_null ();
attributes.push (a);
a = new STEPattribute (*a_3number_of_sides, &_number_of_sides);
a -> set_null ();
attributes.push (a);
}
SdaiShape::SdaiShape (SdaiShape& e )
{ CopyAs((STEPentityH) &e); }
SdaiShape::~SdaiShape () { }
const SdaiLabel&
SdaiShape::Item_name() const
{ return (const SdaiLabel&) _item_name; }
void
SdaiShape::Item_name (const char * x)
{ _item_name = x; }
const SdaiColor &
SdaiShape::Item_color() const
{ return (const SdaiColor&) _item_color; }
void
SdaiShape::Item_color (sdaiColor x)
{ _item_color.put (x); }
const SdaiInteger
SdaiShape::Number_of_sides() const
{ return (const SdaiInteger) _number_of_sides; }
void
SdaiShape::Number_of_sides (SdaiInteger x)
{ _number_of_sides = x; }
///////// END_ENTITY shape
///////// ENTITY rectangle
EntityDescriptor *example_schemae_rectangle =0;
AttrDescriptor *a_4height =0;
AttrDescriptor *a_5width =0;
SdaiRectangle::SdaiRectangle( )
{
EntityDescriptor = example_schemae_rectangle;
STEPattribute * a = new STEPattribute (*a_4height, &_height);
a -> set_null ();
attributes.push (a);
a = new STEPattribute (*a_5width, &_width);
a -> set_null ();
attributes.push (a);
}
SdaiRectangle::SdaiRectangle (SdaiRectangle& e )
{ CopyAs((STEPentityH) &e); }
SdaiRectangle::~SdaiRectangle () { }
const SdaiLength_measure
SdaiRectangle::Height() const
{ return (const SdaiLength_measure) _height; }
void
SdaiRectangle::Height (SdaiLength_measure x)
{ _height = x; }
const SdaiLength_measure
SdaiRectangle::Width() const
{ return (const SdaiLength_measure) _width; }
void
SdaiRectangle::Width (SdaiLength_measure x)
{ _width = x; }
///////// END_ENTITY rectangle
///////// ENTITY square
EntityDescriptor *example_schemae_square =0;
SdaiSquare::SdaiSquare( )
{
EntityDescriptor = example_schemae_square;
}
SdaiSquare::SdaiSquare (SdaiSquare& e )
{ CopyAs((STEPentityH) &e); }
SdaiSquare::~SdaiSquare () { }
///////// END_ENTITY square
///////// ENTITY triangle
EntityDescriptor *example_schemae_triangle =0;
AttrDescriptor *a_6side1_length =0;
AttrDescriptor *a_7side2_length =0;
AttrDescriptor *a_8side3_length =0;
SdaiTriangle::SdaiTriangle( )
{
EntityDescriptor = example_schemae_triangle;
STEPattribute * a = new STEPattribute (*a_6side1_length, &_side1_length);
a -> set_null ();
attributes.push (a);
a = new STEPattribute (*a_7side2_length, &_side2_length);
a -> set_null ();
attributes.push (a);
a = new STEPattribute (*a_8side3_length, &_side3_length);
a -> set_null ();
attributes.push (a);
}
SdaiTriangle::SdaiTriangle (SdaiTriangle& e )
{ CopyAs((STEPentityH) &e); }
SdaiTriangle::~SdaiTriangle () { }
const SdaiLength_measure
SdaiTriangle::Side1_length() const
{ return (const SdaiLength_measure) _side1_length; }
void
SdaiTriangle::Side1_length (SdaiLength_measure x)
{ _side1_length = x; }
const SdaiLength_measure
SdaiTriangle::Side2_length() const
{ return (const SdaiLength_measure) _side2_length; }
void
SdaiTriangle::Side2_length (SdaiLength_measure x)
{ _side2_length = x; }
const SdaiLength_measure
SdaiTriangle::Side3_length() const
{ return (const SdaiLength_measure) _side3_length; }
void
SdaiTriangle::Side3_length (SdaiLength_measure x)
{ _side3_length = x; }
///////// END_ENTITY triangle
///////// ENTITY circle
EntityDescriptor *example_schemae_circle =0;
AttrDescriptor *a_9radius =0;
SdaiCircle::SdaiCircle( )
{
EntityDescriptor = example_schemae_circle;
STEPattribute * a = new STEPattribute (*a_9radius, &_radius);
a -> set_null ();
attributes.push (a);
}
SdaiCircle::SdaiCircle (SdaiCircle& e )
{ CopyAs((STEPentityH) &e); }
SdaiCircle::~SdaiCircle () { }
const SdaiReal
SdaiCircle::Radius() const
{ return (const SdaiReal) _radius; }
void
SdaiCircle::Radius (SdaiReal x)
{ _radius = x; }
///////// END_ENTITY circle
///////// ENTITY line
EntityDescriptor *example_schemae_line =0;
AttrDescriptor *a_10end_point_one =0;
AttrDescriptor *a_11end_point_two =0;
SdaiLine::SdaiLine( )
{
EntityDescriptor = example_schemae_line;
STEPattribute * a = new STEPattribute (*a_10end_point_one, (STEPentityH *) &_end_point_one);
a -> set_null ();
attributes.push (a);
a = new STEPattribute (*a_11end_point_two, (STEPentityH *) &_end_point_two);
a -> set_null ();
attributes.push (a);
}
SdaiLine::SdaiLine (SdaiLine& e )
{ CopyAs((STEPentityH) &e); }
SdaiLine::~SdaiLine () { }
SdaiCartesian_pointH
SdaiLine::End_point_one() const
{ return (SdaiCartesian_pointH) _end_point_one; }
void
SdaiLine::End_point_one (SdaiCartesian_pointH x)
{ _end_point_one = x; }
SdaiCartesian_pointH
SdaiLine::End_point_two() const
{ return (SdaiCartesian_pointH) _end_point_two; }
void
SdaiLine::End_point_two (SdaiCartesian_pointH x)
{ _end_point_two = x; }
///////// END_ENTITY line
///////// ENTITY cartesian_point
EntityDescriptor *example_schemae_cartesian_point =0;
AttrDescriptor *a_12x =0;
AttrDescriptor *a_13y =0;
AttrDescriptor *a_14z =0;
SdaiCartesian_point::SdaiCartesian_point( )
{
EntityDescriptor = example_schemae_cartesian_point;
STEPattribute * a = new STEPattribute (*a_12x, &_x);
a -> set_null ();
attributes.push (a);
a = new STEPattribute (*a_13y, &_y);
a -> set_null ();
attributes.push (a);
a = new STEPattribute (*a_14z, &_z);
a -> set_null ();
attributes.push (a);
}
SdaiCartesian_point::SdaiCartesian_point (SdaiCartesian_point& e )
{ CopyAs((STEPentityH) &e); }
SdaiCartesian_point::~SdaiCartesian_point () { }
const SdaiPoint
SdaiCartesian_point::X() const
{ return (const SdaiPoint) _x; }
void
SdaiCartesian_point::X (SdaiPoint x)
{ _x = x; }
const SdaiPoint
SdaiCartesian_point::Y() const
{ return (const SdaiPoint) _y; }
void
SdaiCartesian_point::Y (SdaiPoint x)
{ _y = x; }
const SdaiPoint
SdaiCartesian_point::Z() const
{ return (const SdaiPoint) _z; }
void
SdaiCartesian_point::Z (SdaiPoint x)
{ _z = x; }
///////// END_ENTITY cartesian_point
#endif