#ifndef  ENTITY_SDAIIFCEXTERNALREFERENCERELATIONSHIP_H
#define  ENTITY_SDAIIFCEXTERNALREFERENCERELATIONSHIP_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.

class SC_SCHEMA_EXPORT SdaiIfcexternalreferencerelationship : public SdaiIfcresourcelevelrelationship {
     protected:
        SDAI_Application_instance_ptr _relatingreference = NULL;
        SdaiIfcresourceobjectselect_agg_ptr _relatedresourceobjects = NULL;          //  of  ifcresourceobjectselect

    public: 
        SdaiIfcexternalreferencerelationship();
        SdaiIfcexternalreferencerelationship( SDAI_Application_instance *se, bool addAttrs = true );
        SdaiIfcexternalreferencerelationship( SdaiIfcexternalreferencerelationship & e );
        ~SdaiIfcexternalreferencerelationship();
        int opcode() {
            return 589;
        }
        SdaiIfcexternalreference_ptr_c relatingreference_() const;
        SdaiIfcexternalreference_ptr   relatingreference_();
        void relatingreference_( const SdaiIfcexternalreference_ptr x );

        SdaiIfcresourceobjectselect_agg_ptr_c relatedresourceobjects_() const;
        SdaiIfcresourceobjectselect_agg_ptr   relatedresourceobjects_();
        void relatedresourceobjects_( const SdaiIfcresourceobjectselect_agg_ptr x );

};

inline SdaiIfcexternalreferencerelationship * create_SdaiIfcexternalreferencerelationship() {
    return new SdaiIfcexternalreferencerelationship;
}

void init_SdaiIfcexternalreferencerelationship(Registry& reg);

namespace ifc4 {
    extern EntityDescriptor *e_ifcexternalreferencerelationship;
    extern AttrDescriptor *a_1309relatingreference;
    extern AttrDescriptor *a_1310relatedresourceobjects;
}

#endif
