#ifndef  TYPE_SDAIIFCACTORSELECT_H
#define  TYPE_SDAIIFCACTORSELECT_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 SdaiIfcactorselect
class SC_SCHEMA_EXPORT SdaiIfcactorselect  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   IFCORGANIZATION    --  sdaiINSTANCE
    //   IFCPERSON    --  sdaiINSTANCE
    //   IFCPERSONANDORGANIZATION    --  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
    SdaiIfcactorselect( const SelectTypeDescriptor * =ifc4::t_ifcactorselect );
    //  part 1
    SdaiIfcactorselect( const SdaiIfcorganization_ptr&,
                        const SelectTypeDescriptor * =ifc4::t_ifcactorselect );
    SdaiIfcactorselect( const SdaiIfcperson_ptr&,
                        const SelectTypeDescriptor * =ifc4::t_ifcactorselect );
    SdaiIfcactorselect( const SdaiIfcpersonandorganization_ptr&,
                        const SelectTypeDescriptor * =ifc4::t_ifcactorselect );
    virtual ~SdaiIfcactorselect();

    //  part 2
    operator SdaiIfcorganization_ptr();
    operator SdaiIfcperson_ptr();
    operator SdaiIfcpersonandorganization_ptr();

    //  part 3
        SdaiIfcorganization_ptr_c theorganization_() const;
        SdaiIfcorganization_ptr   theorganization_();
        void theorganization_( const SdaiIfcorganization_ptr x );

        SdaiIfcperson_ptr_c theperson_() const;
        SdaiIfcperson_ptr   theperson_();
        void theperson_( const SdaiIfcperson_ptr x );

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

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

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

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

  const SdaiIfclabel   givenname_() const;
        SdaiIfclabel   givenname_();
        void givenname_( const SdaiIfclabel x );

  const SdaiIfclabel   familyname_() const;
        SdaiIfclabel   familyname_();
        void familyname_( const SdaiIfclabel x );

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

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

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

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

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

  const SdaiIfctext   description_() const;
        SdaiIfctext   description_();
        void description_( const SdaiIfctext x );

  const SdaiIfclabel   name_() const;
        SdaiIfclabel   name_();
        void name_( const SdaiIfclabel x );

  const SdaiIfcidentifier   identification_() const;
        SdaiIfcidentifier   identification_();
        void identification_( const SdaiIfcidentifier x );


    //  part 4
    SdaiIfcactorselect& operator =( const SdaiIfcorganization_ptr& );
    SdaiIfcactorselect& operator =( const SdaiIfcperson_ptr& );
    SdaiIfcactorselect& operator =( const SdaiIfcpersonandorganization_ptr& );
    // not in SDAI
    SdaiIfcactorselect& ShallowCopy ( const SdaiIfcactorselect& );

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

    //  part 5
    Logical IsIfcorganization() const;
    Logical IsIfcperson() const;
    Logical IsIfcpersonandorganization() const;

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

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

inline SDAI_Select * create_SdaiIfcactorselect () { return new SdaiIfcactorselect; }
typedef SdaiIfcactorselect * SdaiIfcactorselectH;
typedef SdaiIfcactorselect_ptr SdaiIfcactorselect_var;


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

  public:
    SdaiIfcactorselect_agg( SelectTypeDescriptor * =ifc4::t_ifcactorselect );
    ~SdaiIfcactorselect_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiIfcactorselect( sel_type )); }
};
inline STEPaggregate * create_SdaiIfcactorselect_agg () { return new SdaiIfcactorselect_agg; }
typedef SdaiIfcactorselect_agg_ptr SdaiIfcactorselect_agg_var;

/////  END SELECT TYPE ifcactorselect

void init_SdaiIfcactorselect(Registry& reg);

#endif
