#ifndef  TYPE_SDAIPRESENTED_ITEM_SELECT_H
#define  TYPE_SDAIPRESENTED_ITEM_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 SdaiPresented_item_select
class SC_SCHEMA_EXPORT SdaiPresented_item_select  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ACTION    --  sdaiINSTANCE
    //   ACTION_METHOD    --  sdaiINSTANCE
    //   ACTION_RELATIONSHIP    --  sdaiINSTANCE
    //   PRODUCT_CONCEPT    --  sdaiINSTANCE
    //   PRODUCT_CONCEPT_FEATURE    --  sdaiINSTANCE
    //   PRODUCT_CONCEPT_FEATURE_CATEGORY    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION_FORMATION    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION_RELATIONSHIP    --  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
    SdaiPresented_item_select( const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_presented_item_select );
    //  part 1
    SdaiPresented_item_select( const SdaiAction_ptr&,
                               const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_presented_item_select );
    SdaiPresented_item_select( const SdaiAction_method_ptr&,
                               const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_presented_item_select );
    SdaiPresented_item_select( const SdaiAction_relationship_ptr&,
                               const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_presented_item_select );
    SdaiPresented_item_select( const SdaiProduct_concept_ptr&,
                               const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_presented_item_select );
    SdaiPresented_item_select( const SdaiProduct_concept_feature_ptr&,
                               const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_presented_item_select );
    SdaiPresented_item_select( const SdaiProduct_concept_feature_category_ptr&,
                               const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_presented_item_select );
    SdaiPresented_item_select( const SdaiProduct_definition_ptr&,
                               const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_presented_item_select );
    SdaiPresented_item_select( const SdaiProduct_definition_formation_ptr&,
                               const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_presented_item_select );
    SdaiPresented_item_select( const SdaiProduct_definition_relationship_ptr&,
                               const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_presented_item_select );
    virtual ~SdaiPresented_item_select();

    //  part 2
    operator SdaiAction_ptr();
    operator SdaiAction_method_ptr();
    operator SdaiAction_relationship_ptr();
    operator SdaiProduct_concept_ptr();
    operator SdaiProduct_concept_feature_ptr();
    operator SdaiProduct_concept_feature_category_ptr();
    operator SdaiProduct_definition_ptr();
    operator SdaiProduct_definition_formation_ptr();
    operator SdaiProduct_definition_relationship_ptr();

    //  part 3
        SdaiProduct_definition_or_reference_ptr_c related_product_definition_() const;
        SdaiProduct_definition_or_reference_ptr   related_product_definition_();
        void related_product_definition_( const SdaiProduct_definition_or_reference_ptr x );

        SdaiProduct_definition_or_reference_ptr_c relating_product_definition_() const;
        SdaiProduct_definition_or_reference_ptr   relating_product_definition_();
        void relating_product_definition_( const SdaiProduct_definition_or_reference_ptr x );

        SdaiProduct_ptr_c of_product_() const;
        SdaiProduct_ptr   of_product_();
        void of_product_( const SdaiProduct_ptr x );

        SdaiProduct_definition_context_ptr_c frame_of_reference_() const;
        SdaiProduct_definition_context_ptr   frame_of_reference_();
        void frame_of_reference_( const SdaiProduct_definition_context_ptr x );

        SdaiProduct_definition_formation_ptr_c formation_() const;
        SdaiProduct_definition_formation_ptr   formation_();
        void formation_( const SdaiProduct_definition_formation_ptr x );

        SdaiProduct_concept_context_ptr_c market_context_() const;
        SdaiProduct_concept_context_ptr   market_context_();
        void market_context_( const SdaiProduct_concept_context_ptr x );

        SdaiAction_ptr_c related_action_() const;
        SdaiAction_ptr   related_action_();
        void related_action_( const SdaiAction_ptr x );

        SdaiAction_ptr_c relating_action_() const;
        SdaiAction_ptr   relating_action_();
        void relating_action_( const SdaiAction_ptr x );

  const SdaiText   purpose_() const;
        SdaiText   purpose_();
        void purpose_( const SdaiText x );

  const SdaiText   consequence_() const;
        SdaiText   consequence_();
        void consequence_( const SdaiText x );

        SdaiAction_method_ptr_c chosen_method_() const;
        SdaiAction_method_ptr   chosen_method_();
        void chosen_method_( const SdaiAction_method_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
    SdaiPresented_item_select& operator =( const SdaiAction_ptr& );
    SdaiPresented_item_select& operator =( const SdaiAction_method_ptr& );
    SdaiPresented_item_select& operator =( const SdaiAction_relationship_ptr& );
    SdaiPresented_item_select& operator =( const SdaiProduct_concept_ptr& );
    SdaiPresented_item_select& operator =( const SdaiProduct_concept_feature_ptr& );
    SdaiPresented_item_select& operator =( const SdaiProduct_concept_feature_category_ptr& );
    SdaiPresented_item_select& operator =( const SdaiProduct_definition_ptr& );
    SdaiPresented_item_select& operator =( const SdaiProduct_definition_formation_ptr& );
    SdaiPresented_item_select& operator =( const SdaiProduct_definition_relationship_ptr& );
    // not in SDAI
    SdaiPresented_item_select& ShallowCopy ( const SdaiPresented_item_select& );

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

    //  part 5
    Logical IsAction() const;
    Logical IsAction_method() const;
    Logical IsAction_relationship() const;
    Logical IsProduct_concept() const;
    Logical IsProduct_concept_feature() const;
    Logical IsProduct_concept_feature_category() const;
    Logical IsProduct_definition() const;
    Logical IsProduct_definition_formation() const;
    Logical IsProduct_definition_relationship() const;

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

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

inline SDAI_Select * create_SdaiPresented_item_select () { return new SdaiPresented_item_select; }
typedef SdaiPresented_item_select * SdaiPresented_item_selectH;
typedef SdaiPresented_item_select_ptr SdaiPresented_item_select_var;


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

  public:
    SdaiPresented_item_select_agg( SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_presented_item_select );
    ~SdaiPresented_item_select_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiPresented_item_select( sel_type )); }
};
inline STEPaggregate * create_SdaiPresented_item_select_agg () { return new SdaiPresented_item_select_agg; }
typedef SdaiPresented_item_select_agg_ptr SdaiPresented_item_select_agg_var;

/////  END SELECT TYPE presented_item_select

void init_SdaiPresented_item_select(Registry& reg);

#endif
