#ifndef  TYPE_SDAIROLE_SELECT_H
#define  TYPE_SDAIROLE_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 SdaiRole_select
class SC_SCHEMA_EXPORT SdaiRole_select  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ACTION_ASSIGNMENT    --  sdaiINSTANCE
    //   ACTION_REQUEST_ASSIGNMENT    --  sdaiINSTANCE
    //   APPROVAL_ASSIGNMENT    --  sdaiINSTANCE
    //   APPROVAL_DATE_TIME    --  sdaiINSTANCE
    //   CERTIFICATION_ASSIGNMENT    --  sdaiINSTANCE
    //   CONTRACT_ASSIGNMENT    --  sdaiINSTANCE
    //   DOCUMENT_REFERENCE    --  sdaiINSTANCE
    //   EFFECTIVITY_ASSIGNMENT    --  sdaiINSTANCE
    //   GROUP_ASSIGNMENT    --  sdaiINSTANCE
    //   NAME_ASSIGNMENT    --  sdaiINSTANCE
    //   SECURITY_CLASSIFICATION_ASSIGNMENT    --  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
    SdaiRole_select( const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_role_select );
    //  part 1
    SdaiRole_select( const SdaiAction_assignment_ptr&,
                     const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_role_select );
    SdaiRole_select( const SdaiAction_request_assignment_ptr&,
                     const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_role_select );
    SdaiRole_select( const SdaiApproval_assignment_ptr&,
                     const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_role_select );
    SdaiRole_select( const SdaiApproval_date_time_ptr&,
                     const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_role_select );
    SdaiRole_select( const SdaiCertification_assignment_ptr&,
                     const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_role_select );
    SdaiRole_select( const SdaiContract_assignment_ptr&,
                     const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_role_select );
    SdaiRole_select( const SdaiDocument_reference_ptr&,
                     const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_role_select );
    SdaiRole_select( const SdaiEffectivity_assignment_ptr&,
                     const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_role_select );
    SdaiRole_select( const SdaiGroup_assignment_ptr&,
                     const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_role_select );
    SdaiRole_select( const SdaiName_assignment_ptr&,
                     const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_role_select );
    SdaiRole_select( const SdaiSecurity_classification_assignment_ptr&,
                     const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_role_select );
    virtual ~SdaiRole_select();

    //  part 2
    operator SdaiAction_assignment_ptr();
    operator SdaiAction_request_assignment_ptr();
    operator SdaiApproval_assignment_ptr();
    operator SdaiApproval_date_time_ptr();
    operator SdaiCertification_assignment_ptr();
    operator SdaiContract_assignment_ptr();
    operator SdaiDocument_reference_ptr();
    operator SdaiEffectivity_assignment_ptr();
    operator SdaiGroup_assignment_ptr();
    operator SdaiName_assignment_ptr();
    operator SdaiSecurity_classification_assignment_ptr();

    //  part 3
        SdaiSecurity_classification_ptr_c assigned_security_classification_() const;
        SdaiSecurity_classification_ptr   assigned_security_classification_();
        void assigned_security_classification_( const SdaiSecurity_classification_ptr x );

  const SdaiLabel   assigned_name_() const;
        SdaiLabel   assigned_name_();
        void assigned_name_( const SdaiLabel x );

        SdaiGroup_ptr_c assigned_group_() const;
        SdaiGroup_ptr   assigned_group_();
        void assigned_group_( const SdaiGroup_ptr x );

        SdaiEffectivity_ptr_c assigned_effectivity_() const;
        SdaiEffectivity_ptr   assigned_effectivity_();
        void assigned_effectivity_( const SdaiEffectivity_ptr x );

  const SdaiLabel   source_() const;
        SdaiLabel   source_();
        void source_( const SdaiLabel x );

        SdaiDocument_ptr_c assigned_document_() const;
        SdaiDocument_ptr   assigned_document_();
        void assigned_document_( const SdaiDocument_ptr x );

        SdaiContract_ptr_c assigned_contract_() const;
        SdaiContract_ptr   assigned_contract_();
        void assigned_contract_( const SdaiContract_ptr x );

        SdaiCertification_ptr_c assigned_certification_() const;
        SdaiCertification_ptr   assigned_certification_();
        void assigned_certification_( const SdaiCertification_ptr x );

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

        SdaiDate_time_select_ptr_c date_time_() const;
        SdaiDate_time_select_ptr   date_time_();
        void date_time_( const SdaiDate_time_select_ptr x );

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

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

        SdaiAction_ptr_c assigned_action_() const;
        SdaiAction_ptr   assigned_action_();
        void assigned_action_( const SdaiAction_ptr x );


    //  part 4
    SdaiRole_select& operator =( const SdaiAction_assignment_ptr& );
    SdaiRole_select& operator =( const SdaiAction_request_assignment_ptr& );
    SdaiRole_select& operator =( const SdaiApproval_assignment_ptr& );
    SdaiRole_select& operator =( const SdaiApproval_date_time_ptr& );
    SdaiRole_select& operator =( const SdaiCertification_assignment_ptr& );
    SdaiRole_select& operator =( const SdaiContract_assignment_ptr& );
    SdaiRole_select& operator =( const SdaiDocument_reference_ptr& );
    SdaiRole_select& operator =( const SdaiEffectivity_assignment_ptr& );
    SdaiRole_select& operator =( const SdaiGroup_assignment_ptr& );
    SdaiRole_select& operator =( const SdaiName_assignment_ptr& );
    SdaiRole_select& operator =( const SdaiSecurity_classification_assignment_ptr& );
    // not in SDAI
    SdaiRole_select& ShallowCopy ( const SdaiRole_select& );

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

    //  part 5
    Logical IsAction_assignment() const;
    Logical IsAction_request_assignment() const;
    Logical IsApproval_assignment() const;
    Logical IsApproval_date_time() const;
    Logical IsCertification_assignment() const;
    Logical IsContract_assignment() const;
    Logical IsDocument_reference() const;
    Logical IsEffectivity_assignment() const;
    Logical IsGroup_assignment() const;
    Logical IsName_assignment() const;
    Logical IsSecurity_classification_assignment() const;

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

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

inline SDAI_Select * create_SdaiRole_select () { return new SdaiRole_select; }
typedef SdaiRole_select * SdaiRole_selectH;
typedef SdaiRole_select_ptr SdaiRole_select_var;


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

  public:
    SdaiRole_select_agg( SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_role_select );
    ~SdaiRole_select_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiRole_select( sel_type )); }
};
inline STEPaggregate * create_SdaiRole_select_agg () { return new SdaiRole_select_agg; }
typedef SdaiRole_select_agg_ptr SdaiRole_select_agg_var;

/////  END SELECT TYPE role_select

void init_SdaiRole_select(Registry& reg);

#endif
