#ifndef PGINHERITSCONTAINER_H #define PGINHERITSCONTAINER_H #include "PgContainer.h" #include "PgInherits.h" class IFindParents { public: virtual std::vector getParentsOf(Oid oid) const = 0; }; class PgInheritsContainer : public PgContainer , public IFindParents { public: using PgContainer::PgContainer; virtual std::string getLoadQuery() const override; /// Returns the parents in the correct order std::vector getParentsOf(Oid oid) const override; protected: PgInherits loadElem(const Pgsql::Row &row) override; }; #endif // PGINHERITSCONTAINER_H