#ifndef  TYPE_SDAITOLERANCE_METHOD_DEFINITION_H
#define  TYPE_SDAITOLERANCE_METHOD_DEFINITION_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 SdaiTolerance_method_definition
class SC_SCHEMA_EXPORT SdaiTolerance_method_definition  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   LIMITS_AND_FITS    --  sdaiINSTANCE
    //   TOLERANCE_VALUE    --  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
    SdaiTolerance_method_definition( const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_tolerance_method_definition );
    //  part 1
    SdaiTolerance_method_definition( const SdaiLimits_and_fits_ptr&,
                                     const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_tolerance_method_definition );
    SdaiTolerance_method_definition( const SdaiTolerance_value_ptr&,
                                     const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_tolerance_method_definition );
    virtual ~SdaiTolerance_method_definition();

    //  part 2
    operator SdaiLimits_and_fits_ptr();
    operator SdaiTolerance_value_ptr();

    //  part 3
        SdaiMeasure_with_unit_ptr_c upper_bound_() const;
        SdaiMeasure_with_unit_ptr   upper_bound_();
        void upper_bound_( const SdaiMeasure_with_unit_ptr x );

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

  const SdaiText   source_() const;
        SdaiText   source_();
        void source_( const SdaiText x );

  const SdaiLabel   grade_() const;
        SdaiLabel   grade_();
        void grade_( const SdaiLabel x );

  const SdaiLabel   zone_variance_() const;
        SdaiLabel   zone_variance_();
        void zone_variance_( const SdaiLabel x );

  const SdaiLabel   form_variance_() const;
        SdaiLabel   form_variance_();
        void form_variance_( const SdaiLabel x );


    //  part 4
    SdaiTolerance_method_definition& operator =( const SdaiLimits_and_fits_ptr& );
    SdaiTolerance_method_definition& operator =( const SdaiTolerance_value_ptr& );
    // not in SDAI
    SdaiTolerance_method_definition& ShallowCopy ( const SdaiTolerance_method_definition& );

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

    //  part 5
    Logical IsLimits_and_fits() const;
    Logical IsTolerance_value() const;

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

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

inline SDAI_Select * create_SdaiTolerance_method_definition () { return new SdaiTolerance_method_definition; }
typedef SdaiTolerance_method_definition * SdaiTolerance_method_definitionH;
typedef SdaiTolerance_method_definition_ptr SdaiTolerance_method_definition_var;


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

  public:
    SdaiTolerance_method_definition_agg( SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_tolerance_method_definition );
    ~SdaiTolerance_method_definition_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiTolerance_method_definition( sel_type )); }
};
inline STEPaggregate * create_SdaiTolerance_method_definition_agg () { return new SdaiTolerance_method_definition_agg; }
typedef SdaiTolerance_method_definition_agg_ptr SdaiTolerance_method_definition_agg_var;

/////  END SELECT TYPE tolerance_method_definition

void init_SdaiTolerance_method_definition(Registry& reg);

#endif
