#ifndef  TYPE_SDAIID_ATTRIBUTE_SELECT_H
#define  TYPE_SDAIID_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 SdaiId_attribute_select
class SC_SCHEMA_EXPORT SdaiId_attribute_select  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ACTION    --  sdaiINSTANCE
    //   ADDRESS    --  sdaiINSTANCE
    //   PRODUCT_CATEGORY    --  sdaiINSTANCE
    //   PROPERTY_DEFINITION    --  sdaiINSTANCE
    //   SHAPE_ASPECT    --  sdaiINSTANCE
    //   SHAPE_ASPECT_RELATIONSHIP    --  sdaiINSTANCE
    //   APPLICATION_CONTEXT    --  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
    SdaiId_attribute_select( const SelectTypeDescriptor * =integrated_cnc_schema::t_id_attribute_select );
    //  part 1
    SdaiId_attribute_select( const SdaiAction_ptr&,
                             const SelectTypeDescriptor * =integrated_cnc_schema::t_id_attribute_select );
    SdaiId_attribute_select( const SdaiAddress_ptr&,
                             const SelectTypeDescriptor * =integrated_cnc_schema::t_id_attribute_select );
    SdaiId_attribute_select( const SdaiProduct_category_ptr&,
                             const SelectTypeDescriptor * =integrated_cnc_schema::t_id_attribute_select );
    SdaiId_attribute_select( const SdaiProperty_definition_ptr&,
                             const SelectTypeDescriptor * =integrated_cnc_schema::t_id_attribute_select );
    SdaiId_attribute_select( const SdaiShape_aspect_ptr&,
                             const SelectTypeDescriptor * =integrated_cnc_schema::t_id_attribute_select );
    SdaiId_attribute_select( const SdaiShape_aspect_relationship_ptr&,
                             const SelectTypeDescriptor * =integrated_cnc_schema::t_id_attribute_select );
    SdaiId_attribute_select( const SdaiApplication_context_ptr&,
                             const SelectTypeDescriptor * =integrated_cnc_schema::t_id_attribute_select );
    SdaiId_attribute_select( const SdaiRepresentation_ptr&,
                             const SelectTypeDescriptor * =integrated_cnc_schema::t_id_attribute_select );
    virtual ~SdaiId_attribute_select();

    //  part 2
    operator SdaiAction_ptr();
    operator SdaiAddress_ptr();
    operator SdaiProduct_category_ptr();
    operator SdaiProperty_definition_ptr();
    operator SdaiShape_aspect_ptr();
    operator SdaiShape_aspect_relationship_ptr();
    operator SdaiApplication_context_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 );

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

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

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

        SdaiCharacterized_definition_ptr_c definition_() const;
        SdaiCharacterized_definition_ptr   definition_();
        void definition_( const SdaiCharacterized_definition_ptr x );

  const SdaiLabel   telex_number_() const;
        SdaiLabel   telex_number_();
        void telex_number_( const SdaiLabel x );

  const SdaiLabel   electronic_mail_address_() const;
        SdaiLabel   electronic_mail_address_();
        void electronic_mail_address_( const SdaiLabel x );

  const SdaiLabel   telephone_number_() const;
        SdaiLabel   telephone_number_();
        void telephone_number_( const SdaiLabel x );

  const SdaiLabel   facsimile_number_() const;
        SdaiLabel   facsimile_number_();
        void facsimile_number_( const SdaiLabel x );

  const SdaiLabel   country_() const;
        SdaiLabel   country_();
        void country_( const SdaiLabel x );

  const SdaiLabel   postal_code_() const;
        SdaiLabel   postal_code_();
        void postal_code_( const SdaiLabel x );

  const SdaiLabel   region_() const;
        SdaiLabel   region_();
        void region_( const SdaiLabel x );

  const SdaiLabel   town_() const;
        SdaiLabel   town_();
        void town_( const SdaiLabel x );

  const SdaiLabel   postal_box_() const;
        SdaiLabel   postal_box_();
        void postal_box_( const SdaiLabel x );

  const SdaiLabel   street_() const;
        SdaiLabel   street_();
        void street_( const SdaiLabel x );

  const SdaiLabel   street_number_() const;
        SdaiLabel   street_number_();
        void street_number_( const SdaiLabel x );

  const SdaiLabel   internal_location_() const;
        SdaiLabel   internal_location_();
        void internal_location_( const SdaiLabel 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
    SdaiId_attribute_select& operator =( const SdaiAction_ptr& );
    SdaiId_attribute_select& operator =( const SdaiAddress_ptr& );
    SdaiId_attribute_select& operator =( const SdaiProduct_category_ptr& );
    SdaiId_attribute_select& operator =( const SdaiProperty_definition_ptr& );
    SdaiId_attribute_select& operator =( const SdaiShape_aspect_ptr& );
    SdaiId_attribute_select& operator =( const SdaiShape_aspect_relationship_ptr& );
    SdaiId_attribute_select& operator =( const SdaiApplication_context_ptr& );
    SdaiId_attribute_select& operator =( const SdaiRepresentation_ptr& );
    // not in SDAI
    SdaiId_attribute_select& ShallowCopy ( const SdaiId_attribute_select& );

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

    //  part 5
    Logical IsAction() const;
    Logical IsAddress() const;
    Logical IsProduct_category() const;
    Logical IsProperty_definition() const;
    Logical IsShape_aspect() const;
    Logical IsShape_aspect_relationship() const;
    Logical IsApplication_context() const;
    Logical IsRepresentation() const;

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

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

inline SDAI_Select * create_SdaiId_attribute_select () { return new SdaiId_attribute_select; }
typedef SdaiId_attribute_select * SdaiId_attribute_selectH;
typedef SdaiId_attribute_select_ptr SdaiId_attribute_select_var;


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

  public:
    SdaiId_attribute_select_agg( SelectTypeDescriptor * =integrated_cnc_schema::t_id_attribute_select );
    ~SdaiId_attribute_select_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiId_attribute_select( sel_type )); }
};
inline STEPaggregate * create_SdaiId_attribute_select_agg () { return new SdaiId_attribute_select_agg; }
typedef SdaiId_attribute_select_agg_ptr SdaiId_attribute_select_agg_var;

/////  END SELECT TYPE id_attribute_select

void init_SdaiId_attribute_select(Registry& reg);

#endif
