#ifndef  TYPE_SDAIPOSITION_GROUP_ITEM_H
#define  TYPE_SDAIPOSITION_GROUP_ITEM_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 SdaiPosition_group_item
class SC_SCHEMA_EXPORT SdaiPosition_group_item  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   APPROVING_PERSON_ORGANIZATION    --  sdaiINSTANCE
    //   DOCUMENT_DEFINITION    --  sdaiINSTANCE
    //   ORGANIZATION_OR_PERSON_IN_ORGANIZATION_ASSIGNMENT    --  sdaiINSTANCE
    //   PRODUCT    --  sdaiINSTANCE
    //   PRODUCT_VERSION    --  sdaiINSTANCE
    //   PRODUCT_VIEW_DEFINITION    --  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
    SdaiPosition_group_item( const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_position_group_item );
    //  part 1
    SdaiPosition_group_item( const SdaiApproving_person_organization_ptr&,
                             const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_position_group_item );
    SdaiPosition_group_item( const SdaiDocument_definition_ptr&,
                             const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_position_group_item );
    SdaiPosition_group_item( const SdaiOrganization_or_person_in_organization_assignment_ptr&,
                             const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_position_group_item );
    SdaiPosition_group_item( const SdaiProduct_ptr&,
                             const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_position_group_item );
    SdaiPosition_group_item( const SdaiProduct_version_ptr&,
                             const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_position_group_item );
    SdaiPosition_group_item( const SdaiProduct_view_definition_ptr&,
                             const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_position_group_item );
    virtual ~SdaiPosition_group_item();

    //  part 2
    operator SdaiApproving_person_organization_ptr();
    operator SdaiDocument_definition_ptr();
    operator SdaiOrganization_or_person_in_organization_assignment_ptr();
    operator SdaiProduct_ptr();
    operator SdaiProduct_version_ptr();
    operator SdaiProduct_view_definition_ptr();

    //  part 3
        SdaiProduct_ptr_c of_product_() const;
        SdaiProduct_ptr   of_product_();
        void of_product_( const SdaiProduct_ptr x );

        SdaiOrganization_or_person_in_organization_item_agg_ptr_c items_() const;
        SdaiOrganization_or_person_in_organization_item_agg_ptr   items_();
        void items_( const SdaiOrganization_or_person_in_organization_item_agg_ptr x );

        SdaiOrganization_or_person_in_organization_select_ptr_c assigned_entity_() const;
        SdaiOrganization_or_person_in_organization_select_ptr   assigned_entity_();
        void assigned_entity_( const SdaiOrganization_or_person_in_organization_select_ptr x );

        SdaiDocument_version_ptr_c product_view_definition_defined_version_() const;
        SdaiDocument_version_ptr   product_view_definition_defined_version_();
        void product_view_definition_defined_version_( const SdaiDocument_version_ptr x );

        SdaiProduct_version_ptr_c defined_version_() const;
        SdaiProduct_version_ptr   defined_version_();
        void defined_version_( const SdaiProduct_version_ptr x );

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

        SdaiView_definition_context_ptr_c initial_context_() const;
        SdaiView_definition_context_ptr   initial_context_();
        void initial_context_( const SdaiView_definition_context_ptr x );

  const SDAI_String   additional_characterization_() const;
        SDAI_String   additional_characterization_();
        void additional_characterization_( const SDAI_String x );

  const SDAI_String   name_() const;
        SDAI_String   name_();
        void name_( const SDAI_String x );

  const SDAI_String   id_() const;
        SDAI_String   id_();
        void id_( const SDAI_String x );

  const SDAI_String   role_() const;
        SDAI_String   role_();
        void role_( const SDAI_String x );

        SdaiApproval_ptr_c authorized_approval_() const;
        SdaiApproval_ptr   authorized_approval_();
        void authorized_approval_( const SdaiApproval_ptr x );

        SdaiDate_or_date_time_select_ptr_c approval_date_() const;
        SdaiDate_or_date_time_select_ptr   approval_date_();
        void approval_date_( const SdaiDate_or_date_time_select_ptr x );

        SdaiOrganization_or_person_in_organization_select_ptr_c person_organization_() const;
        SdaiOrganization_or_person_in_organization_select_ptr   person_organization_();
        void person_organization_( const SdaiOrganization_or_person_in_organization_select_ptr x );


    //  part 4
    SdaiPosition_group_item& operator =( const SdaiApproving_person_organization_ptr& );
    SdaiPosition_group_item& operator =( const SdaiDocument_definition_ptr& );
    SdaiPosition_group_item& operator =( const SdaiOrganization_or_person_in_organization_assignment_ptr& );
    SdaiPosition_group_item& operator =( const SdaiProduct_ptr& );
    SdaiPosition_group_item& operator =( const SdaiProduct_version_ptr& );
    SdaiPosition_group_item& operator =( const SdaiProduct_view_definition_ptr& );
    // not in SDAI
    SdaiPosition_group_item& ShallowCopy ( const SdaiPosition_group_item& );

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

    //  part 5
    Logical IsApproving_person_organization() const;
    Logical IsDocument_definition() const;
    Logical IsOrganization_or_person_in_organization_assignment() const;
    Logical IsProduct() const;
    Logical IsProduct_version() const;
    Logical IsProduct_view_definition() const;

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

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

inline SDAI_Select * create_SdaiPosition_group_item () { return new SdaiPosition_group_item; }
typedef SdaiPosition_group_item * SdaiPosition_group_itemH;
typedef SdaiPosition_group_item_ptr SdaiPosition_group_item_var;


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

  public:
    SdaiPosition_group_item_agg( SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_position_group_item );
    ~SdaiPosition_group_item_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiPosition_group_item( sel_type )); }
};
inline STEPaggregate * create_SdaiPosition_group_item_agg () { return new SdaiPosition_group_item_agg; }
typedef SdaiPosition_group_item_agg_ptr SdaiPosition_group_item_agg_var;

/////  END SELECT TYPE position_group_item

void init_SdaiPosition_group_item(Registry& reg);

#endif
