summaryrefslogtreecommitdiff
path: root/project2/sqlCheck.h
blob: bfc7b37e580b65a6ccebd284d1666f96a66d2315 (plain)
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
#ifndef SQLCHECK_H
#define SQLCHECK_H

#include "paramChecker.h"
#include "iHaveParameters.h"

namespace ODBC { class SelectCommand; }

class SqlCheck : public IHaveParameters, public ParamChecker {
	public:
		SqlCheck(const xmlpp::Element * p);
		virtual ~SqlCheck();

		virtual void loadComplete(const CommonObjects *);
		bool performCheck() const;

		const Variable dataSource;
		const Glib::ustring sql;
		const std::string testOp;
		const double testValue;
	private:
		ODBC::SelectCommand * query;
};

#endif