#ifndef  TYPE_SDAIPOSITION_PERSON_OR_ORGANIZATION_OR_PERSON_IN_ORGANIZATION_SELECT_H
#define  TYPE_SDAIPOSITION_PERSON_OR_ORGANIZATION_OR_PERSON_IN_ORGANIZATION_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 SdaiPosition_person_or_organization_or_person_in_organization_select
class SC_SCHEMA_EXPORT SdaiPosition_person_or_organization_or_person_in_organization_select  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ORGANIZATION    --  sdaiINSTANCE
    //   PERSON    --  sdaiINSTANCE
    //   PERSON_IN_ORGANIZATION    --  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_person_or_organization_or_person_in_organization_select( const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_position_person_or_organization_or_person_in_organization_select );
    //  part 1
    SdaiPosition_person_or_organization_or_person_in_organization_select( const SdaiOrganization_ptr&,
                                                                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_position_person_or_organization_or_person_in_organization_select );
    SdaiPosition_person_or_organization_or_person_in_organization_select( const SdaiPerson_ptr&,
                                                                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_position_person_or_organization_or_person_in_organization_select );
    SdaiPosition_person_or_organization_or_person_in_organization_select( const SdaiPerson_in_organization_ptr&,
                                                                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_position_person_or_organization_or_person_in_organization_select );
    virtual ~SdaiPosition_person_or_organization_or_person_in_organization_select();

    //  part 2
    operator SdaiOrganization_ptr();
    operator SdaiPerson_ptr();
    operator SdaiPerson_in_organization_ptr();

    //  part 3
  const SDAI_String   role_() const;
        SDAI_String   role_();
        void role_( const SDAI_String x );

        SdaiOrganization_ptr_c containing_organization_() const;
        SdaiOrganization_ptr   containing_organization_();
        void containing_organization_( const SdaiOrganization_ptr x );

        SdaiPerson_ptr_c concerned_person_() const;
        SdaiPerson_ptr   concerned_person_();
        void concerned_person_( const SdaiPerson_ptr x );

        StringAggregate_ptr_c suffix_titles_() const;
        StringAggregate_ptr   suffix_titles_();
        void suffix_titles_( const StringAggregate_ptr x );

        StringAggregate_ptr_c prefix_titles_() const;
        StringAggregate_ptr   prefix_titles_();
        void prefix_titles_( const StringAggregate_ptr x );

        StringAggregate_ptr_c middle_names_() const;
        StringAggregate_ptr   middle_names_();
        void middle_names_( const StringAggregate_ptr x );

  const SDAI_String   first_name_() const;
        SDAI_String   first_name_();
        void first_name_( const SDAI_String x );

  const SDAI_String   last_name_() const;
        SDAI_String   last_name_();
        void last_name_( 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 );


    //  part 4
    SdaiPosition_person_or_organization_or_person_in_organization_select& operator =( const SdaiOrganization_ptr& );
    SdaiPosition_person_or_organization_or_person_in_organization_select& operator =( const SdaiPerson_ptr& );
    SdaiPosition_person_or_organization_or_person_in_organization_select& operator =( const SdaiPerson_in_organization_ptr& );
    // not in SDAI
    SdaiPosition_person_or_organization_or_person_in_organization_select& ShallowCopy ( const SdaiPosition_person_or_organization_or_person_in_organization_select& );

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

    //  part 5
    Logical IsOrganization() const;
    Logical IsPerson() const;
    Logical IsPerson_in_organization() const;

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

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

inline SDAI_Select * create_SdaiPosition_person_or_organization_or_person_in_organization_select () { return new SdaiPosition_person_or_organization_or_person_in_organization_select; }
typedef SdaiPosition_person_or_organization_or_person_in_organization_select * SdaiPosition_person_or_organization_or_person_in_organization_selectH;
typedef SdaiPosition_person_or_organization_or_person_in_organization_select_ptr SdaiPosition_person_or_organization_or_person_in_organization_select_var;


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

  public:
    SdaiPosition_person_or_organization_or_person_in_organization_select_agg( SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_position_person_or_organization_or_person_in_organization_select );
    ~SdaiPosition_person_or_organization_or_person_in_organization_select_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiPosition_person_or_organization_or_person_in_organization_select( sel_type )); }
};
inline STEPaggregate * create_SdaiPosition_person_or_organization_or_person_in_organization_select_agg () { return new SdaiPosition_person_or_organization_or_person_in_organization_select_agg; }
typedef SdaiPosition_person_or_organization_or_person_in_organization_select_agg_ptr SdaiPosition_person_or_organization_or_person_in_organization_select_agg_var;

/////  END SELECT TYPE position_person_or_organization_or_person_in_organization_select

void init_SdaiPosition_person_or_organization_or_person_in_organization_select(Registry& reg);

#endif
