#ifndef  TYPE_SDAIBOUNDED_PRIMITIVE_2D_H
#define  TYPE_SDAIBOUNDED_PRIMITIVE_2D_H

// This file was generated by exp2cxx,
// 0.8.1.
// You probably don't want to edit it since your modifications
// will be lost if exp2cxx is used to regenerate it.


//////////  SELECT TYPE SdaiBounded_primitive_2d
class SC_SCHEMA_EXPORT SdaiBounded_primitive_2d  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   AREA_WITH_OUTER_BOUNDARY    --  sdaiINSTANCE
    //   CIRCULAR_AREA    --  sdaiINSTANCE
    //   ELLIPTIC_AREA    --  sdaiINSTANCE
    //   PATH_AREA_WITH_PARAMETERS    --  sdaiINSTANCE
    //   POLYGONAL_AREA    --  sdaiINSTANCE
    //   RECTANGULAR_AREA    --  sdaiINSTANCE
       SDAI_Application_instance_ptr _app_inst;

  public:
    virtual const TypeDescriptor * AssignEntity (SDAI_Application_instance * se);
    virtual SDAI_Select * NewSelect ();

    virtual BASE_TYPE ValueType() const;


// STEP Part 21
    virtual void STEPwrite_content (ostream& out =std::cout,
                    const char *currSch =0) const;
    virtual void STEPwrite_verbose (ostream& out =std::cout,
                    const char *currSch =0) const;
    virtual Severity STEPread_content (istream& in =cin,
        InstMgrBase * instances =0, const char *utype =0,
        int addFileId =0, const char *currSch =0);
    virtual Severity StrToVal_content (const char *,
        InstMgrBase * instances =0);

// STEP Part 22:  SDAI

// constructors
    SdaiBounded_primitive_2d( const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_bounded_primitive_2d );
    //  part 1
    SdaiBounded_primitive_2d( const SdaiArea_with_outer_boundary_ptr&,
                              const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_bounded_primitive_2d );
    SdaiBounded_primitive_2d( const SdaiCircular_area_ptr&,
                              const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_bounded_primitive_2d );
    SdaiBounded_primitive_2d( const SdaiElliptic_area_ptr&,
                              const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_bounded_primitive_2d );
    SdaiBounded_primitive_2d( const SdaiPath_area_with_parameters_ptr&,
                              const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_bounded_primitive_2d );
    SdaiBounded_primitive_2d( const SdaiPolygonal_area_ptr&,
                              const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_bounded_primitive_2d );
    SdaiBounded_primitive_2d( const SdaiRectangular_area_ptr&,
                              const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_bounded_primitive_2d );
    virtual ~SdaiBounded_primitive_2d();

    //  part 2
    operator SdaiArea_with_outer_boundary_ptr();
    operator SdaiCircular_area_ptr();
    operator SdaiElliptic_area_ptr();
    operator SdaiPath_area_with_parameters_ptr();
    operator SdaiPolygonal_area_ptr();
    operator SdaiRectangular_area_ptr();

    //  part 3
        SdaiPositive_length_measure   y_() const;
        void y_( const SdaiPositive_length_measure x );

        SdaiPositive_length_measure   x_() const;
        void x_( const SdaiPositive_length_measure x );

        EntityAggregate_ptr_c bounds_() const;
        EntityAggregate_ptr   bounds_();
        void bounds_( const EntityAggregate_ptr x );

        SdaiRepresentation_item_ptr_c mapping_target_() const;
        SdaiRepresentation_item_ptr   mapping_target_();
        void mapping_target_( const SdaiRepresentation_item_ptr x );

        SdaiRepresentation_map_ptr_c mapping_source_() const;
        SdaiRepresentation_map_ptr   mapping_source_();
        void mapping_source_( const SdaiRepresentation_map_ptr x );

        SdaiPositive_length_measure   semi_axis_2_() const;
        void semi_axis_2_( const SdaiPositive_length_measure x );

        SdaiPositive_length_measure   semi_axis_1_() const;
        void semi_axis_1_( const SdaiPositive_length_measure x );

        SdaiAxis2_placement_2d_ptr_c position_() const;
        SdaiAxis2_placement_2d_ptr   position_();
        void position_( const SdaiAxis2_placement_2d_ptr x );

        SdaiPositive_length_measure   radius_() const;
        void radius_( const SdaiPositive_length_measure x );

        SdaiCartesian_point_ptr_c centre_() const;
        SdaiCartesian_point_ptr   centre_();
        void centre_( const SdaiCartesian_point_ptr x );

        SdaiComposite_curve_ptr_c half_space_2d_base_curve_() const;
        SdaiComposite_curve_ptr   half_space_2d_base_curve_();
        void half_space_2d_base_curve_( const SdaiComposite_curve_ptr x );

        Boolean   agreement_flag_() const;
        void agreement_flag_( const Boolean x );

        SdaiCurve_ptr_c base_curve_() const;
        SdaiCurve_ptr   base_curve_();
        void base_curve_( const SdaiCurve_ptr x );

  const SdaiLabel   name_() const;
        SdaiLabel   name_();
        void name_( const SdaiLabel x );


    //  part 4
    SdaiBounded_primitive_2d& operator =( const SdaiArea_with_outer_boundary_ptr& );
    SdaiBounded_primitive_2d& operator =( const SdaiCircular_area_ptr& );
    SdaiBounded_primitive_2d& operator =( const SdaiElliptic_area_ptr& );
    SdaiBounded_primitive_2d& operator =( const SdaiPath_area_with_parameters_ptr& );
    SdaiBounded_primitive_2d& operator =( const SdaiPolygonal_area_ptr& );
    SdaiBounded_primitive_2d& operator =( const SdaiRectangular_area_ptr& );
    // not in SDAI
    SdaiBounded_primitive_2d& ShallowCopy ( const SdaiBounded_primitive_2d& );

#ifdef COMPILER_DEFINES_OPERATOR_EQ
#else
    SdaiBounded_primitive_2d& operator =( SdaiBounded_primitive_2d * const & );
    SDAI_Select& operator =( const SDAI_Select& );
#endif

    //  part 5
    Logical IsArea_with_outer_boundary() const;
    Logical IsCircular_area() const;
    Logical IsElliptic_area() const;
    Logical IsPath_area_with_parameters() const;
    Logical IsPolygonal_area() const;
    Logical IsRectangular_area() const;

    //  part 6 ... UnderlyingTypeName () implemented in SDAI_Select class ...

    //  part 7 ... NONE    only for complex selects...
};

inline SDAI_Select * create_SdaiBounded_primitive_2d () { return new SdaiBounded_primitive_2d; }
typedef SdaiBounded_primitive_2d * SdaiBounded_primitive_2dH;
typedef SdaiBounded_primitive_2d_ptr SdaiBounded_primitive_2d_var;


class SdaiBounded_primitive_2d_agg : public SelectAggregate {
  protected:
    SelectTypeDescriptor *sel_type;

  public:
    SdaiBounded_primitive_2d_agg( SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_bounded_primitive_2d );
    ~SdaiBounded_primitive_2d_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiBounded_primitive_2d( sel_type )); }
};
inline STEPaggregate * create_SdaiBounded_primitive_2d_agg () { return new SdaiBounded_primitive_2d_agg; }
typedef SdaiBounded_primitive_2d_agg_ptr SdaiBounded_primitive_2d_agg_var;

/////  END SELECT TYPE bounded_primitive_2d

void init_SdaiBounded_primitive_2d(Registry& reg);

#endif
