25 lines
458 B
C++
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
|