//////////////////////////////////////////////////////////////////////////
//
// pgScript - PostgreSQL Tools
//
// Copyright (C) 2002 - 2013, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
//////////////////////////////////////////////////////////////////////////


#ifndef PGSPRINTSTMT_H_
#define PGSPRINTSTMT_H_

#include "pgscript/pgScript.h"
#include "pgscript/statements/pgsStmt.h"

class pgsPrintStmt : public pgsStmt
{

private:

	const pgsExpression *m_var;

	pgsOutputStream &m_cout;

public:

	pgsPrintStmt(const pgsExpression *var, pgsOutputStream &cout,
	             pgsThread *app = 0);

	virtual ~pgsPrintStmt();

	virtual void eval(pgsVarMap &vars) const;

private:

	pgsPrintStmt(const pgsPrintStmt &that);

	pgsPrintStmt &operator=(const pgsPrintStmt &that);

};

#endif /*PGSPRINTSTMT_H_*/
