#ifndef  TYPE_SDAINAME_ATTRIBUTE_SELECT_H
#define  TYPE_SDAINAME_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 SdaiName_attribute_select
class SC_SCHEMA_EXPORT SdaiName_attribute_select  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ACTION_REQUEST_SOLUTION    --  sdaiINSTANCE
    //   ADDRESS    --  sdaiINSTANCE
    //   DERIVED_UNIT    --  sdaiINSTANCE
    //   EFFECTIVITY    --  sdaiINSTANCE
    //   PERSON_AND_ORGANIZATION    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION    --  sdaiINSTANCE
    //   PROPERTY_DEFINITION_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
    SdaiName_attribute_select( const SelectTypeDescriptor * =process_planning_schema::t_name_attribute_select );
    //  part 1
    SdaiName_attribute_select( const SdaiAction_request_solution_ptr&,
                               const SelectTypeDescriptor * =process_planning_schema::t_name_attribute_select );
    SdaiName_attribute_select( const SdaiAddress_ptr&,
                               const SelectTypeDescriptor * =process_planning_schema::t_name_attribute_select );
    SdaiName_attribute_select( const SdaiDerived_unit_ptr&,
                               const SelectTypeDescriptor * =process_planning_schema::t_name_attribute_select );
    SdaiName_attribute_select( const SdaiEffectivity_ptr&,
                               const SelectTypeDescriptor * =process_planning_schema::t_name_attribute_select );
    SdaiName_attribute_select( const SdaiPerson_and_organization_ptr&,
                               const SelectTypeDescriptor * =process_planning_schema::t_name_attribute_select );
    SdaiName_attribute_select( const SdaiProduct_definition_ptr&,
                               const SelectTypeDescriptor * =process_planning_schema::t_name_attribute_select );
    SdaiName_attribute_select( const SdaiProperty_definition_representation_ptr&,
                               const SelectTypeDescriptor * =process_planning_schema::t_name_attribute_select );
    virtual ~SdaiName_attribute_select();

    //  part 2
    operator SdaiAction_request_solution_ptr();
    operator SdaiAddress_ptr();
    operator SdaiDerived_unit_ptr();
    operator SdaiEffectivity_ptr();
    operator SdaiPerson_and_organization_ptr();
    operator SdaiProduct_definition_ptr();
    operator SdaiProperty_definition_representation_ptr();

    //  part 3
        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 );

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

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

  const SdaiIdentifier   id_() const;
        SdaiIdentifier   id_();
        void id_( const SdaiIdentifier x );

        EntityAggregate_ptr_c elements_() const;
        EntityAggregate_ptr   elements_();
        void elements_( const EntityAggregate_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 );

        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
    SdaiName_attribute_select& operator =( const SdaiAction_request_solution_ptr& );
    SdaiName_attribute_select& operator =( const SdaiAddress_ptr& );
    SdaiName_attribute_select& operator =( const SdaiDerived_unit_ptr& );
    SdaiName_attribute_select& operator =( const SdaiEffectivity_ptr& );
    SdaiName_attribute_select& operator =( const SdaiPerson_and_organization_ptr& );
    SdaiName_attribute_select& operator =( const SdaiProduct_definition_ptr& );
    SdaiName_attribute_select& operator =( const SdaiProperty_definition_representation_ptr& );
    // not in SDAI
    SdaiName_attribute_select& ShallowCopy ( const SdaiName_attribute_select& );

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

    //  part 5
    Logical IsAction_request_solution() const;
    Logical IsAddress() const;
    Logical IsDerived_unit() const;
    Logical IsEffectivity() const;
    Logical IsPerson_and_organization() const;
    Logical IsProduct_definition() const;
    Logical IsProperty_definition_representation() const;

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

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

inline SDAI_Select * create_SdaiName_attribute_select () { return new SdaiName_attribute_select; }
typedef SdaiName_attribute_select * SdaiName_attribute_selectH;
typedef SdaiName_attribute_select_ptr SdaiName_attribute_select_var;


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

  public:
    SdaiName_attribute_select_agg( SelectTypeDescriptor * =process_planning_schema::t_name_attribute_select );
    ~SdaiName_attribute_select_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiName_attribute_select( sel_type )); }
};
inline STEPaggregate * create_SdaiName_attribute_select_agg () { return new SdaiName_attribute_select_agg; }
typedef SdaiName_attribute_select_agg_ptr SdaiName_attribute_select_agg_var;

/////  END SELECT TYPE name_attribute_select

void init_SdaiName_attribute_select(Registry& reg);

#endif
