pgadmin3/include/pgscript/statements/pgsPrintStmt.h
2020-07-07 22:19:12 +05:00

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_*/