#ifndef  TYPE_SDAITOLERANCE_ZONE_TARGET_H
#define  TYPE_SDAITOLERANCE_ZONE_TARGET_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_zone_target
class SC_SCHEMA_EXPORT SdaiTolerance_zone_target  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   DIMENSIONAL_LOCATION    --  sdaiINSTANCE
    //   DIMENSIONAL_SIZE    --  sdaiINSTANCE
    //   GEOMETRIC_TOLERANCE    --  sdaiINSTANCE
    //   GENERAL_DATUM_REFERENCE    --  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_zone_target( const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_tolerance_zone_target );
    //  part 1
    SdaiTolerance_zone_target( const SdaiDimensional_location_ptr&,
                               const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_tolerance_zone_target );
    SdaiTolerance_zone_target( const SdaiDimensional_size_ptr&,
                               const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_tolerance_zone_target );
    SdaiTolerance_zone_target( const SdaiGeometric_tolerance_ptr&,
                               const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_tolerance_zone_target );
    SdaiTolerance_zone_target( const SdaiGeneral_datum_reference_ptr&,
                               const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_tolerance_zone_target );
    virtual ~SdaiTolerance_zone_target();

    //  part 2
    operator SdaiDimensional_location_ptr();
    operator SdaiDimensional_size_ptr();
    operator SdaiGeometric_tolerance_ptr();
    operator SdaiGeneral_datum_reference_ptr();

    //  part 3
        SdaiDatum_reference_modifier_agg_ptr_c modifiers_() const;
        SdaiDatum_reference_modifier_agg_ptr   modifiers_();
        void modifiers_( const SdaiDatum_reference_modifier_agg_ptr x );

        SdaiDatum_or_common_datum_ptr_c base_() const;
        SdaiDatum_or_common_datum_ptr   base_();
        void base_( const SdaiDatum_or_common_datum_ptr x );

        Logical   product_definitional_() const;
        void product_definitional_( const Logical x );

        SdaiProduct_definition_shape_ptr_c of_shape_() const;
        SdaiProduct_definition_shape_ptr   of_shape_();
        void of_shape_( const SdaiProduct_definition_shape_ptr x );

        SdaiGeometric_tolerance_target_ptr_c toleranced_shape_aspect_() const;
        SdaiGeometric_tolerance_target_ptr   toleranced_shape_aspect_();
        void toleranced_shape_aspect_( const SdaiGeometric_tolerance_target_ptr x );

        SdaiLength_measure_with_unit_ptr_c magnitude_() const;
        SdaiLength_measure_with_unit_ptr   magnitude_();
        void magnitude_( const SdaiLength_measure_with_unit_ptr x );

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

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

        SdaiShape_aspect_ptr_c relating_shape_aspect_() const;
        SdaiShape_aspect_ptr   relating_shape_aspect_();
        void relating_shape_aspect_( const SdaiShape_aspect_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
    SdaiTolerance_zone_target& operator =( const SdaiDimensional_location_ptr& );
    SdaiTolerance_zone_target& operator =( const SdaiDimensional_size_ptr& );
    SdaiTolerance_zone_target& operator =( const SdaiGeometric_tolerance_ptr& );
    SdaiTolerance_zone_target& operator =( const SdaiGeneral_datum_reference_ptr& );
    // not in SDAI
    SdaiTolerance_zone_target& ShallowCopy ( const SdaiTolerance_zone_target& );

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

    //  part 5
    Logical IsDimensional_location() const;
    Logical IsDimensional_size() const;
    Logical IsGeometric_tolerance() const;
    Logical IsGeneral_datum_reference() const;

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

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

inline SDAI_Select * create_SdaiTolerance_zone_target () { return new SdaiTolerance_zone_target; }
typedef SdaiTolerance_zone_target * SdaiTolerance_zone_targetH;
typedef SdaiTolerance_zone_target_ptr SdaiTolerance_zone_target_var;


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

  public:
    SdaiTolerance_zone_target_agg( SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_tolerance_zone_target );
    ~SdaiTolerance_zone_target_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiTolerance_zone_target( sel_type )); }
};
inline STEPaggregate * create_SdaiTolerance_zone_target_agg () { return new SdaiTolerance_zone_target_agg; }
typedef SdaiTolerance_zone_target_agg_ptr SdaiTolerance_zone_target_agg_var;

/////  END SELECT TYPE tolerance_zone_target

void init_SdaiTolerance_zone_target(Registry& reg);

#endif
