~ubuntu-branches/ubuntu/utopic/pgadmin3/utopic-proposed

« back to all changes in this revision

Viewing changes to src/include/pgOperator.h

  • Committer: Bazaar Package Importer
  • Author(s): Raphael Enrici
  • Date: 2004-12-14 23:46:39 UTC
  • Revision ID: james.westby@ubuntu.com-20041214234639-tve0i5l49fq13jli
Tags: upstream-1.2.0
ImportĀ upstreamĀ versionĀ 1.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//////////////////////////////////////////////////////////////////////////
 
2
//
 
3
// pgAdmin III - PostgreSQL Tools
 
4
// RCS-ID:      $Id: pgOperator.h,v 1.18 2004/01/02 23:15:00 dpage Exp $
 
5
// Copyright (C) 2002 - 2004, The pgAdmin Development Team
 
6
// This software is released under the Artistic Licence
 
7
//
 
8
// pgOperator.h PostgreSQL Operator
 
9
//
 
10
//////////////////////////////////////////////////////////////////////////
 
11
 
 
12
#ifndef PGOperator_H
 
13
#define PGOperator_H
 
14
 
 
15
// wxWindows headers
 
16
#include <wx/wx.h>
 
17
 
 
18
// App headers
 
19
#include "pgAdmin3.h"
 
20
#include "pgObject.h"
 
21
#include "pgServer.h"
 
22
#include "pgDatabase.h"
 
23
 
 
24
 
 
25
class pgOperator : public pgSchemaObject
 
26
{
 
27
public:
 
28
    pgOperator(pgSchema *newSchema, const wxString& newName = wxT(""));
 
29
    ~pgOperator();
 
30
 
 
31
    int GetIcon() { return PGICON_OPERATOR; }
 
32
    void ShowTreeDetail(wxTreeCtrl *browser, frmMain *form=0, ctlListView *properties=0, ctlSQLBox *sqlPane=0);
 
33
    static pgObject *ReadObjects(pgCollection *collection, wxTreeCtrl *browser, const wxString &restriction=wxT(""));
 
34
    virtual wxString GetQuotedIdentifier() const { return GetName(); }
 
35
    wxString GetFullName() const;
 
36
    wxString GetOperands() const;
 
37
    wxString GetLeftType() const { return leftType; }
 
38
    void iSetLeftType(const wxString& s) { leftType=s; }
 
39
    wxString GetRightType() const { return rightType; }
 
40
    void iSetRightType(const wxString& s) { rightType=s; }
 
41
    OID GetLeftTypeOid() const { return leftTypeOid; }
 
42
    void iSetLeftTypeOid(const OID o) { leftTypeOid=o; }
 
43
    OID GetRightTypeOid() const { return rightTypeOid; }
 
44
    void iSetRightTypeOid(const OID o) { rightTypeOid=o; }
 
45
    wxString GetResultType() { return resultType; }
 
46
    void iSetResultType(const wxString& s) { resultType=s; }
 
47
    wxString GetOperatorFunction() const { return operatorFunction; }
 
48
    void iSetOperatorFunction(const wxString& s) { operatorFunction=s; }
 
49
    wxString GetJoinFunction() const { return joinFunction; }
 
50
    void iSetJoinFunction(const wxString& s) { joinFunction=s; }
 
51
    wxString GetRestrictFunction() const { return restrictFunction; }
 
52
    void iSetRestrictFunction(const wxString& s) { restrictFunction=s; }
 
53
    wxString GetCommutator() const { return commutator; }
 
54
    void iSetCommutator(const wxString& s) { commutator=s; }
 
55
    wxString GetNegator() const { return negator; }
 
56
    void iSetNegator(const wxString& s) { negator=s; }
 
57
    wxString GetKind() const { return kind; }
 
58
    void iSetKind(const wxString& s) { kind=s; }
 
59
    wxString GetLeftSortOperator() const { return leftSortOperator; }
 
60
    void iSetLeftSortOperator(const wxString& s) { leftSortOperator=s; }
 
61
    wxString GetRightSortOperator() const { return  rightSortOperator; }
 
62
    void iSetRightSortOperator(const wxString& s) {  rightSortOperator=s; }
 
63
    wxString GetLessOperator() const { return lessOperator; }
 
64
    void iSetLessOperator(const wxString& s) { lessOperator=s; }
 
65
    wxString GetGreaterOperator() const { return  greaterOperator; }
 
66
    void iSetGreaterOperator(const wxString& s) {  greaterOperator=s; }
 
67
    bool GetHashJoins() const { return hashJoins; }
 
68
    void iSetHashJoins(bool b) {  hashJoins=b; }
 
69
 
 
70
    bool DropObject(wxFrame *frame, wxTreeCtrl *browser);
 
71
    wxString GetSql(wxTreeCtrl *browser);
 
72
    pgObject *Refresh(wxTreeCtrl *browser, const wxTreeItemId item);
 
73
 
 
74
private:
 
75
    wxString leftType, rightType, resultType,
 
76
             operatorFunction, joinFunction, restrictFunction,
 
77
             commutator, negator, kind, 
 
78
             leftSortOperator, rightSortOperator, lessOperator, greaterOperator;
 
79
    OID leftTypeOid, rightTypeOid;
 
80
    bool hashJoins;
 
81
};
 
82
 
 
83
#endif