mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
43 lines
852 B
C++
43 lines
852 B
C++
//////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// pgScript - PostgreSQL Tools
|
|
//
|
|
// Copyright (C) 2002 - 2016, 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_*/
|