#ifndef  TYPE_SDAIIFCMATERIALSELECT_H
#define  TYPE_SDAIIFCMATERIALSELECT_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 SdaiIfcmaterialselect
class SC_SCHEMA_EXPORT SdaiIfcmaterialselect  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   IFCMATERIALDEFINITION    --  sdaiINSTANCE
    //   IFCMATERIALLIST    --  sdaiINSTANCE
    //   IFCMATERIALUSAGEDEFINITION    --  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
    SdaiIfcmaterialselect( const SelectTypeDescriptor * =ifc4::t_ifcmaterialselect );
    //  part 1
    SdaiIfcmaterialselect( const SdaiIfcmaterialdefinition_ptr&,
                           const SelectTypeDescriptor * =ifc4::t_ifcmaterialselect );
    SdaiIfcmaterialselect( const SdaiIfcmateriallist_ptr&,
                           const SelectTypeDescriptor * =ifc4::t_ifcmaterialselect );
    SdaiIfcmaterialselect( const SdaiIfcmaterialusagedefinition_ptr&,
                           const SelectTypeDescriptor * =ifc4::t_ifcmaterialselect );
    virtual ~SdaiIfcmaterialselect();

    //  part 2
    operator SdaiIfcmaterialdefinition_ptr();
    operator SdaiIfcmateriallist_ptr();
    operator SdaiIfcmaterialusagedefinition_ptr();

    //  part 3
        EntityAggregate_ptr_c materials_() const;
        EntityAggregate_ptr   materials_();
        void materials_( const EntityAggregate_ptr x );

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

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

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


    //  part 4
    SdaiIfcmaterialselect& operator =( const SdaiIfcmaterialdefinition_ptr& );
    SdaiIfcmaterialselect& operator =( const SdaiIfcmateriallist_ptr& );
    SdaiIfcmaterialselect& operator =( const SdaiIfcmaterialusagedefinition_ptr& );
    // not in SDAI
    SdaiIfcmaterialselect& ShallowCopy ( const SdaiIfcmaterialselect& );

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

    //  part 5
    Logical IsIfcmaterialdefinition() const;
    Logical IsIfcmateriallist() const;
    Logical IsIfcmaterialusagedefinition() const;

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

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

inline SDAI_Select * create_SdaiIfcmaterialselect () { return new SdaiIfcmaterialselect; }
typedef SdaiIfcmaterialselect * SdaiIfcmaterialselectH;
typedef SdaiIfcmaterialselect_ptr SdaiIfcmaterialselect_var;


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

  public:
    SdaiIfcmaterialselect_agg( SelectTypeDescriptor * =ifc4::t_ifcmaterialselect );
    ~SdaiIfcmaterialselect_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiIfcmaterialselect( sel_type )); }
};
inline STEPaggregate * create_SdaiIfcmaterialselect_agg () { return new SdaiIfcmaterialselect_agg; }
typedef SdaiIfcmaterialselect_agg_ptr SdaiIfcmaterialselect_agg_var;

/////  END SELECT TYPE ifcmaterialselect

void init_SdaiIfcmaterialselect(Registry& reg);

#endif
