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
Wrap
C/C++ Source or Header
|
1994-12-13
|
8KB
|
308 lines
#ifndef SDAIEXAMPLE_SCHEMA_H
#define SDAIEXAMPLE_SCHEMA_H
// 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$ */
#ifdef __O3DB__
#include <OpenOODB.h>
#endif
#ifndef S_SCHEMA_H
#include <s_schema.h>
#endif
/* ************** TYPES */
// ***** Describe the Entities
class SdaiPoly_line;
typedef SdaiPoly_line * SdaiPoly_lineH;
extern EntityDescriptor *example_schemae_poly_line;
class SdaiShape;
typedef SdaiShape * SdaiShapeH;
extern EntityDescriptor *example_schemae_shape;
class SdaiRectangle;
typedef SdaiRectangle * SdaiRectangleH;
extern EntityDescriptor *example_schemae_rectangle;
class SdaiSquare;
typedef SdaiSquare * SdaiSquareH;
extern EntityDescriptor *example_schemae_square;
class SdaiTriangle;
typedef SdaiTriangle * SdaiTriangleH;
extern EntityDescriptor *example_schemae_triangle;
class SdaiCircle;
typedef SdaiCircle * SdaiCircleH;
extern EntityDescriptor *example_schemae_circle;
class SdaiLine;
typedef SdaiLine * SdaiLineH;
extern EntityDescriptor *example_schemae_line;
class SdaiCartesian_point;
typedef SdaiCartesian_point * SdaiCartesian_pointH;
extern EntityDescriptor *example_schemae_cartesian_point;
// ***** Describe the Other Types
extern TypeDescriptor *example_schemat_color;
////////// ENUMERATION TYPE color
enum sdaiColor {
color_GREEN,
color_WHITE,
color_ORANGE,
color_YELLOW,
color_RED,
color_BLACK,
color_BROWN,
color_BLUE
} ;
class SdaiColor : public STEPenumeration {
public:
SdaiColor (const char * n =0);
SdaiColor (sdaiColor e) { set_value (e); }
~SdaiColor () { }
SdaiColor& operator= (const sdaiColor& e)
{ set_value (e); return *this; }
operator sdaiColor () const;
inline virtual const char * Name () const
{ return "SdaiColor" ; }
inline virtual int no_elements () const { return 8; }
virtual const char * element_at (int n) const;
};
class SdaiColors : public EnumAggregate {
public:
virtual SingleLinkNode * NewNode () {
return new EnumNode (new SdaiColor); }
};
typedef SdaiColors * SdaiColorsH;
////////// END ENUMERATION color
extern TypeDescriptor *example_schemat_label;
extern TypeDescriptor *example_schemat_point;
extern TypeDescriptor *example_schemat_length_measure;
typedef SdaiString SdaiLabel;
typedef SdaiReal SdaiPoint;
typedef SdaiReal SdaiLength_measure;
// ***** Build the SELECT Types
/* ************** ENTITIES */
// ***** Print Entity Classes
///////// ENTITY poly_line
extern AttrDescriptor *a_0points;
class SdaiPoly_line : public STEPentity {
protected:
EntityAggregate _points ; // of line
public:
SdaiPoly_line ( );
SdaiPoly_line (SdaiPoly_line& e );
~SdaiPoly_line ();
int opcode () { return 0 ; }
const EntityAggregateH Points() const;
void Points (EntityAggregateH x);
};
inline SdaiPoly_line *
create_SdaiPoly_line () { return new SdaiPoly_line ; }
///////// END_ENTITY poly_line
///////// ENTITY shape
extern AttrDescriptor *a_1item_name;
extern AttrDescriptor *a_2item_color;
extern AttrDescriptor *a_3number_of_sides;
class SdaiShape : public STEPentity {
protected:
SdaiString _item_name ;
SdaiColor _item_color ; // OPTIONAL
SdaiInteger _number_of_sides ;
public:
SdaiShape ( );
SdaiShape (SdaiShape& e );
~SdaiShape ();
int opcode () { return 1 ; }
const SdaiLabel& Item_name() const;
void Item_name (const char * x);
const SdaiColor& Item_color() const;
void Item_color (sdaiColor x);
const SdaiInteger Number_of_sides() const;
void Number_of_sides (SdaiInteger x);
};
inline SdaiShape *
create_SdaiShape () { return new SdaiShape ; }
///////// END_ENTITY shape
///////// ENTITY rectangle
extern AttrDescriptor *a_4height;
extern AttrDescriptor *a_5width;
class SdaiRectangle : public SdaiShape {
protected:
SdaiReal _height ;
SdaiReal _width ;
public:
SdaiRectangle ( );
SdaiRectangle (SdaiRectangle& e );
~SdaiRectangle ();
int opcode () { return 2 ; }
const SdaiLength_measure Height() const;
void Height (SdaiLength_measure x);
const SdaiLength_measure Width() const;
void Width (SdaiLength_measure x);
};
inline SdaiRectangle *
create_SdaiRectangle () { return new SdaiRectangle ; }
///////// END_ENTITY rectangle
///////// ENTITY square
class SdaiSquare : public SdaiRectangle {
protected:
public:
SdaiSquare ( );
SdaiSquare (SdaiSquare& e );
~SdaiSquare ();
int opcode () { return 3 ; }
};
inline SdaiSquare *
create_SdaiSquare () { return new SdaiSquare ; }
///////// END_ENTITY square
///////// ENTITY triangle
extern AttrDescriptor *a_6side1_length;
extern AttrDescriptor *a_7side2_length;
extern AttrDescriptor *a_8side3_length;
class SdaiTriangle : public SdaiShape {
protected:
SdaiReal _side1_length ;
SdaiReal _side2_length ;
SdaiReal _side3_length ;
public:
SdaiTriangle ( );
SdaiTriangle (SdaiTriangle& e );
~SdaiTriangle ();
int opcode () { return 4 ; }
const SdaiLength_measure Side1_length() const;
void Side1_length (SdaiLength_measure x);
const SdaiLength_measure Side2_length() const;
void Side2_length (SdaiLength_measure x);
const SdaiLength_measure Side3_length() const;
void Side3_length (SdaiLength_measure x);
};
inline SdaiTriangle *
create_SdaiTriangle () { return new SdaiTriangle ; }
///////// END_ENTITY triangle
///////// ENTITY circle
extern AttrDescriptor *a_9radius;
class SdaiCircle : public SdaiShape {
protected:
SdaiReal _radius ;
public:
SdaiCircle ( );
SdaiCircle (SdaiCircle& e );
~SdaiCircle ();
int opcode () { return 5 ; }
const SdaiReal Radius() const;
void Radius (SdaiReal x);
};
inline SdaiCircle *
create_SdaiCircle () { return new SdaiCircle ; }
///////// END_ENTITY circle
///////// ENTITY line
extern AttrDescriptor *a_10end_point_one;
extern AttrDescriptor *a_11end_point_two;
class SdaiLine : public STEPentity {
protected:
SdaiCartesian_pointH _end_point_one ;
SdaiCartesian_pointH _end_point_two ;
public:
SdaiLine ( );
SdaiLine (SdaiLine& e );
~SdaiLine ();
int opcode () { return 6 ; }
SdaiCartesian_pointH End_point_one() const;
void End_point_one (SdaiCartesian_pointH x);
SdaiCartesian_pointH End_point_two() const;
void End_point_two (SdaiCartesian_pointH x);
};
inline SdaiLine *
create_SdaiLine () { return new SdaiLine ; }
///////// END_ENTITY line
///////// ENTITY cartesian_point
extern AttrDescriptor *a_12x;
extern AttrDescriptor *a_13y;
extern AttrDescriptor *a_14z;
class SdaiCartesian_point : public STEPentity {
protected:
SdaiReal _x ;
SdaiReal _y ;
SdaiReal _z ; // OPTIONAL
public:
SdaiCartesian_point ( );
SdaiCartesian_point (SdaiCartesian_point& e );
~SdaiCartesian_point ();
int opcode () { return 7 ; }
const SdaiPoint X() const;
void X (SdaiPoint x);
const SdaiPoint Y() const;
void Y (SdaiPoint x);
const SdaiPoint Z() const;
void Z (SdaiPoint x);
};
inline SdaiCartesian_point *
create_SdaiCartesian_point () { return new SdaiCartesian_point ; }
///////// END_ENTITY cartesian_point
#endif