1
//////////////////////////////////////////////////////////////////////////
3
// pgScript - PostgreSQL Tools
4
// RCS-ID: $Id: pgsWhileStmt.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 PGSWHILESTMT_H_
12
#define PGSWHILESTMT_H_
14
#include "pgscript/pgScript.h"
15
#include "pgscript/statements/pgsStmt.h"
17
class pgsWhileStmt : public pgsStmt
22
const pgsExpression * m_cond;
23
const pgsStmt * m_stmt_list;
27
pgsWhileStmt(const pgsExpression * cond, const pgsStmt * stmt_list,
30
virtual ~pgsWhileStmt();
32
virtual void eval(pgsVarMap & vars) const;
36
pgsWhileStmt(const pgsWhileStmt & that);
38
pgsWhileStmt & operator=(const pgsWhileStmt & that);
42
#endif /*PGSWHILESTMT_H_*/