#ifndef  TYPE_SDAISHAPE_TOLERANCE_SELECT_H
#define  TYPE_SDAISHAPE_TOLERANCE_SELECT_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 SdaiShape_tolerance_select
class SC_SCHEMA_EXPORT SdaiShape_tolerance_select  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   GEOMETRIC_TOLERANCE    --  sdaiINSTANCE
    //   PLUS_MINUS_TOLERANCE    --  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
    SdaiShape_tolerance_select( const SelectTypeDescriptor * =engineering_properties_schema::t_shape_tolerance_select );
    //  part 1
    SdaiShape_tolerance_select( const SdaiGeometric_tolerance_ptr&,
                                const SelectTypeDescriptor * =engineering_properties_schema::t_shape_tolerance_select );
    SdaiShape_tolerance_select( const SdaiPlus_minus_tolerance_ptr&,
                                const SelectTypeDescriptor * =engineering_properties_schema::t_shape_tolerance_select );
    virtual ~SdaiShape_tolerance_select();

    //  part 2
    operator SdaiGeometric_tolerance_ptr();
    operator SdaiPlus_minus_tolerance_ptr();

    //  part 3
        SdaiDimensional_characteristic_ptr_c toleranced_dimension_() const;
        SdaiDimensional_characteristic_ptr   toleranced_dimension_();
        void toleranced_dimension_( const SdaiDimensional_characteristic_ptr x );

        SdaiTolerance_method_definition_ptr_c range_() const;
        SdaiTolerance_method_definition_ptr   range_();
        void range_( const SdaiTolerance_method_definition_ptr x );

        SdaiShape_aspect_ptr_c toleranced_shape_aspect_() const;
        SdaiShape_aspect_ptr   toleranced_shape_aspect_();
        void toleranced_shape_aspect_( const SdaiShape_aspect_ptr x );

        SdaiMeasure_with_unit_ptr_c magnitude_() const;
        SdaiMeasure_with_unit_ptr   magnitude_();
        void magnitude_( const SdaiMeasure_with_unit_ptr x );

  const SdaiText   description_() const;
        SdaiText   description_();
        void description_( const SdaiText x );

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


    //  part 4
    SdaiShape_tolerance_select& operator =( const SdaiGeometric_tolerance_ptr& );
    SdaiShape_tolerance_select& operator =( const SdaiPlus_minus_tolerance_ptr& );
    // not in SDAI
    SdaiShape_tolerance_select& ShallowCopy ( const SdaiShape_tolerance_select& );

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

    //  part 5
    Logical IsGeometric_tolerance() const;
    Logical IsPlus_minus_tolerance() const;

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

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

inline SDAI_Select * create_SdaiShape_tolerance_select () { return new SdaiShape_tolerance_select; }
typedef SdaiShape_tolerance_select * SdaiShape_tolerance_selectH;
typedef SdaiShape_tolerance_select_ptr SdaiShape_tolerance_select_var;


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

  public:
    SdaiShape_tolerance_select_agg( SelectTypeDescriptor * =engineering_properties_schema::t_shape_tolerance_select );
    ~SdaiShape_tolerance_select_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiShape_tolerance_select( sel_type )); }
};
inline STEPaggregate * create_SdaiShape_tolerance_select_agg () { return new SdaiShape_tolerance_select_agg; }
typedef SdaiShape_tolerance_select_agg_ptr SdaiShape_tolerance_select_agg_var;

/////  END SELECT TYPE shape_tolerance_select

void init_SdaiShape_tolerance_select(Registry& reg);

#endif
