pgLab/pglablib/PgObject.h
eelke fcb191f2cc Overview of triggers extended with function name and arguments.
Did a lot of refactoring on the catalog to keep things clean.
2018-11-18 19:30:45 +01:00

25 lines
458 B
C++

#ifndef PGOBJECT_H
#define PGOBJECT_H
#include <QString>
class PgDatabaseCatalog;
class PgObject {
public:
explicit PgObject(PgDatabaseCatalog& cat);
virtual ~PgObject();
virtual QString objectName() const = 0;
/// Default implementation uses objectName and add quotes when needed.
virtual QString quotedObjectName() const;
protected:
const PgDatabaseCatalog& catalog() const;
private:
PgDatabaseCatalog* m_catalog;
};
#endif // PGOBJECT_H