1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
//////////////////////////////////////////////////////////////////////////
//
// pgScript - PostgreSQL Tools
//
// Copyright (C) 2002 - 2014, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
//////////////////////////////////////////////////////////////////////////
#ifndef PGSPROGRAM_H_
#define PGSPROGRAM_H_
#include "pgscript/pgScript.h"
#include "pgscript/objects/pgsVariable.h"
#include <wx/thread.h>
class pgsStmtList;
class pgsProgram
{
private:
pgsVarMap &m_vars;
public:
pgsProgram(pgsVarMap &vars);
~pgsProgram();
void dump();
static void dump(const pgsVarMap &vars);
void eval(pgsStmtList *stmt_list);
private:
pgsProgram(const pgsProgram &that);
pgsProgram &operator=(const pgsProgram &that);
};
#endif /*PGSPROGRAM_H_*/
|