1
//////////////////////////////////////////////////////////////////////////
3
// pgScript - PostgreSQL Tools
4
// RCS-ID: $Id: pgsOperation.h 7758 2009-03-26 20:49:59Z dpage $
5
// Copyright (C) 2002 - 2009, The pgAdmin Development Team
6
// This software is released under the BSD Licence
8
//////////////////////////////////////////////////////////////////////////
11
#ifndef PGSOPERATION_H_
12
#define PGSOPERATION_H_
14
#include "pgscript/pgScript.h"
15
#include "pgscript/expressions/pgsExpression.h"
17
class pgsOperation : public pgsExpression
22
const pgsExpression * m_left;
23
const pgsExpression * m_right;
27
pgsOperation(const pgsExpression * left, const pgsExpression * right);
29
virtual ~pgsOperation();
31
virtual pgsExpression * clone() const = 0;
33
pgsOperation(const pgsOperation & that);
35
pgsOperation & operator =(const pgsOperation & that);
37
virtual wxString value() const = 0;
39
virtual pgsOperand eval(pgsVarMap & vars) const = 0;
43
#endif /*PGSOPERATION_H_*/