#ifndef  TYPE_SDAIDESCRIPTION_ATTRIBUTE_SELECT_H
#define  TYPE_SDAIDESCRIPTION_ATTRIBUTE_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 SdaiDescription_attribute_select
class SC_SCHEMA_EXPORT SdaiDescription_attribute_select  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ACTION_REQUEST_SOLUTION    --  sdaiINSTANCE
    //   APPLICATION_CONTEXT    --  sdaiINSTANCE
    //   APPROVAL_ROLE    --  sdaiINSTANCE
    //   CONFIGURATION_DESIGN    --  sdaiINSTANCE
    //   CONTEXT_DEPENDENT_SHAPE_REPRESENTATION    --  sdaiINSTANCE
    //   DATE_ROLE    --  sdaiINSTANCE
    //   DATE_TIME_ROLE    --  sdaiINSTANCE
    //   EFFECTIVITY    --  sdaiINSTANCE
    //   EXTERNAL_SOURCE    --  sdaiINSTANCE
    //   ORGANIZATION_ROLE    --  sdaiINSTANCE
    //   ORGANIZATIONAL_PROJECT    --  sdaiINSTANCE
    //   PERSON_AND_ORGANIZATION    --  sdaiINSTANCE
    //   PERSON_AND_ORGANIZATION_ROLE    --  sdaiINSTANCE
    //   PROPERTY_DEFINITION_REPRESENTATION    --  sdaiINSTANCE
    //   REPRESENTATION    --  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
    SdaiDescription_attribute_select( const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_description_attribute_select );
    //  part 1
    SdaiDescription_attribute_select( const SdaiAction_request_solution_ptr&,
                                      const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiApplication_context_ptr&,
                                      const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiApproval_role_ptr&,
                                      const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiConfiguration_design_ptr&,
                                      const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiContext_dependent_shape_representation_ptr&,
                                      const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiDate_role_ptr&,
                                      const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiDate_time_role_ptr&,
                                      const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiEffectivity_ptr&,
                                      const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiExternal_source_ptr&,
                                      const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiOrganization_role_ptr&,
                                      const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiOrganizational_project_ptr&,
                                      const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiPerson_and_organization_ptr&,
                                      const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiPerson_and_organization_role_ptr&,
                                      const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiProperty_definition_representation_ptr&,
                                      const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiRepresentation_ptr&,
                                      const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_description_attribute_select );
    virtual ~SdaiDescription_attribute_select();

    //  part 2
    operator SdaiAction_request_solution_ptr();
    operator SdaiApplication_context_ptr();
    operator SdaiApproval_role_ptr();
    operator SdaiConfiguration_design_ptr();
    operator SdaiContext_dependent_shape_representation_ptr();
    operator SdaiDate_role_ptr();
    operator SdaiDate_time_role_ptr();
    operator SdaiEffectivity_ptr();
    operator SdaiExternal_source_ptr();
    operator SdaiOrganization_role_ptr();
    operator SdaiOrganizational_project_ptr();
    operator SdaiPerson_and_organization_ptr();
    operator SdaiPerson_and_organization_role_ptr();
    operator SdaiProperty_definition_representation_ptr();
    operator SdaiRepresentation_ptr();

    //  part 3
        SdaiRepresentation_context_ptr_c context_of_items_() const;
        SdaiRepresentation_context_ptr   context_of_items_();
        void context_of_items_( const SdaiRepresentation_context_ptr x );

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

        SdaiRepresentation_ptr_c used_representation_() const;
        SdaiRepresentation_ptr   used_representation_();
        void used_representation_( const SdaiRepresentation_ptr x );

        SdaiRepresented_definition_ptr_c definition_() const;
        SdaiRepresented_definition_ptr   definition_();
        void definition_( const SdaiRepresented_definition_ptr x );

        SdaiOrganization_ptr_c the_organization_() const;
        SdaiOrganization_ptr   the_organization_();
        void the_organization_( const SdaiOrganization_ptr x );

        SdaiPerson_ptr_c the_person_() const;
        SdaiPerson_ptr   the_person_();
        void the_person_( const SdaiPerson_ptr x );

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

        SdaiSource_item_ptr_c source_id_() const;
        SdaiSource_item_ptr   source_id_();
        void source_id_( const SdaiSource_item_ptr x );

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

        SdaiShape_representation_relationship_ptr_c representation_relation_() const;
        SdaiShape_representation_relationship_ptr   representation_relation_();
        void representation_relation_( const SdaiShape_representation_relationship_ptr x );

        SdaiConfiguration_design_item_ptr_c design_() const;
        SdaiConfiguration_design_item_ptr   design_();
        void design_( const SdaiConfiguration_design_item_ptr x );

        SdaiConfiguration_item_ptr_c configuration_() const;
        SdaiConfiguration_item_ptr   configuration_();
        void configuration_( const SdaiConfiguration_item_ptr x );

  const SdaiLabel   role_() const;
        SdaiLabel   role_();
        void role_( const SdaiLabel x );

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

  const SdaiLabel   application_() const;
        SdaiLabel   application_();
        void application_( const SdaiLabel x );

        SdaiVersioned_action_request_ptr_c request_() const;
        SdaiVersioned_action_request_ptr   request_();
        void request_( const SdaiVersioned_action_request_ptr x );

        SdaiAction_method_ptr_c method_() const;
        SdaiAction_method_ptr   method_();
        void method_( const SdaiAction_method_ptr x );


    //  part 4
    SdaiDescription_attribute_select& operator =( const SdaiAction_request_solution_ptr& );
    SdaiDescription_attribute_select& operator =( const SdaiApplication_context_ptr& );
    SdaiDescription_attribute_select& operator =( const SdaiApproval_role_ptr& );
    SdaiDescription_attribute_select& operator =( const SdaiConfiguration_design_ptr& );
    SdaiDescription_attribute_select& operator =( const SdaiContext_dependent_shape_representation_ptr& );
    SdaiDescription_attribute_select& operator =( const SdaiDate_role_ptr& );
    SdaiDescription_attribute_select& operator =( const SdaiDate_time_role_ptr& );
    SdaiDescription_attribute_select& operator =( const SdaiEffectivity_ptr& );
    SdaiDescription_attribute_select& operator =( const SdaiExternal_source_ptr& );
    SdaiDescription_attribute_select& operator =( const SdaiOrganization_role_ptr& );
    SdaiDescription_attribute_select& operator =( const SdaiOrganizational_project_ptr& );
    SdaiDescription_attribute_select& operator =( const SdaiPerson_and_organization_ptr& );
    SdaiDescription_attribute_select& operator =( const SdaiPerson_and_organization_role_ptr& );
    SdaiDescription_attribute_select& operator =( const SdaiProperty_definition_representation_ptr& );
    SdaiDescription_attribute_select& operator =( const SdaiRepresentation_ptr& );
    // not in SDAI
    SdaiDescription_attribute_select& ShallowCopy ( const SdaiDescription_attribute_select& );

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

    //  part 5
    Logical IsAction_request_solution() const;
    Logical IsApplication_context() const;
    Logical IsApproval_role() const;
    Logical IsConfiguration_design() const;
    Logical IsContext_dependent_shape_representation() const;
    Logical IsDate_role() const;
    Logical IsDate_time_role() const;
    Logical IsEffectivity() const;
    Logical IsExternal_source() const;
    Logical IsOrganization_role() const;
    Logical IsOrganizational_project() const;
    Logical IsPerson_and_organization() const;
    Logical IsPerson_and_organization_role() const;
    Logical IsProperty_definition_representation() const;
    Logical IsRepresentation() const;

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

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

inline SDAI_Select * create_SdaiDescription_attribute_select () { return new SdaiDescription_attribute_select; }
typedef SdaiDescription_attribute_select * SdaiDescription_attribute_selectH;
typedef SdaiDescription_attribute_select_ptr SdaiDescription_attribute_select_var;


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

  public:
    SdaiDescription_attribute_select_agg( SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_description_attribute_select );
    ~SdaiDescription_attribute_select_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiDescription_attribute_select( sel_type )); }
};
inline STEPaggregate * create_SdaiDescription_attribute_select_agg () { return new SdaiDescription_attribute_select_agg; }
typedef SdaiDescription_attribute_select_agg_ptr SdaiDescription_attribute_select_agg_var;

/////  END SELECT TYPE description_attribute_select

void init_SdaiDescription_attribute_select(Registry& reg);

#endif
