#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 
    //   APPLICATION_CONTEXT    --  sdaiINSTANCE
    //   APPROVAL_ROLE    --  sdaiINSTANCE
    //   DATE_TIME_ROLE    --  sdaiINSTANCE
    //   CONTEXT_DEPENDENT_SHAPE_REPRESENTATION    --  sdaiINSTANCE
    //   EXTERNAL_SOURCE    --  sdaiINSTANCE
    //   PERSON_AND_ORGANIZATION_ROLE    --  sdaiINSTANCE
    //   PERSON_AND_ORGANIZATION    --  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 * =integrated_cnc_schema::t_description_attribute_select );
    //  part 1
    SdaiDescription_attribute_select( const SdaiApplication_context_ptr&,
                                      const SelectTypeDescriptor * =integrated_cnc_schema::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiApproval_role_ptr&,
                                      const SelectTypeDescriptor * =integrated_cnc_schema::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiDate_time_role_ptr&,
                                      const SelectTypeDescriptor * =integrated_cnc_schema::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiContext_dependent_shape_representation_ptr&,
                                      const SelectTypeDescriptor * =integrated_cnc_schema::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiExternal_source_ptr&,
                                      const SelectTypeDescriptor * =integrated_cnc_schema::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiPerson_and_organization_role_ptr&,
                                      const SelectTypeDescriptor * =integrated_cnc_schema::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiPerson_and_organization_ptr&,
                                      const SelectTypeDescriptor * =integrated_cnc_schema::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiProperty_definition_representation_ptr&,
                                      const SelectTypeDescriptor * =integrated_cnc_schema::t_description_attribute_select );
    SdaiDescription_attribute_select( const SdaiRepresentation_ptr&,
                                      const SelectTypeDescriptor * =integrated_cnc_schema::t_description_attribute_select );
    virtual ~SdaiDescription_attribute_select();

    //  part 2
    operator SdaiApplication_context_ptr();
    operator SdaiApproval_role_ptr();
    operator SdaiDate_time_role_ptr();
    operator SdaiContext_dependent_shape_representation_ptr();
    operator SdaiExternal_source_ptr();
    operator SdaiPerson_and_organization_role_ptr();
    operator SdaiPerson_and_organization_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 );

        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 );

  const SdaiLabel   name_() const;
        SdaiLabel   name_();
        void name_( const SdaiLabel 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 );


    //  part 4
    SdaiDescription_attribute_select& operator =( const SdaiApplication_context_ptr& );
    SdaiDescription_attribute_select& operator =( const SdaiApproval_role_ptr& );
    SdaiDescription_attribute_select& operator =( const SdaiDate_time_role_ptr& );
    SdaiDescription_attribute_select& operator =( const SdaiContext_dependent_shape_representation_ptr& );
    SdaiDescription_attribute_select& operator =( const SdaiExternal_source_ptr& );
    SdaiDescription_attribute_select& operator =( const SdaiPerson_and_organization_role_ptr& );
    SdaiDescription_attribute_select& operator =( const SdaiPerson_and_organization_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 IsApplication_context() const;
    Logical IsApproval_role() const;
    Logical IsDate_time_role() const;
    Logical IsContext_dependent_shape_representation() const;
    Logical IsExternal_source() const;
    Logical IsPerson_and_organization_role() const;
    Logical IsPerson_and_organization() 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 * =integrated_cnc_schema::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
